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/panstarrs.h

    r3473 r3508  
    22# ifndef PANSTARRS_H
    33# define PANSTARRS_H
    4 
    5 # define e_time unsigned int
    6 
    7 /* image data modes in RegImage */
    8 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};
    9 enum {M_UNDEF = -1, M_NONE, M_MEF, M_SPLIT, M_SINGLE, M_CUBE, M_SLICE, M_MODES, N_MODE};
    10 
    11 /* convert these to enums? */
    12 /* RegImage.flag values */
    13 # define IMREG_DIST  0x01 /* image distributed, only imregister-3.0 */
    14 
    15 /* catalog values to be loaded */
    16 # define LOAD_AVES 0x01
    17 # define LOAD_MEAS 0x02
    18 # define LOAD_MISS 0x04
    19 # define LOAD_SECF 0x08
    20 
    21 /* invalid mag value */
    22 # define NO_MAG    0x7fff
    23 # define NO_ERR    0xff
    24 
    25 /* photometry code types */
    26 # define PHOT_PRI 0x01
    27 # define PHOT_SEC 0x02
    28 # define PHOT_DEP 0x03
    29 # define PHOT_REF 0x04
    30 # define PHOT_ALT 0x05  /* never stored, only for look-ups */
    31 
    32 /* Image.code values.  these are codes to note bad images */
    33 # define ID_IMAGE_NEW   0x0000  /* no nrphot attempted */
    34 # define ID_IMAGE_NOCAL 0x0001  /* used within nrphot to mean "don't apply fit" */
    35 # define ID_IMAGE_POOR  0x0002  /* relphot says image is bad */
    36 # define ID_IMAGE_SKIP  0x0004  /* external information image is bad */
    37 # define ID_IMAGE_FEW   0x0008  /* currently too few measurements for good value */
    38 
    39 /* Measure.flags values */
    40 # define ID_MEAS_NOCAL        0x0001
    41 # define ID_MEAS_POOR         0x0002
    42 # define ID_MEAS_SKIP         0x0004
    43 # define ID_MEAS_AREA         0x0008
    44 # define BLEND_IMAGE          0x0100
    45 # define BLEND_CATALOG        0x0200
    46 # define BLEND_IMAGE_NEIGHBOR 0x1000
    47 # define ID_MEAS_TRAIL        0x2000
    48 # define ID_MEAS_GHOST        0x4000
    49 
    50 /* Average.code values */
    51 # define ID_STAR_FEW   0x0001 /* used within relphot: skip star */
    52 # define ID_STAR_POOR  0x0002 /* used within relphot: skip star */
    53 # define ID_PROPER     0x0400 /* star with large proper motion */
    54 # define ID_TRANSIENT  0x1000 /* is this mutually exclusive with USNO?  */
    55 # define ID_VARIABLE   0x2000 /* not currently set? */
    56 # define ID_ASTEROID   0x2000 /* identified with an asteroid */
    57 # define ID_BAD_OBJECT 0x4000 /* if all measurements are bad, set this bit */
    58 # define ID_MOVING     0x8000
    59 # define ID_ROCK       0xa000 /* 0x8000 + 0x2000 */
    60 # define ID_GHOST      0xc001 /* 0x8000 + 0x4000 + 0x0001 */
    61 # define ID_TRAIL      0xc002 /* 0x8000 + 0x4000 + 0x0002 */
    62 # define ID_BLEED      0xc003 /* 0x8000 + 0x4000 + 0x0003 */
    63 # define ID_COSMIC     0xc004 /* 0x8000 + 0x4000 + 0x0004 */
    64 
    65 /*
    66    BLEND_IMAGE: the star on an image is matched with more
    67       than one star in the catalog (image has worse seeing than catalog)
    68    BLEND_CATALOG: the star in the catalog is matched with more
    69       than one star on the image (image has better seeing than catalog)
    70    CALIBRATED: relative photometry has been performed on this measurement
    71    BLEND_IMAGE_NEIGHBOR: the star on an image is matched with more
    72       than one star in the catalog, but not in the same catalog file.
    73 */
    744
    755/************  database structures ************************************/
     
    185115  short int dM;               /* scatter on alt mag */
    186116} SecFilt; /* 6 byte / SecFilt */
    187 
    188 /* the standard astrometric coordinates structure */
    189 typedef struct {
    190   double   crval1, crval2;
    191   float    crpix1, crpix2;
    192   float    cdelt1, cdelt2;
    193   float    pc1_1, pc1_2;
    194   float    pc2_1, pc2_2;
    195   float    polyterms[7][2];
    196   char     ctype[15];
    197   char     Npolyterms;
    198 } Coords;  /* 120 bytes / Coords */
    199117
    200118/* image structure for binary data storage of image data */
     
    287205int save_catalog (Catalog *catalog, char VERBOSE);
    288206
    289 int  XY_to_RD (double *ra, double *dec, double x,  double y,   Coords *coords);
    290 int  RD_to_XY (double *x,  double *y,   double ra, double dec, Coords *coords);
    291 int  fXY_to_RD (float *ra, float *dec, double x,  double y,   Coords *coords);
    292 int  fRD_to_XY (float *x,  float *y,   double ra, double dec, Coords *coords);
    293 int  GetCoords (Coords *coords, Header *header);
    294 int  PutCoords (Coords *coords, Header *header);
    295 void RegisterMosaic (Coords *coords);
    296 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch);
    297 int FindMosaicForImage (Image *images, int Nimages, int entry);
    298 int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
    299 int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);
    300 int BuildChipMatch (Image *images, int Nimages);
    301 
    302207int FindMosaicForImage (Image *images, int Nimages, int entry);
    303208int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
Note: See TracChangeset for help on using the changeset viewer.