Changeset 3508 for trunk/Ohana/src/libohana/include/elixir.h
- Timestamp:
- Mar 24, 2005, 4:50:29 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/elixir.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/elixir.h
r3473 r3508 11 11 # ifndef ELIXIR_H 12 12 # define ELIXIR_H 13 14 # define e_time unsigned int15 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 0x0126 # define LOAD_MEAS 0x0227 # define LOAD_MISS 0x0428 # define LOAD_SECF 0x0829 30 /* invalid mag value */31 # define NO_MAG 0x7fff32 # define NO_ERR 0xff33 34 /* photometry code types */35 # define PHOT_PRI 0x0136 # define PHOT_SEC 0x0237 # define PHOT_DEP 0x0338 # define PHOT_REF 0x0439 # 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 0x000150 # define ID_MEAS_POOR 0x000251 # define ID_MEAS_SKIP 0x000452 # define ID_MEAS_AREA 0x000853 # define BLEND_IMAGE 0x010054 # define BLEND_CATALOG 0x020055 # define BLEND_IMAGE_NEIGHBOR 0x100056 # define ID_MEAS_TRAIL 0x200057 # define ID_MEAS_GHOST 0x400058 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 0x800068 # 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 more76 than one star in the catalog (image has worse seeing than catalog)77 BLEND_CATALOG: the star in the catalog is matched with more78 than one star on the image (image has better seeing than catalog)79 CALIBRATED: relative photometry has been performed on this measurement80 BLEND_IMAGE_NEIGHBOR: the star on an image is matched with more81 than one star in the catalog, but not in the same catalog file.82 */83 13 84 14 /************ database structures ************************************/ … … 194 124 short int dM; /* scatter on alt mag */ 195 125 } 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 */208 126 209 127 /* image structure for binary data storage of image data */ … … 296 214 int save_catalog (Catalog *catalog, char VERBOSE); 297 215 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 311 216 int FindMosaicForImage (Image *images, int Nimages, int entry); 312 217 int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
Note:
See TracChangeset
for help on using the changeset viewer.
