TwiceAsNice
2019-02-18
|
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "define.h"
#include "globals.h"
#include "key.h"
#include "prefs.h"
#include "fits/fitscat.h"
#include "check.h"
#include "filter.h"
#include "image.h"
#include "wcs/poly.h"
#include "psf.h"
Macros | |
#define | MAX(a, b) |
#define | PYTHAG(a, b) |
#define | SIGN(a, b) ((b) >= 0.0 ? fabs(a) : -fabs(a)) |
#define | TOL 1.0e-11 |
Functions | |
void | psf_init (void) |
void | psf_end (psfstruct *psf, psfitstruct *psfit) |
psfstruct * | psf_load (char *filename, int ext) |
void | psf_readcontext (psfstruct *psf, picstruct *field) |
void | psf_fit (psfstruct *psf, picstruct *field, picstruct *wfield, objstruct *obj) |
void | double_psf_fit (psfstruct *psf, picstruct *field, picstruct *wfield, objstruct *obj, psfstruct *dpsf, picstruct *dfield, picstruct *dwfield) |
void | psf_build (psfstruct *psf) |
double | psf_fwhm (psfstruct *psf) |
double * | compute_gradient (float *weight, int width, int height, float *masks, float *maskx, float *masky, double *m) |
double * | compute_gradient_phot (float *pweight, int width, int height, float *pmasks, 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 | svdfit (double *a, float *b, int m, int n, double *sol, double *vmat, double *wmat) |
void | svdvar (double *v, double *w, int n, double *cov) |
Variables | |
keystruct | objkey [] |
objstruct | outobj |
#define MAX | ( | a, | |
b | |||
) |
#define PYTHAG | ( | a, | |
b | |||
) |
#define TOL 1.0e-11 |
double* compute_gradient | ( | float * | weight, |
int | width, | ||
int | height, | ||
float * | masks, | ||
float * | maskx, | ||
float * | masky, | ||
double * | m | ||
) |
double* compute_gradient_phot | ( | float * | pweight, |
int | width, | ||
int | height, | ||
float * | pmasks, | ||
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 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 * | v, |
double * | w, | ||
int | n, | ||
double * | cov | ||
) |
keystruct objkey[] |
objstruct outobj |