Changeset 3508 for trunk/Ohana/src/libohana/include/loneos.h
- Timestamp:
- Mar 24, 2005, 4:50:29 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/loneos.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/loneos.h
r3466 r3508 1 2 /*** this file uses data types which must have fixed sizes regardless3 of the platform. It originally used the basic C primitives:4 float, double, int, short int, unsigned long int, etc.5 this breaks under 64 bit (and probably on other systems).6 I should define internal data types which should be set by the7 use of # define statements if needed. I will cheat for now and use8 the time_t to replace unsigned long int in this file9 ***/10 1 11 2 # ifndef LONEOS_H 12 3 # define LONEOS_H 13 4 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 */ 5 /************ database structures ************************************/ 83 6 84 7 /* structure for Image Registration Database */ … … 183 106 short int dM; /* scatter on alt mag */ 184 107 } SecFilt; /* 6 byte / SecFilt */ 185 186 /* the standard astrometric coordinates structure */187 typedef struct {188 double crval1, crval2;189 float crpix1, crpix2;190 float cdelt1, cdelt2;191 float pc1_1, pc1_2;192 float pc2_1, pc2_2;193 float polyterms[7][2];194 char ctype[15];195 char Npolyterms;196 } Coords; /* 120 bytes / Coords */197 108 198 109 /* image structure for binary data storage of image data */ … … 286 197 SecFilt *FixOldSecFilt (OldSecFilt *in, int Nvalues); 287 198 288 int XY_to_RD (double *ra, double *dec, double x, double y, Coords *coords);289 int RD_to_XY (double *x, double *y, double ra, double dec, Coords *coords);290 int fXY_to_RD (float *ra, float *dec, double x, double y, Coords *coords);291 int fRD_to_XY (float *x, float *y, double ra, double dec, Coords *coords);292 int GetCoords (Coords *coords, Header *header);293 int PutCoords (Coords *coords, Header *header);294 void RegisterMosaic (Coords *coords);295 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch);296 int FindMosaicForImage (Image *images, int Nimages, int entry);297 int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);298 int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);299 int BuildChipMatch (Image *images, int Nimages);300 301 199 int FindMosaicForImage (Image *images, int Nimages, int entry); 302 200 int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
Note:
See TracChangeset
for help on using the changeset viewer.
