Changeset 17705 for branches/eam_branch_20080511/ppSim/src/ppSimArguments.c
- Timestamp:
- May 15, 2008, 4:44:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimArguments.c
r17702 r17705 22 22 { 23 23 bool status; 24 bool mdok; // Status of MD lookup25 24 26 25 assert(config); … … 154 153 ppSimType type = ppSimTypeFromString (typeStr); 155 154 156 char *filter =ppSimArgToRecipeStr(&status, options, "FILTER", arguments, "-filter"); // Filter name155 ppSimArgToRecipeStr(&status, options, "FILTER", arguments, "-filter"); // Filter name 157 156 158 157 // set the exposure time … … 178 177 ppSimArgToRecipeS32(&status, options, "BINNING", arguments, "-bin"); 179 178 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); // Recipe182 183 179 if (type == PPSIM_TYPE_OBJECT) { 184 180 // Load values required for adding stars … … 195 191 } 196 192 197 float scale = ppSimArgToRecipeF32(&status, options, "PIXEL.SCALE", arguments, "-scale"); // Plate scale193 ppSimArgToRecipeF32(&status, options, "PIXEL.SCALE", arguments, "-scale"); // Plate scale (arcsec / pixel) 198 194 ppSimArgToRecipeF32(&status, options, "SKY.MAGS", arguments, "-skymags"); // Plate scale 199 195 ppSimArgToRecipeStr(&status, options, "PSF.MODEL", arguments, "-psfclass"); // PSF model class … … 201 197 202 198 // 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); 204 200 psMetadataAddF32(options, PS_LIST_TAIL, "RA", 0, "Boresight RA (radians)", ra0 * M_PI / 180.0); 205 201 psMetadataAddF32(options, PS_LIST_TAIL, "DEC", 0, "Boresight Declination (radians)", dec0 * M_PI / 180.0); 206 202 psMetadataAddF32(options, PS_LIST_TAIL, "PA", 0, "Boresight position angle (radians)",pa * M_PI / 180.0); 207 203 208 assert (filter != NULL);209 210 204 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 }215 205 } 216 206
Note:
See TracChangeset
for help on using the changeset viewer.
