IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2009, 5:28:08 PM (17 years ago)
Author:
bills
Message:

set OBS_MODE keyword for simulated images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimArguments.c

    r18011 r24099  
    3131    psMetadataAddStr(arguments,  PS_LIST_TAIL, "-format", 0, "Camera format name", NULL);
    3232    psMetadataAddStr(arguments,  PS_LIST_TAIL, "-type", 0, "Exposure type (BIAS|DARK|FLAT|OBJECT)", NULL);
     33    psMetadataAddStr(arguments,  PS_LIST_TAIL, "-obs_mode", 0, "observation mode", NULL);
    3334    psMetadataAddStr(arguments,  PS_LIST_TAIL, "-filter", 0, "Filter name", NULL);
    3435    psMetadataAddF32(arguments,  PS_LIST_TAIL, "-exptime", 0, "Exposure time (s)", NAN);
     
    108109    ppSimArgToRecipeF32(&status, options, "STARS.DENSITY", arguments, "-starsdensity");
    109110    ppSimArgToRecipeBool(&status, options, "PHOTOM",        arguments, "+photom");
     111    psString obs_mode = psMetadataLookupStr(&status, arguments, "-obs_mode");
     112    if (obs_mode) {
     113        psMetadataAddStr(options, PS_LIST_TAIL, "OBS_MODE", 0, "observation mode", obs_mode);
     114    }
     115
    110116
    111117    // if we are loading the input image (not creating it), then we can skip the remaining arguments
Note: See TracChangeset for help on using the changeset viewer.