read.psf | R Documentation |
__This function is not designed to be called directly, but rather is an internal function to measure.fluxes__
Reads an input fits image for a Point Spread Function (PSF) and performs calculations needed in measure.fluxes. However, when a non-zero Gaussian FWHM (in arcsec) is provided, a Gaussian PSF will be generated. This is useful if no PSF map is present.
read.psf(outenv = parent.env(environment()), filename,
arcsec.per.pix, apsize, confidence, normalize = TRUE,
gauss.fwhm.arcsec = 0, env = NULL)
env |
environment; the environment containing the parameters used in ‘measure.fluxes’ |
filename |
string; relative path to, and filename of, the PSF FITS file |
arcsec.per.pix |
numeric; width of each image pixel in arcsec |
apsize |
numeric; SemiMajor axis of the largest aperture in catalogue |
confidence |
numeric; desired maximum confidence percentage used in generating/saving the PSF and PSF convolved stamps. PSF limits beyond the radius corresponding to this confidence level will be truncated. If confidence is 1 when a non-zero gaussian FWHM is present, confidence is instead forced to be 1-(1E-16); i.e. the highest non-unity value possible. |
normalize |
logical; if TRUE, PSF will be normalised to a height of 1 |
gauss.fwhm.arcsec |
numeric; FWHM of PSF gaussian. If supplied and greater than 0, PSF will be generated using a gaussian and not from input file |
outenv |
environment; the environment where the returned values are to be stored. If not provided, outenv defaults to the input env. |
numeric (n,n) array; image containing the read/generated PSF. The pixel length of each dimension of the array is floor(stampsize_as/arcsec.per.pix). The function also creates some global variables, the most useful of which is:
sumpsf |
numeric; the sum of pixels that make the psf function |
If both a PSF map and a gaussian FWHM is provided, the procedure will generate a gaussian PSF in preference to reading a PSF from file.
Angus H Wright ICRAR angus.wright@icrar.org
measure.fluxes, flux.measurements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.