Changeset 4828 for trunk/Ohana/src/relphot
- Timestamp:
- Aug 19, 2005, 5:10:19 PM (21 years ago)
- Location:
- trunk/Ohana/src/relphot
- Files:
-
- 4 edited
-
include/relphot.h (modified) (1 diff)
-
src/ConfigInit.c (modified) (2 diffs)
-
src/gcatalog.c (modified) (1 diff)
-
src/wcatalog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r4810 r4828 40 40 char GSCFILE[256]; 41 41 char CATDIR[256]; 42 char CATMODE[16]; /* raw, mef, split, mysql */ 43 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ 42 44 char CameraConfig[256]; 43 45 -
trunk/Ohana/src/relphot/src/ConfigInit.c
r4796 r4828 38 38 GetConfig (config, "GSCFILE", "%s", 0, GSCFILE); 39 39 GetConfig (config, "CATDIR", "%s", 0, CATDIR); 40 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 41 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 40 42 GetConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile); 41 43 GetConfig (config, "ZERO_PT", "%lf", 0, &ZERO_POINT); … … 45 47 GetConfig (config, "RELPHOT_GRID_BINNING", "%d", 0, &RELPHOT_GRID_BINNING); 46 48 GetConfig (config, "CAMERA_CONFIG", "%s", 0, CameraConfig); 49 50 if (*CATMODE == 0) strcpy (CATMODE, "RAW"); 51 if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR"); 47 52 48 53 if (!LoadPhotcodes (PhotCodeFile)) { -
trunk/Ohana/src/relphot/src/gcatalog.c
r4796 r4828 4 4 5 5 char mode; 6 7 /* no autodetect for CATMODE yet */ 8 strcpy (catalog[0].catmode, CATMODE); 6 9 7 10 if (FINAL) { -
trunk/Ohana/src/relphot/src/wcatalog.c
r2486 r4828 3 3 void wcatalog (Catalog *catalog) { 4 4 5 fits_modify (&catalog[0].header, "NRPHOT", "%t", 1, TRUE); 5 /* set catalog format (elixir, loneos, etc) */ 6 if (!strcmp (CATFORMAT, "INTERNAL")) { 7 sprintf (catalog[0].average_format, "DVO_AVERAGE"); 8 sprintf (catalog[0].measure_format, "DVO_MEASURE"); 9 } else { 10 sprintf (catalog[0].average_format, "DVO_AVERAGE_%s", CATFORMAT); 11 sprintf (catalog[0].measure_format, "DVO_MEASURE_%s", CATFORMAT); 12 } 6 13 7 save_catalog (catalog, VERBOSE); 14 if (!save_catalog (catalog, VERBOSE)) { 15 fprintf (stderr, "ERROR: failure saving catalog\n"); 16 exit (1); 17 } 8 18 9 19 if (catalog[0].Naverage) { … … 23 33 catalog[0].Nsecfilt = 0; 24 34 } 35 fits_free_header (&catalog[0].header); 25 36 }
Note:
See TracChangeset
for help on using the changeset viewer.
