Learn R Programming

ProFound (version 1.14.1)

plot.fitmagpsf: FitMagPSF diagnostic plots

Description

A simple image / model / image - model grid.

Usage

# S3 method for fitmagpsf
plot(x, ...)

Arguments

x

Object of class 'fitmagpsf', as returned by profoundFitMagPSF.

Passed to magimage / magimageWCS

Value

Run for the side effect of generating a grid of useful diagnostic plots:

Details

Run for the side effect of generating a grid of useful diagnostic plots.

See Also

profoundFitMagPSF

Examples

Run this code
# NOT RUN {
s250_im=readFITS(system.file("extdata", 'IRdata/s250_im.fits', package="ProFound"))
s250_psf=readFITS(system.file("extdata",'IRdata/s250_psf.fits', package="ProFound"))$imDat
magzero_s250=11.68

pro_s250=profoundProFound(s250_im, pixcut=1, skycut=2, ext=1, redosky=FALSE, iters=1,
tolerance=0, sigma=0, magzero=magzero_s250)
pro_s250$segstats=pro_s250$segstats[!is.na(pro_s250$segstats$mag),]

newmag=profoundFitMagPSF(RAcen=pro_s250$segstats$RAcen, Deccen=pro_s250$segstats$Deccen,
image=s250_im, psf=s250_psf, doProFound=TRUE, findextra=TRUE, verbose=TRUE, redosky=FALSE,
magzero=magzero_s250)

plot(newmag)
# }

Run the code above in your browser using DataLab