Changeset 2797
- Timestamp:
- Dec 23, 2004, 7:32:47 AM (22 years ago)
- Location:
- trunk/Ohana/src/libohana
- Files:
-
- 2 edited
-
Makefile (modified) (1 diff)
-
include/loneos.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/Makefile
r2510 r2797 28 28 $(SRC)/Fread.$(ARCH).o $(SRC)/glockfile.$(ARCH).o \ 29 29 $(SRC)/LoadPhotcodes.$(ARCH).o $(SRC)/photfits.$(ARCH).o \ 30 $(SRC)/phot_catalog.$(ARCH).o 30 $(SRC)/phot_catalog.$(ARCH).o $(SRC)/imreg_datatypes.$(ARCH).o 31 31 32 32 $(DESTLIB)/libohana.a: $(LIB)/libohana.$(ARCH).a -
trunk/Ohana/src/libohana/include/loneos.h
r2413 r2797 1 2 /*** this file uses data types which must have fixed sizes regardless 3 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 the 7 use of # define statements if needed. I will cheat for now and use 8 the time_t to replace unsigned long int in this file 9 ***/ 1 10 2 11 # ifndef LONEOS_H 3 12 # define LONEOS_H 4 13 14 # define e_time unsigned int 15 5 16 /* image data modes in RegImage */ 6 # define MODE_NONE 0 /* not defined */ 7 # define MODE_MEF 1 /* chip of mef image */ 8 # define MODE_SPLIT 2 /* chip of split image */ 9 # define MODE_SINGLE 3 /* single chip, not mosaic */ 10 # define MODE_CUBE 4 /* cube entry */ 11 # define MODE_SLICE 5 /* slice of a cube */ 12 # define MODE_MODES 6 /* not used? */ 13 14 # define TYPE_NONE 0 15 # define TYPE_OBJECT 1 16 # define TYPE_DARK 2 17 # define TYPE_BIAS 3 18 # define TYPE_FLAT 4 19 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 # if (0) 21 # define MODE_NONE 0 /* not defined */ 22 # define MODE_MEF 1 /* chip of mef image */ 23 # define MODE_SPLIT 2 /* chip of split image */ 24 # define MODE_SINGLE 3 /* single chip, not mosaic */ 25 # define MODE_CUBE 4 /* cube entry */ 26 # define MODE_SLICE 5 /* slice of a cube */ 27 # define MODE_MODES 6 /* not used? */ 28 29 # define TYPE_NONE 0 30 # define TYPE_OBJECT 1 31 # define TYPE_DARK 2 32 # define TYPE_BIAS 3 33 # define TYPE_FLAT 4 20 34 /** these are no longer used by imregister-3.0 21 35 status:imrough uses the imregister-3.0 values … … 23 37 or be removed! 24 38 **/ 39 # endif 40 25 41 26 42 # define IMREG_DIST 0x01 /* image distributed, only imregister-3.0 */ … … 116 132 float ra, dec; 117 133 118 unsigned long intobstime;119 unsigned long intregtime;134 e_time obstime; 135 e_time regtime; 120 136 } RegImage; /* 360 bytes / image */ 121 137 … … 127 143 float exptime; 128 144 float airmass; 129 unsigned long intobstime;145 e_time obstime; 130 146 short int ccdnum; 131 147 char junk1, junk2; … … 135 151 /* Old Detrend Database structure */ 136 152 typedef struct { 137 unsigned long inttstart;138 unsigned long inttstop;139 unsigned long inttreg;153 e_time tstart; 154 e_time tstop; 155 e_time treg; 140 156 float sigma, clipsigma; 141 157 int type; … … 148 164 /* Detrend Database structure */ 149 165 typedef struct { 150 unsigned long inttstart;151 unsigned long inttstop;152 unsigned long inttreg;166 e_time tstart; 167 e_time tstop; 168 e_time treg; 153 169 float exptime; 154 170 int type; … … 171 187 float K; /* airmass term used */ 172 188 float X; /* color term used */ 173 unsigned long inttstart; /* start time of observation */174 unsigned long inttstop; /* end time of observation */189 e_time tstart; /* start time of observation */ 190 e_time tstop; /* end time of observation */ 175 191 short int c1; /* photcode for color term */ 176 192 short int c2; /* photcode for color term */ … … 186 202 float K; /* airmass term used */ 187 203 float X; /* color term used */ 188 unsigned long inttstart; /* start time of observation */189 unsigned long inttstop; /* end time of observation */204 e_time tstart; /* start time of observation */ 205 e_time tstop; /* end time of observation */ 190 206 short int c1; /* photcode for color term */ 191 207 short int c2; /* photcode for color term */ … … 443 459 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch); 444 460 461 int get_image_type (char *name); 462 char *get_type_name (int type); 463 int get_image_mode (char *name); 464 char *get_mode_name (int mode); 465 445 466 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
