diff options
Diffstat (limited to 'noao/digiphot/apphot/lib/phot.h')
-rw-r--r-- | noao/digiphot/apphot/lib/phot.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/lib/phot.h b/noao/digiphot/apphot/lib/phot.h new file mode 100644 index 00000000..ca9430f5 --- /dev/null +++ b/noao/digiphot/apphot/lib/phot.h @@ -0,0 +1,86 @@ +# APPHOT header file + +# phot errors (# 301 - 400) + +define AP_OK 0 # no error +define AP_APERT_NOAPERT 301 # no aperture area +define AP_APERT_OUTOFBOUNDS 302 # 1 or more apertures out of bounds +define AP_APERT_NOSKYMODE 303 # INDEF valued sky +define AP_APERT_NEGMAG 304 # 0 or -ve magnitude +define AP_APERT_BADDATA 305 # bad pixels in aperture + +# phot parameters and answers (# 301 - 400) + +define ZMAG 301 +define APERTS 302 +define NAPERTS 303 +define MAGS 304 +define MAGERRS 305 +define PXCUR 306 +define PYCUR 307 +define OPXCUR 308 +define OPYCUR 309 +define AREAS 310 +define SUMS 311 +define PWEIGHTS 312 +define PWSTRING 313 +define APSTRING 314 + +# define the phot keywords + +define KY_ZMAG "zmag" +define KY_PWSTRING "weighting" +define KY_APERTS "apertures" + +# define the phot units + +#define UN_ZMAG "zeropoint" +#define UN_PWSTRING "model" +#define UN_APERTS "scaleunit" + +define UN_PZMAG "zeropoint" +define UN_PMODEL "model" +define UN_PSCALEUNIT "scaleunit" + +# define the weighting functions + +define AP_PWCONSTANT 1 # uniform weighting +define AP_PWCONE 2 # a cone of given fwhm is used +define AP_PWGAUSS 3 # a Gaussian of given fwhm is used + +# phot strings + +define PCMDS "|apertures|zmag|mkapert|weighting|" +define PSHOWARGS "|center|sky|phot|data|" +define PWFUNCS "|constant|cone|gauss|" +define QCMDS "|show|cboxwidth|annulus|dannulus|apertures|zmag|epadu|exposure|radplots|image|output|coords|airmass|filter|obstime|" + +define PCMD_APERTURES 1 +define PCMD_ZMAG 2 +define PCMD_MKAPERT 3 +define PCMD_WEIGHTING 4 + +define PCMD_CENTER 1 +define PCMD_SKY 2 +define PCMD_PHOT 3 +define PCMD_DATA 4 + +define QCMD_SHOW 1 +define QCMD_CBOXWIDTH 2 +define QCMD_ANNULUS 3 +define QCMD_DANNULUS 4 +define QCMD_APERTURES 5 +define QCMD_ZMAG 6 +define QCMD_EPADU 7 +define QCMD_EXPOSURE 8 +define QCMD_RADPLOTS 9 +define QCMD_IMAGE 10 +define QCMD_OUTPUT 11 +define QCMD_COORDS 12 +define QCMD_AIRMASS 13 +define QCMD_FILTER 14 +define QCMD_OBSTIME 15 + +# miscellaneous + +define MAX_NAPERTS 100 |