IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 15, 2008, 4:44:46 PM (18 years ago)
Author:
eugene
Message:

options to turn on and off all of the components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimArguments.c

    r17702 r17705  
    2222{
    2323    bool status;
    24     bool mdok;                          // Status of MD lookup
    2524
    2625    assert(config);
     
    154153    ppSimType type = ppSimTypeFromString (typeStr);
    155154
    156     char *filter = ppSimArgToRecipeStr(&status, options, "FILTER", arguments, "-filter"); // Filter name
     155    ppSimArgToRecipeStr(&status, options, "FILTER", arguments, "-filter"); // Filter name
    157156
    158157    // set the exposure time
     
    178177    ppSimArgToRecipeS32(&status, options, "BINNING",       arguments, "-bin");
    179178
    180     // XX don't do this: recipe is not yet fully realized (camera options not interpolated)
    181     psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, PPSIM_RECIPE); // Recipe
    182 
    183179    if (type == PPSIM_TYPE_OBJECT) {
    184180        // Load values required for adding stars
     
    195191        }
    196192
    197         float scale = ppSimArgToRecipeF32(&status, options, "PIXEL.SCALE", arguments, "-scale"); // Plate scale
     193        ppSimArgToRecipeF32(&status, options, "PIXEL.SCALE", arguments, "-scale"); // Plate scale (arcsec / pixel)
    198194        ppSimArgToRecipeF32(&status, options, "SKY.MAGS", arguments, "-skymags"); // Plate scale
    199195        ppSimArgToRecipeStr(&status, options, "PSF.MODEL",    arguments, "-psfclass"); // PSF model class
     
    201197
    202198        // the user supplies FWHM in arcsec; here we convert to Sigma in pixels
    203         psMetadataAddF32(options, PS_LIST_TAIL, "SEEING", 0, "Seeing SIGMA (pixels)", seeing / 2.0 / sqrt(2.0 * log(2.0)) / scale);
     199        psMetadataAddF32(options, PS_LIST_TAIL, "SEEING", 0, "Seeing FWHM (arcsec)", seeing);
    204200        psMetadataAddF32(options, PS_LIST_TAIL, "RA", 0, "Boresight RA (radians)", ra0 * M_PI / 180.0);
    205201        psMetadataAddF32(options, PS_LIST_TAIL, "DEC", 0, "Boresight Declination (radians)", dec0 * M_PI / 180.0);
    206202        psMetadataAddF32(options, PS_LIST_TAIL, "PA", 0, "Boresight position angle (radians)",pa * M_PI / 180.0);
    207203
    208         assert (filter != NULL);
    209 
    210204        ppSimArgToRecipeF32(&status, options, "ZEROPOINT", arguments, "-zp"); // Zero point
    211         if (!status) {
    212             float zp = ppSimGetZeroPoint (recipe, filter);
    213             psMetadataAddF32(options, PS_LIST_TAIL, "ZEROPOINT", 0, "Photometric zeropoint", zp);
    214         }
    215205    }
    216206
Note: See TracChangeset for help on using the changeset viewer.