Changeset 3508 for trunk/Ohana/src/libohana/include/panstarrs.h
- Timestamp:
- Mar 24, 2005, 4:50:29 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/panstarrs.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/panstarrs.h
r3473 r3508 2 2 # ifndef PANSTARRS_H 3 3 # define PANSTARRS_H 4 5 # define e_time unsigned int6 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 0x0117 # define LOAD_MEAS 0x0218 # define LOAD_MISS 0x0419 # define LOAD_SECF 0x0820 21 /* invalid mag value */22 # define NO_MAG 0x7fff23 # define NO_ERR 0xff24 25 /* photometry code types */26 # define PHOT_PRI 0x0127 # define PHOT_SEC 0x0228 # define PHOT_DEP 0x0329 # define PHOT_REF 0x0430 # 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 0x000141 # define ID_MEAS_POOR 0x000242 # define ID_MEAS_SKIP 0x000443 # define ID_MEAS_AREA 0x000844 # define BLEND_IMAGE 0x010045 # define BLEND_CATALOG 0x020046 # define BLEND_IMAGE_NEIGHBOR 0x100047 # define ID_MEAS_TRAIL 0x200048 # define ID_MEAS_GHOST 0x400049 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 0x800059 # 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 more67 than one star in the catalog (image has worse seeing than catalog)68 BLEND_CATALOG: the star in the catalog is matched with more69 than one star on the image (image has better seeing than catalog)70 CALIBRATED: relative photometry has been performed on this measurement71 BLEND_IMAGE_NEIGHBOR: the star on an image is matched with more72 than one star in the catalog, but not in the same catalog file.73 */74 4 75 5 /************ database structures ************************************/ … … 185 115 short int dM; /* scatter on alt mag */ 186 116 } 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 */199 117 200 118 /* image structure for binary data storage of image data */ … … 287 205 int save_catalog (Catalog *catalog, char VERBOSE); 288 206 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 302 207 int FindMosaicForImage (Image *images, int Nimages, int entry); 303 208 int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
Note:
See TracChangeset
for help on using the changeset viewer.
