VM2PSFPeak:

Path: SpacecraftEstimation/StellarModels

% Finds the peak of the point spread function from visual magnitude.
 Computes the value integrated over time tau. The number of photons is
 approximated assuming they are all at the specified wavelength.

 The PSF data must correspond to the dimensions of the PSF in the 
 focal plane. The units of sigma and xLim must be consistent. For example for
 a Gaussian PSF sigma might be 20 microns so xLim and yLim should be +/- 100.

 Integration is done in xy-coordinates so the PSF does not have to 
 be symmetric. The PSF function has the form

     f = RHS_PSF(x,y,d)

 Type VM2PSFPeak for a demo using RHSGaussianPSF.
--------------------------------------------------------------------------
   Form:
 	[p,photons] = VM2PSFPeak( vM, pSF, lambda, a, tau, pSFData, xLim, yLim )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   vM      (1,:)   Visual Magnitude
   pSF      (*)    Pointer to point spread function
   lambda  (1,1)   Wavelength (nm)
   a       (1,1)   Aperture (mm)
   tau     (1,1)   Integration time (s)
   pSFData  (.)    Data structure for the PSF function
                   .r   (2,:) Centers of PSF
                   .i   (1,:) Intensities of PSF
                   .d    (.)  Data structure for PSF parameters
   xLim    (1,2)   X limits
   yLim    (1,2)   Y limits
 
   -------
   Outputs
   -------
   p       (1,:)   Magnitude of the PSF
   photons (1.:)   Total number of photons for each PSF

--------------------------------------------------------------------------

Children:

Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Transform/VM2Int
Imaging: PSFUtils/RHSGaussianPSF

Back to the SpacecraftEstimation Module page