TwiceAsNice  2019-02-18
Macros | Functions | Variables
psf.c File Reference
#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"
Include dependency graph for psf.c:

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)
 
psfstructpsf_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
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
  b 
)
Value:
(maxarg1=(a),maxarg2=(b),(maxarg1) > (maxarg2) ?\
(maxarg1) : (maxarg2))
Definition: base.hpp:36
list a
Definition: lutinvert.py:10

◆ PYTHAG

#define PYTHAG (   a,
  b 
)
Value:
((at=fabs(a)) > (bt=fabs(b)) ? \
(ct=bt/at,at*sqrt(1.0+ct*ct)) \
: (bt ? (ct=at/bt,bt*sqrt(1.0+ct*ct)): 0.0))
Definition: base.hpp:36
list a
Definition: lutinvert.py:10

◆ SIGN

#define SIGN (   a,
  b 
)    ((b) >= 0.0 ? fabs(a) : -fabs(a))

◆ TOL

#define TOL   1.0e-11

Function Documentation

◆ compute_gradient()

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

◆ compute_gradient_phot()

double* compute_gradient_phot ( float *  pweight,
int  width,
int  height,
float *  pmasks,
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 
)

◆ 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 *  v,
double *  w,
int  n,
double *  cov 
)

Variable Documentation

◆ objkey

keystruct objkey[]

◆ outobj

objstruct outobj