Index: unk/Ohana/src/libohana/include/elixir.h
===================================================================
--- /trunk/Ohana/src/libohana/include/elixir.h	(revision 4498)
+++ 	(revision )
@@ -1,177 +1,0 @@
-
-/*** this file uses data types which must have fixed sizes regardless 
-     of the platform.  It originally used the basic C primitives: 
-       float, double, int, short int, unsigned long int, etc.
-     this breaks under 64 bit (and probably on other systems).
-     I should define internal data types which should be set by the 
-     use of # define statements if needed.  I will cheat for now and use
-     the time_t to replace unsigned long int in this file 
-***/
-
-# ifndef ELIXIR_H
-# define ELIXIR_H
-
-/************  database structures ************************************/
-
-# if (0)
-/* average data as stored in the LONEOS database */
-typedef struct {
-  float R;                    /* RA  in decimal degrees */
-  float D;                    /* DEC in decimal degrees */
-  short int M;                /* thousandths of mag (-32.000 to 32.000 valid range) */
-  unsigned short int Nm, Nn;  /* number of measurements, missing */
-  short int Xp;               /* scatter in 1/100 arcsec (-327.67 to +327.67 valid range) */
-  short int Xm;               /* chisq for primary mag [1000*value] */
-  unsigned short int code;    /* an ID code (ie, star, ghost, satelite, etc) */
-  signed int offset;          /* offset to first measurement */
-  signed int missing;         /* offset to first missing obs */
-  short int dM;               /* formal error on pri mag   [1000*log(value)] */
-  short int Xg;               /* 'best' chisq value */
-} Average; /* 32 bytes / Average */
-
-/* data for individual measurement for each star */
-typedef struct {
-  short int dR, dD;           /* 1/100 of arcsec (-327.67 to +327.67 valid range) */
-  short int M;                /* thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Mcal;             /* image cal mag, thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Mgal;             /* 'galaxy' mag, thousandths of mag (-32.767 to 32.767 valid range) */
-  short int airmass;          /* (airmass - 1), thousandths of mag (-32.767 to 32.767 valid range) */
-  short int FWx;              /* object fwhm major axis - 1/100 of arcsec */
-  unsigned char dM;           /* thousandths of mag (0.000 to 0.255 valid range) */
-  unsigned char fwy, theta;   /* object fwhm minor/major axes ratio, angle wrt ccd X dir (0xff/360 deg precision) */
-  char dophot;                /* dophot type (1-9) */
-  unsigned short int source;  /* code to identify photometry source */
-  unsigned int   t;           /* time in seconds (0 - 143 years valid range) */
-  unsigned int averef;        /* reference to corresponding average entry, upper byte of Measure.average stores flags */
-  short int dt;               /* exposure time in units of 2500*log(exptime) (millimags!) */
-  unsigned short int flags;   /* 16 bit-flags for various uses */ 
-} Measure; /* 32 bytes / Measure */
-
-/* data on missing stars */
-typedef struct {
-  unsigned int   t;           /* time in seconds (0 - 143 years valid range) */
-} Missing; /* 4 byte / Missing */
-
-/* data on missing stars */
-typedef struct {
-  short int M;                /* other mags - thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Xm;               /* chisq on alt mag */
-  short int dM;               /* scatter on alt mag */
-} SecFilt; /* 6 byte / SecFilt */
-
-typedef struct {
-  unsigned short int code;   /* code number (stored in Measure.source) */
-  char name[32];             /* name for filter combination */
-  char type;                 /* primary, secondary, dependent, reference */
-  short int C, dC, dX;       /* primary phot calibration terms (millimags) */
-  float K;                   /* secondary phot calibration terms (millimags) */
-  int  c1, c2;               /* color is average.M[c1] - average.M[c2] */
-  int  equiv;                /* this dependent filter is equivalent to equiv primary/secondary */
-  int  Nc;                   /* number of color terms */
-  float X[4];                /* color terms X[0]*mc + X[1]*mc^2 + X[2]*mc^3, etc */
-} PhotCode;
-# endif
-
-/************  end of database structures ************************************/
-
-/* structure for data on a catalog region */
-typedef struct {
-  char filename[256];
-  double DEC[2], RA[2];
-} GSCRegion;
-
-typedef struct {
-  int Ncode;
-  int Nsecfilt;
-  int hashcode[0x10000];
-  int hashNsec[0x10000];
-  PhotCode *code;
-} PhotCodeData;
-
-/* a catalog contains this data */
-typedef struct {
-  /* data in the file: */
-  Average *average;
-  Measure *measure; 
-  Missing *missing; 
-  SecFilt *secfilt;
-  Header  header;
-  int Naverage, Nmeasure, Nmissing, Nsecfilt;
-  /* description of the catalog file: */
-  char *filename;
-  int lockmode;
-  FILE *f;
-  /* pointers for data manipulation */
-  int *found;
-  int *image;
-  int *mosaic;
-  float *X;
-  float *Y;
-} Catalog;
-
-/**** prototypes ****/
-
-int lock_catalog (Catalog *catalog, int lockmode);
-int unlock_catalog (Catalog *catalog);
-int load_catalog (Catalog *catalog, char mode, int VERBOSE);
-int save_catalog (Catalog *catalog, char VERBOSE);
-
-int FindMosaicForImage (Image *images, int Nimages, int entry);
-int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
-int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);
-int BuildChipMatch (Image *images, int Nimages);
-
-short int putMi (double value);
-double getMi (short int value);
-void returnMcal (Image *image, double *c);
-void assignMcal (Image *image, double *c, int order);
-double applyMcal (Image *image, double x, double y);
-double findscatter (double *X, double *Y, double *M, double *dM, int N, double *c, int order);
-
-PhotCode *GetPhotcodebyName (char *name);
-PhotCode *GetPhotcodeEquivbyName (char *name);
-PhotCode *GetPhotcodebyCode (int code);
-PhotCode *GetPhotcodeEquivbyCode (int code);
-char *GetPhotcodeNamebyCode (int code);
-
-double PhotInst (Measure *measure);
-double PhotAbs (Measure *measure);
-double PhotCat (Measure *measure);
-double PhotSys (Measure *measure, Average *average, SecFilt *secfilt);
-double PhotRel (Measure *measure, Average *average, SecFilt *secfilt);
-double PhotCal (Measure *thisone, Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-double PhotAve (PhotCode *code, Average *average, SecFilt *secfilt);
-double PhotRef (PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure);
-double PhotXm (PhotCode *code, Average *average, SecFilt *secfilt);
-double PhotdM (PhotCode *code, Average *average, SecFilt *secfilt);
-
-short iPhotInst (Measure *measure);
-short iPhotAbs (Measure *measure);
-short iPhotCat (Measure *measure);
-short iPhotSys (Measure *measure, Average *average, SecFilt *secfilt);
-short iPhotRel (Measure *measure, Average *average, SecFilt *secfilt);
-short iPhotCal (Measure *thisone, Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-short iPhotAve (PhotCode *code, Average *average, SecFilt *secfilt);
-short iPhotRef (PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure);
-short iPhotXm (PhotCode *code, Average *average, SecFilt *secfilt);
-short iPhotdM (PhotCode *code, Average *average, SecFilt *secfilt);
-
-short iPhotColor (Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-int PhotColor (Average *average, SecFilt *secfilt, Measure *measure, int c1, int c2, double *color);
-
-int LoadPhotcodes (char *filename);
-int GetPhotcodeCodebyName (char *name);
-int GetPhotcodeEquivCodebyName (char *name);
-int GetPhotcodeEquivCodebyCode (int code);
-int GetPhotcodeNsec (int code);
-int GetPhotcodeNsecfilt ();
-void SetZeroPoint (double ZP);
-int *GetPhotcodeEquivList (int code, int *nlist);
-void ParseColorTerms (char *terms, float *X, int *N);
-
-int get_image_type (char *name);
-char *get_type_name (int type);
-int get_image_mode (char *name);
-char *get_mode_name (int mode);
-
-# endif
Index: unk/Ohana/src/libohana/include/loneos.h
===================================================================
--- /trunk/Ohana/src/libohana/include/loneos.h	(revision 4498)
+++ 	(revision )
@@ -1,161 +1,0 @@
-
-# ifndef LONEOS_H
-# define LONEOS_H
-
-/************  database structures ************************************/
-
-/* average data as stored in the LONEOS database -- must be translated on load */
-typedef struct {
-  float R;                    /* RA  in decimal degrees */
-  float D;                    /* DEC in decimal degrees */
-  short int M;                /* thousandths of mag (-32.000 to 32.000 valid range) */
-  unsigned short int Nm, Nn;  /* number of measurements, missing */
-  short int Xp;               /* scatter in 1/100 arcsec (-327.67 to +327.67 valid range) */
-  short int Xm;               /* 1000*log(chisq) for magnitude measurement */
-  unsigned short int code;    /* an ID code (ie, star, ghost, satelite, etc) */
-  signed int offset;          /* offset to first measurement */
-  signed int missing;         /* offset to first missing obs */
-} Average; /* 28 bytes / Average */
-
-/* data for individual measurement for each star */
-typedef struct {
-  short int dR, dD;           /* 1/100 of arcsec (-327.67 to +327.67 valid range) */
-  short int M;                /* thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Mcal;             /* image cal mag, thousandths of mag (-32.767 to 32.767 valid range) */
-  unsigned char dM;           /* thousandths of mag (0.000 to 0.255 valid range) */
-  char dophot;                /* dophot type (1-9) */
-  unsigned short int source;  /* code to identify photometry source */
-  unsigned int   t;           /* time in seconds (0 - 143 years valid range) */
-  unsigned int average;       /* reference to corresponding average entry, upper byte of Measure.average stores flags */
-} Measure; /* 20 bytes / Measure */
-
-/* data on missing stars */
-typedef struct {
-  unsigned int   t;           /* time in seconds (0 - 143 years valid range) */
-} Missing; /* 4 byte / Missing */
-
-/* data on missing stars */
-typedef struct {
-  short int M;                /* other mags - thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Xm;               /* chisq on alt mag */
-  short int dM;               /* scatter on alt mag */
-} SecFilt; /* 6 byte / SecFilt */
-
-typedef struct {
-  unsigned short int code;   /* code number (stored in Measure.source) */
-  char name[32];             /* name for filter combination */
-  char type;                 /* primary, secondary, dependent, reference */
-  short int C, dC, dX;       /* primary phot calibration terms (millimags) */
-  float K;                   /* secondary phot calibration terms (millimags) */
-  int  c1, c2;               /* color is average.M[c1] - average.M[c2] */
-  int  equiv;                /* this dependent filter is equivalent to equiv primary/secondary */
-  int  Nc;                   /* number of color terms */
-  float X[4];                /* color terms X[0]*mc + X[1]*mc^2 + X[2]*mc^3, etc */
-} PhotCode;
-
-/************  end of database structures ************************************/
-
-/* a catalog contains this data */
-typedef struct {
-  /* data in the file: */
-  Average *average;
-  Measure *measure; 
-  Missing *missing; 
-  SecFilt *secfilt;
-  Header  header;
-  int Naverage, Nmeasure, Nmissing, Nsecfilt;
-  /* description of the catalog file: */
-  char *filename;
-  int lockmode;
-  FILE *f;
-  /* pointers for data manipulation */
-  int *found;
-  int *image;
-  int *mosaic;
-  float *X;
-  float *Y;
-} Catalog;
-
-/* structure for data on a catalog region */
-typedef struct {
-  char filename[256];
-  double DEC[2], RA[2];
-} GSCRegion;
-
-typedef struct {
-  int Ncode;
-  int Nsecfilt;
-  int hashcode[0x10000];
-  int hashNsec[0x10000];
-  PhotCode *code;
-} PhotCodeData;
-
-/**** prototypes ****/
-
-int lock_catalog (Catalog *catalog, int lockmode);
-int unlock_catalog (Catalog *catalog);
-int load_catalog (Catalog *catalog, char mode, int VERBOSE);
-int save_catalog (Catalog *catalog, char VERBOSE);
-Measure *FixOldMeasure (OldMeasure *in, int Nvalues);
-Average *FixOldAverage (OldAverage *in, int Nvalues);
-SecFilt *FixOldSecFilt (OldSecFilt *in, int Nvalues);
-
-int FindMosaicForImage (Image *images, int Nimages, int entry);
-int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
-int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);
-int BuildChipMatch (Image *images, int Nimages);
-
-short int putMi (double value);
-double getMi (short int value);
-void returnMcal (Image *image, double *c);
-void assignMcal (Image *image, double *c, int order);
-double applyMcal (Image *image, double x, double y);
-double findscatter (double *X, double *Y, double *M, double *dM, int N, double *c, int order);
-
-PhotCode *GetPhotcodebyName (char *name);
-PhotCode *GetPhotcodeEquivbyName (char *name);
-PhotCode *GetPhotcodebyCode (int code);
-PhotCode *GetPhotcodeEquivbyCode (int code);
-char *GetPhotcodeNamebyCode (int code);
-
-double PhotInst (Measure *measure);
-double PhotAbs (Measure *measure);
-double PhotCat (Measure *measure);
-double PhotSys (Measure *measure, Average *average, SecFilt *secfilt);
-double PhotRel (Measure *measure, Average *average, SecFilt *secfilt);
-double PhotCal (Measure *thisone, Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-double PhotAve (PhotCode *code, Average *average, SecFilt *secfilt);
-double PhotRef (PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure);
-double PhotXm (PhotCode *code, Average *average, SecFilt *secfilt);
-double PhotdM (PhotCode *code, Average *average, SecFilt *secfilt);
-
-short iPhotInst (Measure *measure);
-short iPhotAbs (Measure *measure);
-short iPhotCat (Measure *measure);
-short iPhotSys (Measure *measure, Average *average, SecFilt *secfilt);
-short iPhotRel (Measure *measure, Average *average, SecFilt *secfilt);
-short iPhotCal (Measure *thisone, Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-short iPhotAve (PhotCode *code, Average *average, SecFilt *secfilt);
-short iPhotRef (PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure);
-short iPhotXm (PhotCode *code, Average *average, SecFilt *secfilt);
-short iPhotdM (PhotCode *code, Average *average, SecFilt *secfilt);
-
-short iPhotColor (Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-int PhotColor (Average *average, SecFilt *secfilt, Measure *measure, int c1, int c2, double *color);
-
-int LoadPhotcodes (char *filename);
-int GetPhotcodeCodebyName (char *name);
-int GetPhotcodeEquivCodebyName (char *name);
-int GetPhotcodeEquivCodebyCode (int code);
-int GetPhotcodeNsec (int code);
-int GetPhotcodeNsecfilt ();
-void SetZeroPoint (double ZP);
-int *GetPhotcodeEquivList (int code, int *nlist);
-void ParseColorTerms (char *terms, float *X, int *N);
-
-int get_image_type (char *name);
-char *get_type_name (int type);
-int get_image_mode (char *name);
-char *get_mode_name (int mode);
-
-# endif
Index: unk/Ohana/src/libohana/include/panstarrs.h
===================================================================
--- /trunk/Ohana/src/libohana/include/panstarrs.h	(revision 4498)
+++ 	(revision )
@@ -1,249 +1,0 @@
-
-# ifndef PANSTARRS_H
-# define PANSTARRS_H
-
-/************  database structures ************************************/
-
-/* structure for Image Registration Database */
-typedef struct {
-  char filename[64];
-  char pathname[128];
-  char filter[32];
-  char instrument[32];
-  char ccd;                        /* an identifier for CCD in mosaic (0 for single ccd) */
-  char mode;                       /* MEF, SINGLE, SPLIT */
-  char type;                       /* image type */
-  char flag;                       /* image status flags */
-  char junk[24];
- 
-  float exptime;
-  float airmass;
-  float sky;
-  float bias;
-  float fwhm;
-
-  float telfocus;
-  float xprobe, yprobe, zprobe;
-  float dettemp;
-  float teltemp[4];
-  float rotangle;
-  float ra, dec;
-
-  e_time obstime;
-  e_time regtime;
-} RegImage;  /* 360 bytes / image */
-
-# if (0)
-/* Detrend Database structure */
-typedef struct {
-  e_time tstart;
-  e_time tstop;
-  e_time treg;
-  float exptime;
-  int type;
-  int filter;
-  int ccd;
-  int Nentry;
-  int Norder;
-  char mode;
-  char altpath;   /* true: data on alt db paths */
-  char dummy[58]; /* for future expansion */
-  char label[64];
-  char filename[256];
-} DetReg;    /* 416 bytes */
-# endif
-
-/* average data as stored in the LONEOS database */
-typedef struct {
-  double R;                   /* RA  in decimal degrees */
-  double D;                   /* DEC in decimal degrees */
-  short int M;                /* thousandths of mag (-32.000 to 32.000 valid range) */
-  unsigned short Nm;          /* number of measurements */
-  unsigned short Nn;          /* number of missing */
-  short int Xp;               /* scatter in 1/100 arcsec (-327.67 to +327.67 valid range) */
-  short int Xm;               /* chisq for primary mag [1000*value] */
-  unsigned short code;        /* an ID code (ie, star, ghost, satelite, etc) */
-  signed int offset;          /* offset to first measurement */
-  signed int missing;         /* offset to first missing obs */
-  short int dM;               /* formal error on pri mag   [1000*log(value)] */
-  short int Xg;               /* 'best' chisq value */
-} Average; /* 40 bytes / Average */
-
-/* data for individual measurement for each star */
-typedef struct {
-  short int dR, dD;           /* 1/100 of arcsec (-327.67 to +327.67 valid range) */
-  short int M;                /* thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Mcal;             /* image cal mag, thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Mgal;             /* 'galaxy' mag, thousandths of mag (-32.767 to 32.767 valid range) */
-  short int airmass;          /* (airmass - 1), thousandths of mag (-32.767 to 32.767 valid range) */
-  short int FWx;              /* object fwhm major axis - 1/100 of arcsec */
-  unsigned char dM;           /* thousandths of mag (0.000 to 0.255 valid range) */
-  unsigned char fwy, theta;   /* object fwhm minor/major axes ratio, angle wrt ccd X dir (0xff/360 deg precision) */
-  char dophot;                /* dophot type (1-9) */
-  unsigned short int source;  /* code to identify photometry source */
-  unsigned int   t;           /* time in seconds (0 - 143 years valid range) */
-  unsigned int averef;        /* reference to corresponding average entry, upper byte of Measure.average stores flags */
-  short int dt;               /* exposure time in units of 2500*log(exptime) (millimags!) */
-  unsigned short int flags;   /* 16 bit-flags for various uses */ 
-} Measure; /* 32 bytes / Measure */
-
-/* data on missing stars */
-typedef struct {
-  unsigned int   t;           /* time in seconds (0 - 143 years valid range) */
-} Missing; /* 4 byte / Missing */
-
-/* data on missing stars */
-typedef struct {
-  short int M;                /* other mags - thousandths of mag (-32.767 to 32.767 valid range) */
-  short int Xm;               /* chisq on alt mag */
-  short int dM;               /* scatter on alt mag */
-} SecFilt; /* 6 byte / SecFilt */
-
-/* image structure for binary data storage of image data */
-typedef struct {
-  Coords         coords;            /* 120 bytes */
-  unsigned int   tzero;             /* readout time row 0 in sec (0 - 142 years valid range) */
-  unsigned int   nstar;             /* number of stars on image */
-  short int      secz;              /* thousanths of airmass (valid range -32.000 -- 32.000) */
-  short int      NX, NY;            /* dimensions of image */
-  short int      apmifit, dapmifit; /* aperture correction and error in thousandths of mag */
-  short int      source;            /* identifier for CCD (each ever used will have a unique letter) */
-  short int      Mcal;              /* thousandths of mag (-32.000 -- 32.000 valid range) */
-  short int      dMcal;             /* thousandths of mag (-32.000 -- 32.000 valid range) */
-  short int      Xm;                /* 10*log(image chi-square) */
-  char           name[32];          /* name of original image */
-  unsigned char  detection_limit;   /* tenths of mag (0.0 - 25.6 valid range) */
-  unsigned char  saturation_limit;  /* tenths of mag (0.0 - 25.6 valid range) */
-  unsigned char  cerror;            /* astrometric error: 1/50 of arcsec (0 -- 5.12 valid range) */
-  unsigned char  fwhm_x, fwhm_y;    /* PSF terms in 25*arcsec (valid range 0.0 -- 10.2" ") */
-  unsigned char  trate;             /* 10000 * scan rate in sec/pix (0 -- 0.0256 valid range, 
-				       typically 0.0146. this is used only to determine the time
-				       of the observation, not to find the coordinates.  1 byte
-				       gives 0.11 sec accuracy */
-  float          exptime;           /* exposure time, seconds */
-  char           code;              /* flag to mark an image as bad or whatever */
-  unsigned char  ccdnum;            /* mosaic CCD ID number (IMAGEID) */ 
-  char           dummy[20];         /* extra space for the future */
-  short int      order;             /* number of terms used for Mrel */
-  short int      Mx, My;
-  short int      Mxx, Mxy, Myy;
-  short int      Mxxx, Mxxy, Mxyy, Myyy;
-  short int      Mxxxx, Mxxxy, Mxxyy, Mxyyy, Myyyy;
-} Image;  /* 240 bytes / Image */
-/* Image needs to be aligned with 8-byte boundaries on Suns */
-
-/************  end of database structures ************************************/
-
-/* structure for data on a catalog region */
-typedef struct {
-  char filename[256];
-  double DEC[2], RA[2];
-} GSCRegion;
-
-typedef struct {
-  unsigned short int code;   /* code number (stored in Measure.source) */
-  char name[32];             /* name for filter combination */
-  char type;                 /* primary, secondary, dependent, reference */
-  short int C, dC, dX;       /* primary phot calibration terms (millimags) */
-  float K;                   /* secondary phot calibration terms (millimags) */
-  int  c1, c2;               /* color is average.M[c1] - average.M[c2] */
-  int  equiv;                /* this dependent filter is equivalent to equiv primary/secondary */
-  int  Nc;                   /* number of color terms */
-  float X[4];                /* color terms X[0]*mc + X[1]*mc^2 + X[2]*mc^3, etc */
-} PhotCode;
-
-typedef struct {
-  int Ncode;
-  int Nsecfilt;
-  int hashcode[0x10000];
-  int hashNsec[0x10000];
-  PhotCode *code;
-} PhotCodeData;
-
-/* a catalog contains this data */
-typedef struct {
-  /* data in the file: */
-  Average *average;
-  Measure *measure; 
-  Missing *missing; 
-  SecFilt *secfilt;
-  Header  header;
-  int Naverage, Nmeasure, Nmissing, Nsecfilt;
-  /* description of the catalog file: */
-  char *filename;
-  int lockmode;
-  FILE *f;
-  /* pointers for data manipulation */
-  int *found;
-  int *image;
-  int *mosaic;
-  float *X;
-  float *Y;
-} Catalog;
-
-/**** prototypes ****/
-
-int lock_catalog (Catalog *catalog, int lockmode);
-int unlock_catalog (Catalog *catalog);
-int load_catalog (Catalog *catalog, char mode, int VERBOSE);
-int save_catalog (Catalog *catalog, char VERBOSE);
-
-int FindMosaicForImage (Image *images, int Nimages, int entry);
-int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
-int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);
-int BuildChipMatch (Image *images, int Nimages);
-
-short int putMi (double value);
-double getMi (short int value);
-void returnMcal (Image *image, double *c);
-void assignMcal (Image *image, double *c, int order);
-double applyMcal (Image *image, double x, double y);
-double findscatter (double *X, double *Y, double *M, double *dM, int N, double *c, int order);
-
-PhotCode *GetPhotcodebyName (char *name);
-PhotCode *GetPhotcodeEquivbyName (char *name);
-PhotCode *GetPhotcodebyCode (int code);
-PhotCode *GetPhotcodeEquivbyCode (int code);
-char *GetPhotcodeNamebyCode (int code);
-
-double PhotInst (Measure *measure);
-double PhotAbs (Measure *measure);
-double PhotCat (Measure *measure);
-double PhotSys (Measure *measure, Average *average, SecFilt *secfilt);
-double PhotRel (Measure *measure, Average *average, SecFilt *secfilt);
-double PhotCal (Measure *thisone, Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-double PhotAve (PhotCode *code, Average *average, SecFilt *secfilt);
-double PhotRef (PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure);
-double PhotXm (PhotCode *code, Average *average, SecFilt *secfilt);
-double PhotdM (PhotCode *code, Average *average, SecFilt *secfilt);
-
-short iPhotInst (Measure *measure);
-short iPhotAbs (Measure *measure);
-short iPhotCat (Measure *measure);
-short iPhotSys (Measure *measure, Average *average, SecFilt *secfilt);
-short iPhotRel (Measure *measure, Average *average, SecFilt *secfilt);
-short iPhotCal (Measure *thisone, Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-short iPhotAve (PhotCode *code, Average *average, SecFilt *secfilt);
-short iPhotRef (PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure);
-short iPhotXm (PhotCode *code, Average *average, SecFilt *secfilt);
-short iPhotdM (PhotCode *code, Average *average, SecFilt *secfilt);
-
-short iPhotColor (Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
-int PhotColor (Average *average, SecFilt *secfilt, Measure *measure, int c1, int c2, double *color);
-
-int LoadPhotcodes (char *filename);
-int GetPhotcodeCodebyName (char *name);
-int GetPhotcodeEquivCodebyName (char *name);
-int GetPhotcodeEquivCodebyCode (int code);
-int GetPhotcodeNsec (int code);
-int GetPhotcodeNsecfilt ();
-void SetZeroPoint (double ZP);
-int *GetPhotcodeEquivList (int code, int *nlist);
-void ParseColorTerms (char *terms, float *X, int *N);
-
-int get_image_type (char *name);
-char *get_type_name (int type);
-int get_image_mode (char *name);
-char *get_mode_name (int mode);
-
-# endif
