IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2005, 6:24:57 AM (21 years ago)
Author:
eugene
Message:

moving average, photcode, measure, etc to autocode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/loneos.h

    r3609 r4026  
    44
    55/************  database structures ************************************/
    6 
    7 /* structure for Image Registration Database */
    8 typedef struct {
    9   char filename[64];
    10   char pathname[128];
    11   char filter[32];
    12   char instrument[32];
    13   char ccd;                        /* an identifier for CCD in mosaic (0 for single ccd) */
    14   char mode;                       /* MEF, SINGLE, SPLIT */
    15   char type;                       /* image type */
    16   char flag;                       /* image status flags */
    17   char junk[24];
    18  
    19   float exptime;
    20   float airmass;
    21   float sky;
    22   float bias;
    23   float fwhm;
    24 
    25   float telfocus;
    26   float xprobe, yprobe, zprobe;
    27   float dettemp;
    28   float teltemp[4];
    29   float rotangle;
    30   float ra, dec;
    31 
    32   e_time obstime;
    33   e_time regtime;
    34 } RegImage;  /* 360 bytes / image */
    35 
    36 # if (0)
    37 /* Detrend Database structure */
    38 typedef struct {
    39   e_time tstart;
    40   e_time tstop;
    41   e_time treg;
    42   float exptime;
    43   int type;
    44   int filter;
    45   int ccd;
    46   int Nentry;
    47   int Norder;
    48   char mode;
    49   char altpath;   /* true: data on alt db paths */
    50   char dummy[58]; /* for future expansion */
    51   char label[64];
    52   char filename[256];
    53 } DetReg;    /* 416 bytes */
    54 # endif
    556
    567/* average data as stored in the LONEOS database -- must be translated on load */
     
    9142} SecFilt; /* 6 byte / SecFilt */
    9243
    93 /* image structure for binary data storage of image data */
    9444typedef struct {
    95   Coords         coords;            /* 120 bytes */
    96   unsigned int   tzero;             /* readout time row 0 in sec (0 - 142 years valid range) */
    97   unsigned int   nstar;             /* number of stars on image */
    98   short int      secz;              /* thousanths of airmass (valid range -32.000 -- 32.000) */
    99   short int      NX, NY;            /* dimensions of image */
    100   short int      apmifit, dapmifit; /* aperture correction and error in thousandths of mag */
    101   short int      source;            /* identifier for CCD (each ever used will have a unique letter) */
    102   short int      Mcal;              /* thousandths of mag (-32.000 -- 32.000 valid range) */
    103   short int      dMcal;             /* thousandths of mag (-32.000 -- 32.000 valid range) */
    104   short int      Xm;                /* 10*log(image chi-square) */
    105   char           name[32];          /* name of original image */
    106   unsigned char  detection_limit;   /* tenths of mag (0.0 - 25.6 valid range) */
    107   unsigned char  saturation_limit;  /* tenths of mag (0.0 - 25.6 valid range) */
    108   unsigned char  cerror;            /* astrometric error: 1/50 of arcsec (0 -- 5.12 valid range) */
    109   unsigned char  fwhm_x, fwhm_y;    /* PSF terms in 25*arcsec (valid range 0.0 -- 10.2" ") */
    110   unsigned char  trate;             /* 10000 * scan rate in sec/pix (0 -- 0.0256 valid range,
    111                                        typically 0.0146. this is used only to determine the time
    112                                        of the observation, not to find the coordinates.  1 byte
    113                                        gives 0.11 sec accuracy */
    114   float          exptime;           /* exposure time, seconds */
    115   char           code;              /* flag to mark an image as bad or whatever */
    116   unsigned char  ccdnum;            /* mosaic CCD ID number (IMAGEID) */
    117   char           dummy[20];         /* extra space for the future */
    118   short int      order;             /* number of terms used for Mrel */
    119   short int      Mx, My;
    120   short int      Mxx, Mxy, Myy;
    121   short int      Mxxx, Mxxy, Mxyy, Myyy;
    122   short int      Mxxxx, Mxxxy, Mxxyy, Mxyyy, Myyyy;
    123 } Image;  /* 240 bytes / Image */
    124 /* Image needs to be aligned with 8-byte boundaries on Suns */
     45  unsigned short int code;   /* code number (stored in Measure.source) */
     46  char name[32];             /* name for filter combination */
     47  char type;                 /* primary, secondary, dependent, reference */
     48  short int C, dC, dX;       /* primary phot calibration terms (millimags) */
     49  float K;                   /* secondary phot calibration terms (millimags) */
     50  int  c1, c2;               /* color is average.M[c1] - average.M[c2] */
     51  int  equiv;                /* this dependent filter is equivalent to equiv primary/secondary */
     52  int  Nc;                   /* number of color terms */
     53  float X[4];                /* color terms X[0]*mc + X[1]*mc^2 + X[2]*mc^3, etc */
     54} PhotCode;
     55
     56/************  end of database structures ************************************/
    12557
    12658/* a catalog contains this data */
     
    15082  double DEC[2], RA[2];
    15183} GSCRegion;
    152 
    153 typedef struct {
    154   unsigned short int code;   /* code number (stored in Measure.source) */
    155   char name[32];             /* name for filter combination */
    156   char type;                 /* primary, secondary, dependent, reference */
    157   short int C, dC, dX;       /* primary phot calibration terms (millimags) */
    158   float K;                   /* secondary phot calibration terms (millimags) */
    159   int  c1, c2;               /* color is average.M[c1] - average.M[c2] */
    160   int  equiv;                /* this dependent filter is equivalent to equiv primary/secondary */
    161   int  Nc;                   /* number of color terms */
    162   float X[4];                /* color terms X[0]*mc + X[1]*mc^2 + X[2]*mc^3, etc */
    163 } PhotCode;
    16484
    16585typedef struct {
Note: See TracChangeset for help on using the changeset viewer.