- Timestamp:
- Feb 2, 2009, 11:57:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081230/pswarp/src/pswarpArguments.c
r20347 r21268 1 /** @file pswarpArguments.c 2 * 3 * @brief 4 * 5 * @ingroup pswarp 6 * 7 * @author IfA 8 * @version $Revision: 1.22.8.1 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-02 21:57:10 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "pswarp.h" 2 14 # include <glob.h> … … 26 38 27 39 { 28 int arg; // Argument Number40 int arg; ///< Argument Number 29 41 if ((arg = psArgumentGet(argc, argv, "-psphot-visual"))) { 30 42 psArgumentRemove(arg, &argc, argv); … … 105 117 } 106 118 107 // Parse the recipe and format into the arguments 119 /** 120 * Parse the recipe and format into the arguments 121 */ 108 122 bool pswarpOptions(pmConfig *config) 109 123 { … … 116 130 117 131 // Get grid size 118 bool status; // Status of MD lookup132 bool status; ///< Status of MD lookup 119 133 int nGridX = psMetadataLookupS32(&status, recipe, "GRID.NX"); 120 134 if (!status || nGridX <= 0) { … … 129 143 130 144 // Get interpolation mode 131 const char *name = psMetadataLookupStr (&status, recipe, "INTERPOLATION.MODE"); // Name of interp mode145 const char *name = psMetadataLookupStr (&status, recipe, "INTERPOLATION.MODE"); ///< Name of interp mode 132 146 if (!name) { 133 147 name = "BILINEAR"; 134 148 psLogMsg("pswarp", 3, "defaulting to %s interpolation", name); 135 149 } 136 psImageInterpolateMode interpolationMode = psImageInterpolateModeFromString(name); // Mode for interp.150 psImageInterpolateMode interpolationMode = psImageInterpolateModeFromString(name); ///< Mode for interp. 137 151 if (interpolationMode == PS_INTERPOLATE_NONE) { 138 152 interpolationMode = PS_INTERPOLATE_BILINEAR; … … 148 162 } 149 163 150 float poorFrac = psMetadataLookupF32(&status, recipe, "POOR.FRAC"); // Frac of bad flux for a "poor"164 float poorFrac = psMetadataLookupF32(&status, recipe, "POOR.FRAC"); ///< Frac of bad flux for a "poor" 151 165 if (!status) { 152 166 poorFrac = 0.0; … … 154 168 } 155 169 156 float acceptFrac = psMetadataLookupF32(&status, recipe, "ACCEPT.FRAC"); // Min fraction of good pixels170 float acceptFrac = psMetadataLookupF32(&status, recipe, "ACCEPT.FRAC"); ///< Min fraction of good pixels 157 171 if (!status) { 158 172 acceptFrac = 0.0; … … 194 208 if (dump_file) { 195 209 const char *skyCamera = psMetadataLookupStr(NULL, config->arguments, 196 "SKYCELL.CAMERA"); // Name of camera for skycell210 "SKYCELL.CAMERA"); ///< Name of camera for skycell 197 211 pmConfigCamerasCull(config, skyCamera); 198 212 pmConfigRecipesCull(config, "PSWARP,PPSTATS,PSPHOT,MASKS");
Note:
See TracChangeset
for help on using the changeset viewer.
