TwiceAsNice  2019-02-18
Classes | Macros | Typedefs | Functions | Variables
psf.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

struct  code
 
struct  pc
 
struct  psf
 
struct  psfitstruct
 

Macros

#define PSF_MAXSHIFT   20.0 /* Max shift from initial guess (pixels)*/
 
#define PSF_MINSHIFT   1e-3 /* Min shift from previous guess (pixels)*/
 
#define PSF_NITER   20 /* Maximum number of iterations in fit */
 
#define PSF_NA   3 /* Number of fitted parameters per component */
 
#define PSF_NTOT   (PSF_NA*PSF_NPSFMAX) /* Number of fitted parameters*/
 
#define PSF_DOUBLETOT   ((PSF_NA+1)*PSF_NPSFMAX)/* Nb of fitted parameters */
 
#define PC_NITER   1 /* Maximum number of iterations in PC fit */
 

Typedefs

typedef struct code codestruct
 
typedef struct pc pcstruct
 
typedef struct psf psfstruct
 

Functions

void compute_pos (int *pnpsf, int *pconvflag, int *pnpsfflag, double radmin2, double radmax2, double r2, double *sol, double *flux, double *deltax, double *deltay, double *pdx, double *pdy)
 
void compute_pos_phot (int *pnpsf, double *sol, double *flux)
 
void compute_poserr (int j, double *var, double *sol, obj2struct *obj2, double *x2, double *y2, double *xy, int npsf)
 
void psf_build (psfstruct *psf)
 
void psf_end (psfstruct *psf, psfitstruct *psfit)
 
void psf_init (void)
 
void svdfit (double *a, float *b, int m, int n, double *sol, double *vmat, double *wmat)
 
void svdvar (double *vmat, double *wmat, int n, double *covmat)
 
double * compute_gradient (float *weight, int width, int height, float *masks, float *maskx, float *masky, double *mat)
 
double * compute_gradient_phot (float *weight, int width, int height, float *masks, double *pm)
 
double psf_fwhm (psfstruct *psf)
 
psfstructpsf_load (char *filename, int ext)
 
void pc_end (pcstruct *pc)
 
void pc_fit (psfstruct *psf, float *data, float *weight, int width, int height, int ix, int iy, float dx, float dy, int npc, float backrms)
 
void double_psf_fit (psfstruct *psf, picstruct *field, picstruct *wfield, objstruct *obj, psfstruct *dpsf, picstruct *dfield, picstruct *dwfield)
 
void psf_fit (psfstruct *psf, picstruct *field, picstruct *wfield, objstruct *obj)
 
void psf_readcontext (psfstruct *psf, picstruct *field)
 
pcstructpc_load (catstruct *cat)
 

Variables

psfstructpsf
 
psfstructthedpsf
 
psfstructthepsf
 
psfitstructthepsfit
 
psfitstructthedpsfit
 
PIXTYPEcheckmask
 

Macro Definition Documentation

◆ PC_NITER

#define PC_NITER   1 /* Maximum number of iterations in PC fit */

◆ PSF_DOUBLETOT

#define PSF_DOUBLETOT   ((PSF_NA+1)*PSF_NPSFMAX)/* Nb of fitted parameters */

◆ PSF_MAXSHIFT

#define PSF_MAXSHIFT   20.0 /* Max shift from initial guess (pixels)*/

◆ PSF_MINSHIFT

#define PSF_MINSHIFT   1e-3 /* Min shift from previous guess (pixels)*/

◆ PSF_NA

#define PSF_NA   3 /* Number of fitted parameters per component */

◆ PSF_NITER

#define PSF_NITER   20 /* Maximum number of iterations in fit */

◆ PSF_NTOT

#define PSF_NTOT   (PSF_NA*PSF_NPSFMAX) /* Number of fitted parameters*/

Typedef Documentation

◆ codestruct

typedef struct code codestruct

◆ pcstruct

typedef struct pc pcstruct

◆ psfstruct

typedef struct psf psfstruct

Function Documentation

◆ compute_gradient()

double* compute_gradient ( float *  weight,
int  width,
int  height,
float *  masks,
float *  maskx,
float *  masky,
double *  mat 
)

◆ compute_gradient_phot()

double * compute_gradient_phot ( float *  weight,
int  width,
int  height,
float *  masks,
double *  pm 
)

◆ compute_pos()

void compute_pos ( int *  pnpsf,
int *  pconvflag,
int *  pnpsfflag,
double  radmin2,
double  radmax2,
double  r2,
double *  sol,
double *  flux,
double *  deltax,
double *  deltay,
double *  pdx,
double *  pdy 
)

◆ compute_pos_phot()

void compute_pos_phot ( int *  pnpsf,
double *  sol,
double *  flux 
)

◆ compute_poserr()

void compute_poserr ( int  j,
double *  var,
double *  sol,
obj2struct obj2,
double *  x2,
double *  y2,
double *  xy,
int  npsf 
)

◆ double_psf_fit()

void double_psf_fit ( psfstruct psf,
picstruct field,
picstruct wfield,
objstruct obj,
psfstruct dpsf,
picstruct dfield,
picstruct dwfield 
)

◆ pc_end()

void pc_end ( pcstruct pc)

◆ pc_fit()

void pc_fit ( psfstruct psf,
float *  data,
float *  weight,
int  width,
int  height,
int  ix,
int  iy,
float  dx,
float  dy,
int  npc,
float  backrms 
)

◆ pc_load()

pcstruct* pc_load ( catstruct cat)

◆ psf_build()

void psf_build ( psfstruct psf)

◆ psf_end()

void psf_end ( psfstruct psf,
psfitstruct psfit 
)

◆ psf_fit()

void psf_fit ( psfstruct psf,
picstruct field,
picstruct wfield,
objstruct obj 
)

◆ psf_fwhm()

double psf_fwhm ( psfstruct psf)

◆ psf_init()

void psf_init ( void  )

◆ psf_load()

psfstruct* psf_load ( char *  filename,
int  ext 
)

◆ psf_readcontext()

void psf_readcontext ( psfstruct psf,
picstruct field 
)

◆ svdfit()

void svdfit ( double *  a,
float *  b,
int  m,
int  n,
double *  sol,
double *  vmat,
double *  wmat 
)

◆ svdvar()

void svdvar ( double *  vmat,
double *  wmat,
int  n,
double *  covmat 
)

Variable Documentation

◆ checkmask

PIXTYPE* checkmask

◆ psf

◆ thedpsf

psfstruct * thedpsf

◆ thedpsfit

psfitstruct * thedpsfit

◆ thepsf

psfstruct * thepsf

◆ thepsfit

psfitstruct* thepsfit