Changeset 10438 for trunk/psastro/src/psastroArguments.c
- Timestamp:
- Dec 4, 2006, 11:45:54 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroArguments.c
r9627 r10438 15 15 psLogSetFormat ("M"); 16 16 17 // these other options override the PSASTRO recipe options 18 psMetadata *options = psMetadataAlloc (); 17 // load config data from default locations 18 pmConfig *config = pmConfigRead(&argc, argv, PSASTRO_RECIPE); 19 if (config == NULL) { 20 psError(PSASTRO_ERR_CONFIG, false, "Can't read site configuration"); 21 return NULL; 22 } 23 24 // save the following additional recipe values based on command-line options 25 // these options override the PSPHOT recipe values loaded from recipe files 26 psMetadata *options = pmConfigRecipeOptions (config, PSASTRO_RECIPE); 19 27 20 28 // photcode : used in output to supplement header data (argument or recipe?) … … 24 32 psArgumentRemove (N, &argc, argv); 25 33 } 26 27 // load config data from default locations28 pmConfig *config = pmConfigRead(&argc, argv);29 if (config == NULL) {30 psError(PSASTRO_ERR_CONFIG, false, "Can't read site configuration");31 return NULL;32 }33 34 // save these recipe options until we have loaded the options35 psMetadataAddPtr (config->arguments, PS_LIST_TAIL, "PSASTRO.OPTIONS", PS_DATA_METADATA, "", options);36 psFree (options);37 34 38 35 // chip selection is used to limit chips to be processed … … 49 46 psArgumentRemove (N, &argc, argv); 50 47 } 48 49 // drop the local view on the options (saved in config->arguments) 50 psFree (options); 51 51 52 52 status = pmConfigFileSetsMD (config->arguments, config, "INPUT", "-file", "-list");
Note:
See TracChangeset
for help on using the changeset viewer.
