Changeset 25158 for branches/czw_branch/cleanup/ppMops
- Timestamp:
- Aug 20, 2009, 12:42:13 PM (17 years ago)
- Location:
- branches/czw_branch/cleanup
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
ppMops/src/ppMops.c (modified) (4 diffs)
-
ppMops/src/ppMops.h (modified) (1 diff)
-
ppMops/src/ppMopsData.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/cleanup
- Property svn:mergeinfo changed
/trunk merged: 25052-25060,25063-25068,25070-25084,25087,25156
- Property svn:mergeinfo changed
-
branches/czw_branch/cleanup/ppMops/src/ppMops.c
r25154 r25158 6 6 int main(int argc, char *argv[]) 7 7 { 8 if (argc != 7) {8 if (argc != 6) { 9 9 fprintf(stderr, "Insufficient arguments.\n"); 10 fprintf(stderr, "Usage: %s DETECTIONS ZP EXP_ID EXP_NAME DIRECTIONOUTPUT\n", argv[0]);10 fprintf(stderr, "Usage: %s DETECTIONS ZP EXP_ID EXP_NAME OUTPUT\n", argv[0]); 11 11 exit(PS_EXIT_CONFIG_ERROR); 12 12 } … … 17 17 data->exp_id = atoll(argv[3]); 18 18 data->exp_name = psStringCopy(argv[4]); 19 data->direction = atoi(argv[5]); 20 data->output = psStringCopy(argv[6]); 19 data->output = psStringCopy(argv[5]); 21 20 22 21 if (!isfinite(data->zp)) { … … 129 128 psMetadataLookupF32(NULL, header, "FWHM_MIN")); 130 129 130 131 131 psMetadataAddStr(outHeader, PS_LIST_TAIL, "RA", 0, "Right ascension of boresight", ra); 132 132 psMetadataAddStr(outHeader, PS_LIST_TAIL, "DEC", 0, "Declination of boresight", dec); … … 141 141 psMetadataAddStr(outHeader, PS_LIST_TAIL, "FPA_ID", 0, "Exposure name", data->exp_name); 142 142 psMetadataAddS64(outHeader, PS_LIST_TAIL, "EXP_ID", 0, "Exposure identifier", data->exp_id); 143 psMetadataAddBool(outHeader, PS_LIST_TAIL, "POSITIVE", 0, "Positive subtraction?", data->direction);144 143 psMetadataAddStr(outHeader, PS_LIST_TAIL, "OBSCODE", 0, "IAU Observatory code", OBSERVATORY_CODE); 145 144 psMetadataAddF32(outHeader, PS_LIST_TAIL, "STARPSF", 0, "Stellar PSF (arcsec)", psf); 146 145 147 146 // These are completely fake 148 psMetadataAddF32(outHeader, PS_LIST_TAIL, "LIMITMAG", 0, "Limiting magnitude (FAKE)", 99.0);147 psMetadataAddF32(outHeader, PS_LIST_TAIL, "LIMITMAG", 0, "Limiting magnitude (FAKE)", 25.0); 149 148 psMetadataAddF32(outHeader, PS_LIST_TAIL, "DE1", 0, "Detection efficiency (FAKE)", 0.0); 150 149 psMetadataAddF32(outHeader, PS_LIST_TAIL, "DE2", 0, "Detection efficiency (FAKE)", 0.0); -
branches/czw_branch/cleanup/ppMops/src/ppMops.h
r25154 r25158 16 16 psString detections; // Detections filename 17 17 float zp; // Magnitude zero point 18 bool direction; // Direction of subtraction, 1=positive, 0=negative 18 psS64 exp_id; // Exposure identifier 19 psString exp_name; // Exposure name 19 20 psString output; // Output filename 20 21 } ppMopsData; -
branches/czw_branch/cleanup/ppMops/src/ppMopsData.c
r24242 r25158 11 11 { 12 12 psFree(data->detections); 13 psFree(data->exp_name); 13 14 psFree(data->output); 14 15 return; … … 22 23 data->detections = NULL; 23 24 data->zp = NAN; 25 data->exp_id = 0; 26 data->exp_name = NULL; 24 27 data->output = NULL; 25 28
Note:
See TracChangeset
for help on using the changeset viewer.
