Changeset 4796 for trunk/Ohana/src/relphot/include/relphot.h
- Timestamp:
- Aug 16, 2005, 3:00:56 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relphot/include/relphot.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r3466 r4796 4 4 /* # define GRID_V1 */ 5 5 # define GRID_V2 6 7 static union { unsigned char c[4]; float f; } f_undef = { 0xff, 0xff, 0xff, 0xfe };8 # define fUNDEF (f_undef.f)9 10 static union { unsigned char c[8]; float d; } d_undef = { 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00 };11 # define dUNDEF (d_undef.d)12 6 13 7 typedef struct { … … 95 89 int TimeSelect; 96 90 unsigned int TSTART, TSTOP; 91 92 # ifdef GRID_V1 93 int setGridMeasure (int meas, int cat, double X, double Y); 94 # endif 95 96 # ifdef GRID_V2 97 int setGridMeasure (int meas, int cat, double X, double Y, int ccdnum); 98 # endif 97 99 98 100 /***** prototypes ****/ … … 139 141 void reload_catalogs (GSCRegion *region, int Nregion, GSCRegion *fullregion); 140 142 void free_catalogs (Catalog *catalog, int Ncatalog); 141 142 # ifdef GRID_V1143 int setGridMeasure (int meas, int cat, double X, double Y);144 # endif145 146 # ifdef GRID_V2147 int setGridMeasure (int meas, int cat, double X, double Y, int ccdnum);148 # endif149 150 143 void set_ZP (double ZERO); 151 152 144 char *GetPhotnamebyCode (PhotCodeData *photcodes, int code); 153 145 StatType statsStarS (Catalog *catalog, int Ncatalog); … … 157 149 StatType statsImageX (Catalog *catalog); 158 150 StatType statsImageM (Catalog *catalog); 151 void plot_scatter (Catalog *catalog, int Ncatalog); 152 void plot_defaults (Graphdata *graphdata); 153 void plot_list (Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *file); 154 void plot_stars (Catalog *catalog, int Ncatalog); 155 void plot_chisq (Catalog *catalog, int Ncatalog); 156 void plot_star_coords (Catalog *catalog, int Ncatalog); 157 void plot_grid (Catalog *catalog); 158 void dump_grid (); 159 int *SelectRefMosaic (Mosaic **refmosaic, int *Nimage); 160 Image *getimage (int N); 161 void InterpolateGrid (float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords); 162 void plot_mosaic_fields (Catalog *catalog); 163 void plot_mosaics (); 164 void plot_images (); 165 void wimages (); 166 void clean_mosaics (); 167 void freeMosaicBins (int Ncatalog); 168 void freeGridBins (int Ncatalog); 169 void clean_measures (Catalog *catalog, int Ncatalog, int final); 170 void global_stats (Catalog *catalog, int Ncatalog); 171 StatType statsImagedM (Catalog *catalog); 172 StatType statsMosaicdM (Catalog *catalog); 173 StatType statsMosaicM (Catalog *catalog); 174 StatType statsMosaicN (Catalog *catalog); 175 StatType statsMosaicX (Catalog *catalog); 176 Coords *getCoords (int meas, int cat); 177 int setExclusions (Catalog *catalog, int Ncatalog); 178 void freeImageBins (int Ncatalog); 179 void sortA (double *X, int N); 180 void sortB (double *X, double *Y, int N); 181 void sortC (double *X, double *Y, double *F1, double *F2, int N); 182 void sortD (double *X, double *Y, double *Z, int N); 183 void initstats (char *mode); 184 int liststats (double *value, double *dvalue, int N, StatType *stats); 185 186 int dms_to_ddd (double *Value, char *string); 187 int str_to_radec (double *ra, double *dec, char *str1, char *str2); 188 int chk_time (char *line); 189 double sec_to_jd (unsigned long second); 190 unsigned long int jd_to_sec (double jd); 191 char *sec_to_date (unsigned long second); 192 unsigned long date_to_sec (char *date); 193 194 int str_to_time (char *line, unsigned int *second); 195 int str_to_dtime (char *line, double *second); 196 int Fseek (FILE *f, long offset, int whence); 197 void GetConfig (char *config, char *field, char *format, int N, void *ptr); 198 void skip_measurements (Catalog *catalog, int pass); 199 Image *getimages (int *N); 200 201 void setMrelFinal (Catalog *catalog); 202 void skip_measurements (Catalog *catalog, int pass); 203 GSCRegion *get_regions (double minRa, double maxRa, double minDec, double maxDec, int *Nregions); 204 int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string); 205 GSCRegion *find_regions (Image *image, int Nimage, int *Nregions, GSCRegion *fullregion); 206 void getfullregion (Image *image, int Nimage, GSCRegion *fullregion); 207 void setMcalFinal (Image *image, int Nimage); 208 int gcatalog (Catalog *catalog, int FINAL); 209 void write_coords (Header *header, Coords *coords); 210 void wcatalog (Catalog *catalog); 211 int setMrelOutput (Catalog *catalog, int Ncatalog, int mark); 212 int setMcalOutput (Catalog *catalog, int Ncatalog);
Note:
See TracChangeset
for help on using the changeset viewer.
