IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 15, 2009, 4:56:07 PM (17 years ago)
Author:
eugene
Message:

add psastroExtract (first working version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/eam_branch_20090312/psastro/src/psastroExtractArguments.c

    r23322 r23335  
    3737    // psMetadata *options = pmConfigRecipeOptions (config, PSASTRO_RECIPE);
    3838
     39    // define the image pixel data
    3940    if (!pmConfigFileSetsMD (config->arguments, &argc, argv, "INPUT", "-file", "-list")) {
    4041        psError(PSASTRO_ERR_ARGUMENTS, true, "Missing -file (input) or -list (input)");
     
    4344    }
    4445
    45     // XXX require this?
    46     pmConfigFileSetsMD(config->arguments, &argc, argv, "ASTROM",   "-astrom", "-astromlist");
     46    // define the astrometry data (XXX make this optional and use the image header?)
     47    if (!pmConfigFileSetsMD(config->arguments, &argc, argv, "ASTROM",   "-astrom", "-astromlist")) {
     48        psError(PSASTRO_ERR_ARGUMENTS, true, "Missing -astrom (smf) or -astromlist (smf)");
     49        psErrorStackPrint(stderr, "%s", usage);
     50        exit (1);
     51    }
    4752
    4853    // define the output filename
Note: See TracChangeset for help on using the changeset viewer.