Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

extract/lib/proc_psf.c File Reference

Spectral PSF related procedures. More...

Go to the source code of this file.

Functions

int read_PSFgeo_param (void *anyfile, double *geo_param[])
int read_PSFglobal_param (void *anyfile, double *psf_param[])
int read_PSFlocal_ng (void *anyfile)
int read_corePSF (void *anyfile, CorePSF *psf)
 Set the CorePSF psf from mask descriptors.

void free_corePSF (CorePSF *psf)
 CorePSF structure memory cleaner.

double xdisp_profile (CorePSF *psf, SpectrumCCD *spectrum, float x)
 Integral over a pixel of the cross-dispersion model profile.


Detailed Description

Spectral PSF related procedures.

Copyright:
(c) 2005 IPNL-Universite Lyon I
Date:
Wed Oct 26 23:38:10 2005
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.1
Id
proc_psf.c,v 1.1 2005/08/02 14:41:42 ycopin Exp

Definition in file proc_psf.c.


Function Documentation

int read_PSFgeo_param void *  anyfile,
double *  geo_param[]
 

Read geometric PSF model from descriptors MPUP_NGGEO and MPUP_GEOPAR

Parameters:
anyfile Input file
geo_param Output parameter array (3*nggeo)
Returns:
Number of gaussian components in PSF model (nggeo>0 or -1)
geo_param

Todo:
Add a description.
Note:
Previously in proc_config.c (<1.27)

Definition at line 38 of file proc_psf.c.

References MPUP_GEOPAR, and MPUP_NGGEO.

Referenced by main(), and read_corePSF().

int read_PSFglobal_param void *  anyfile,
double *  psf_param[]
 

Read global PSF model from descriptors MPUP_NGPSF and MPUP_PSFPAR

Parameters:
anyfile Input file
psf_param Output parameter array (1+2*ngpsf)
Returns:
Number of gaussian components in PSF model (ngpsf>0 or -1)
psf_param
psf_param[0] = geometric pupil scale
Note:
Previously in proc_config.c (<1.27)

Definition at line 74 of file proc_psf.c.

References MPUP_NGPSF, and MPUP_PSFPAR.

Referenced by main(), and read_corePSF().

int read_PSFlocal_ng void *  anyfile  ) 
 

Read number of components in local PSF model from descriptor MPUP_NGLOC

Parameters:
anyfile Input file
Returns:
Number of gaussian components in PSF model (ngloc or MAXINT)
Note:
Previously in proc_config.c (<1.27)

Definition at line 109 of file proc_psf.c.

References MPUP_NGLOC.

Referenced by main(), and read_corePSF().

int read_corePSF void *  anyfile,
CorePSF psf
 

Set the CorePSF psf from mask descriptors.

Parameters:
anyfile Open file from which to read PSF-keywords (mask)
psf CorePSF structure to be set
Returns:
Error status
Note:
Gather calls to read_PSFgeo_param, read_PSFglobal_param, read_PSFlocal_ng and re-implement set_corePSF (still part of find_mpup)

Definition at line 137 of file proc_psf.c.

References CorePSF::Igeo, CorePSF::Ipsf, CorePSF::nggeo, CorePSF::ngloc, CorePSF::ngpsf, CorePSF::norm, read_PSFgeo_param(), read_PSFglobal_param(), read_PSFlocal_ng(), CorePSF::scale, CorePSF::Sgeo, CorePSF::Spsf, and CorePSF::Xgeo.

Referenced by main().

Here is the call graph for this function:

void free_corePSF CorePSF psf  ) 
 

CorePSF structure memory cleaner.

Definition at line 228 of file proc_psf.c.

References CorePSF::Igeo, CorePSF::Ipsf, CorePSF::nggeo, CorePSF::ngloc, CorePSF::ngpsf, CorePSF::Sgeo, CorePSF::Spsf, and CorePSF::Xgeo.

double xdisp_profile CorePSF psf,
SpectrumCCD spectrum,
float  x
 

Integral over a pixel of the cross-dispersion model profile.

Parameters:
psf Core-PSF description
spectrum CCD spectrum description
x Position [px]
Returns:
Integral of cross-dispersion model over one pixel around x
Note:
Object-oriented version of Mpup_PSF.

Definition at line 249 of file proc_psf.c.

References SpectrumCCD::Ics, CorePSF::nggeo, CorePSF::ngpsf, SpectrumCCD::Scs, x, and CorePSF::Xgeo.

Referenced by main().


Generated on Thu Oct 27 00:00:10 2005 for Snifs by doxygen 1.3.5