TwiceAsNice
2019-02-18
|
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) |
psfstruct * | psf_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) |
pcstruct * | pc_load (catstruct *cat) |
Variables | |
psfstruct * | psf |
psfstruct * | thedpsf |
psfstruct * | thepsf |
psfitstruct * | thepsfit |
psfitstruct * | thedpsfit |
PIXTYPE * | checkmask |
#define PC_NITER 1 /* Maximum number of iterations in PC fit */ |
#define PSF_DOUBLETOT ((PSF_NA+1)*PSF_NPSFMAX)/* Nb of fitted parameters */ |
#define PSF_MAXSHIFT 20.0 /* Max shift from initial guess (pixels)*/ |
#define PSF_MINSHIFT 1e-3 /* Min shift from previous guess (pixels)*/ |
#define PSF_NA 3 /* Number of fitted parameters per component */ |
#define PSF_NITER 20 /* Maximum number of iterations in fit */ |
#define PSF_NTOT (PSF_NA*PSF_NPSFMAX) /* Number of fitted parameters*/ |
typedef struct code codestruct |
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 | ||
) |
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 double_psf_fit | ( | psfstruct * | psf, |
picstruct * | field, | ||
picstruct * | wfield, | ||
objstruct * | obj, | ||
psfstruct * | dpsf, | ||
picstruct * | dfield, | ||
picstruct * | dwfield | ||
) |
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 psf_build | ( | psfstruct * | psf | ) |
void psf_end | ( | psfstruct * | psf, |
psfitstruct * | psfit | ||
) |
double psf_fwhm | ( | psfstruct * | psf | ) |
void psf_init | ( | void | ) |
psfstruct* psf_load | ( | char * | filename, |
int | ext | ||
) |
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 | ||
) |
PIXTYPE* checkmask |
psfstruct * thedpsf |
psfitstruct * thedpsfit |
psfstruct * thepsf |
psfitstruct* thepsfit |