IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2005, 4:50:29 PM (21 years ago)
Author:
eugene
Message:

includes cleanup, adding autocode stuff, fits_db

File:
1 edited

Legend:

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

    r3473 r3508  
    1111# ifndef ELIXIR_H
    1212# define ELIXIR_H
    13 
    14 # define e_time unsigned int
    15 
    16 /* image data modes in RegImage */
    17 enum {T_UNDEF = -1, T_NONE, T_OBJECT, T_DARK, T_BIAS, T_FLAT, T_MASK, T_FRINGE, T_SCATTER, T_MODES, T_FRINGEPTS, T_ANY, N_TYPE};
    18 enum {M_UNDEF = -1, M_NONE, M_MEF, M_SPLIT, M_SINGLE, M_CUBE, M_SLICE, M_MODES, N_MODE};
    19 
    20 /* convert these to enums? */
    21 /* RegImage.flag values */
    22 # define IMREG_DIST  0x01 /* image distributed, only imregister-3.0 */
    23 
    24 /* catalog values to be loaded */
    25 # define LOAD_AVES 0x01
    26 # define LOAD_MEAS 0x02
    27 # define LOAD_MISS 0x04
    28 # define LOAD_SECF 0x08
    29 
    30 /* invalid mag value */
    31 # define NO_MAG    0x7fff
    32 # define NO_ERR    0xff
    33 
    34 /* photometry code types */
    35 # define PHOT_PRI 0x01
    36 # define PHOT_SEC 0x02
    37 # define PHOT_DEP 0x03
    38 # define PHOT_REF 0x04
    39 # define PHOT_ALT 0x05  /* never stored, only for look-ups */
    40 
    41 /* Image.code values.  these are codes to note bad images */
    42 # define ID_IMAGE_NEW   0x0000  /* no nrphot attempted */
    43 # define ID_IMAGE_NOCAL 0x0001  /* used within nrphot to mean "don't apply fit" */
    44 # define ID_IMAGE_POOR  0x0002  /* relphot says image is bad */
    45 # define ID_IMAGE_SKIP  0x0004  /* external information image is bad */
    46 # define ID_IMAGE_FEW   0x0008  /* currently too few measurements for good value */
    47 
    48 /* Measure.flags values */
    49 # define ID_MEAS_NOCAL        0x0001
    50 # define ID_MEAS_POOR         0x0002
    51 # define ID_MEAS_SKIP         0x0004
    52 # define ID_MEAS_AREA         0x0008
    53 # define BLEND_IMAGE          0x0100
    54 # define BLEND_CATALOG        0x0200
    55 # define BLEND_IMAGE_NEIGHBOR 0x1000
    56 # define ID_MEAS_TRAIL        0x2000
    57 # define ID_MEAS_GHOST        0x4000
    58 
    59 /* Average.code values */
    60 # define ID_STAR_FEW   0x0001 /* used within relphot: skip star */
    61 # define ID_STAR_POOR  0x0002 /* used within relphot: skip star */
    62 # define ID_PROPER     0x0400 /* star with large proper motion */
    63 # define ID_TRANSIENT  0x1000 /* is this mutually exclusive with USNO?  */
    64 # define ID_VARIABLE   0x2000 /* not currently set? */
    65 # define ID_ASTEROID   0x2000 /* identified with an asteroid */
    66 # define ID_BAD_OBJECT 0x4000 /* if all measurements are bad, set this bit */
    67 # define ID_MOVING     0x8000
    68 # define ID_ROCK       0xa000 /* 0x8000 + 0x2000 */
    69 # define ID_GHOST      0xc001 /* 0x8000 + 0x4000 + 0x0001 */
    70 # define ID_TRAIL      0xc002 /* 0x8000 + 0x4000 + 0x0002 */
    71 # define ID_BLEED      0xc003 /* 0x8000 + 0x4000 + 0x0003 */
    72 # define ID_COSMIC     0xc004 /* 0x8000 + 0x4000 + 0x0004 */
    73 
    74 /*
    75    BLEND_IMAGE: the star on an image is matched with more
    76       than one star in the catalog (image has worse seeing than catalog)
    77    BLEND_CATALOG: the star in the catalog is matched with more
    78       than one star on the image (image has better seeing than catalog)
    79    CALIBRATED: relative photometry has been performed on this measurement
    80    BLEND_IMAGE_NEIGHBOR: the star on an image is matched with more
    81       than one star in the catalog, but not in the same catalog file.
    82 */
    8313
    8414/************  database structures ************************************/
     
    194124  short int dM;               /* scatter on alt mag */
    195125} SecFilt; /* 6 byte / SecFilt */
    196 
    197 /* the standard astrometric coordinates structure */
    198 typedef struct {
    199   double   crval1, crval2;
    200   float    crpix1, crpix2;
    201   float    cdelt1, cdelt2;
    202   float    pc1_1, pc1_2;
    203   float    pc2_1, pc2_2;
    204   float    polyterms[7][2];
    205   char     ctype[15];
    206   char     Npolyterms;
    207 } Coords;  /* 120 bytes / Coords */
    208126
    209127/* image structure for binary data storage of image data */
     
    296214int save_catalog (Catalog *catalog, char VERBOSE);
    297215
    298 int  XY_to_RD (double *ra, double *dec, double x,  double y,   Coords *coords);
    299 int  RD_to_XY (double *x,  double *y,   double ra, double dec, Coords *coords);
    300 int  fXY_to_RD (float *ra, float *dec, double x,  double y,   Coords *coords);
    301 int  fRD_to_XY (float *x,  float *y,   double ra, double dec, Coords *coords);
    302 int  GetCoords (Coords *coords, Header *header);
    303 int  PutCoords (Coords *coords, Header *header);
    304 void RegisterMosaic (Coords *coords);
    305 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch);
    306 int FindMosaicForImage (Image *images, int Nimages, int entry);
    307 int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
    308 int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);
    309 int BuildChipMatch (Image *images, int Nimages);
    310 
    311216int FindMosaicForImage (Image *images, int Nimages, int entry);
    312217int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
Note: See TracChangeset for help on using the changeset viewer.