- Timestamp:
- Mar 30, 2011, 9:42:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psModules/src/detrend/pmDetrendDB.c
r29833 r31091 7 7 #include <pslib.h> 8 8 9 #include "pmErrorCodes.h" 9 10 #include "pmConfig.h" 10 11 #include "pmConfigCommand.h" … … 120 121 PS_ASSERT_PTR_NON_NULL(config, NULL); 121 122 123 psIOBuffer *buffer = NULL; 124 psPipe *pipe = NULL; 125 psMetadata *answer = NULL; 126 122 127 int status, exit_status; 123 128 psString line = NULL; … … 137 142 psFree (realCamera); 138 143 144 // require a filter for certain types of detrends: 145 if ((options->type == PM_DETREND_TYPE_FLAT) && !options->filter) { 146 psError (PM_ERR_CONFIG, false, "requesting a FLAT-class of detrend without a filter"); 147 goto failure; 148 } 149 if ((options->type == PM_DETREND_TYPE_FLATCORR) && !options->filter) { 150 psError (PM_ERR_CONFIG, false, "requesting a FLATCORR-class of detrend without a filter"); 151 goto failure; 152 } 153 if ((options->type == PM_DETREND_TYPE_FRINGE) && !options->filter) { 154 psError (PM_ERR_CONFIG, false, "requesting a FRINGE-class of detrend without a filter"); 155 goto failure; 156 } 157 158 // add the restrictions 139 159 if (options->filter) { 140 160 psStringAppend(&line, " -filter %s", options->filter); … … 155 175 psStringAppend(&line, " -airmass %f", options->twilight); 156 176 } 157 158 psIOBuffer *buffer = NULL;159 psPipe *pipe = NULL;160 psMetadata *answer = NULL;161 177 162 178 if (!pmConfigDatabaseCommand(&line, config)) {
Note:
See TracChangeset
for help on using the changeset viewer.
