Changeset 19399 for trunk/pswarp/src/pswarpArguments.c
- Timestamp:
- Sep 5, 2008, 12:41:58 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpArguments.c
r19043 r19399 59 59 psMetadataAddBool(config->arguments, PS_LIST_TAIL, "PSF", 0, "Do PSF determination?", true); 60 60 } 61 if ((N = psArgumentGet(argc, argv, "-dumpconfig"))) { 62 psArgumentRemove(N, &argc, argv); 63 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE, 64 "Filename for configuration dump", argv[N]); 65 psArgumentRemove(N, &argc, argv); 66 } 67 61 68 62 69 if (!pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list")) { … … 166 173 167 174 // Dump configuration, now that's it's settled 168 { 175 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 176 if (dump_file) { 169 177 const char *skyCamera = psMetadataLookupStr(NULL, config->arguments, 170 178 "SKYCELL.CAMERA"); // Name of camera for skycell … … 172 180 pmConfigRecipesCull(config, "PSWARP,PPSTATS,PSPHOT,MASKS"); 173 181 174 const char *outroot = psMetadataLookupStr(NULL, config->arguments, "OUTPUT"); // Output root name175 psAssert(outroot, "Should be there, we put it there!");176 177 182 pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PSWARP.INPUT"); // Input file 178 pmConfigDump(config, input->fpa, outroot);183 pmConfigDump(config, input->fpa, dump_file); 179 184 } 180 185
Note:
See TracChangeset
for help on using the changeset viewer.
