Changeset 16186 for trunk/psModules/src/camera/pmFPAfile.c
- Timestamp:
- Jan 22, 2008, 5:10:51 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAfile.c (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfile.c
r15929 r16186 74 74 file->fits = NULL; 75 75 file->compression = NULL; 76 file->bitpix = 0; 77 file->floatType = PS_FITS_FLOAT_NONE; 76 file->options = NULL; 78 77 file->names = psMetadataAlloc(); 79 78 … … 192 191 char *name = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 193 192 if (name != NULL) { 194 psStringSubstitute(&newName, name, "{CHIP.NAME}");193 psStringSubstitute(&newName, name, "{CHIP.NAME}"); 195 194 } 196 195 } … … 201 200 char *name = psMetadataLookupStr (NULL, chip->concepts, "CHIP.ID"); 202 201 if (name != NULL) { 203 psStringSubstitute(&newName, name, "{CHIP.ID}");202 psStringSubstitute(&newName, name, "{CHIP.ID}"); 204 203 } 205 204 } … … 220 219 char *name = psMetadataLookupStr (NULL, cell->concepts, "CELL.NAME"); 221 220 if (name != NULL) { 222 psStringSubstitute(&newName, name, "{CELL.NAME}");221 psStringSubstitute(&newName, name, "{CELL.NAME}"); 223 222 } 224 223 } … … 243 242 char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.FILTER"); 244 243 if (name && *name) { 245 psStringSubstitute(&newName, name, "{FILTER}");244 psStringSubstitute(&newName, name, "{FILTER}"); 246 245 } 247 246 } … … 251 250 char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.FILTERID"); 252 251 if (name && *name) { 253 psStringSubstitute(&newName, name, "{FILTER.ID}");252 psStringSubstitute(&newName, name, "{FILTER.ID}"); 254 253 } 255 254 } … … 259 258 char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.INSTRUMENT"); 260 259 if (name && *name) { 261 psStringSubstitute(&newName, name, "{CAMERA}");260 psStringSubstitute(&newName, name, "{CAMERA}"); 262 261 } 263 262 } … … 267 266 char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.INSTRUMENT"); 268 267 if (name && *name) { 269 psStringSubstitute(&newName, name, "{INSTRUMENT}");268 psStringSubstitute(&newName, name, "{INSTRUMENT}"); 270 269 } 271 270 } … … 275 274 char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.DETECTOR"); 276 275 if (name && *name) { 277 psStringSubstitute(&newName, name, "{DETECTOR}");276 psStringSubstitute(&newName, name, "{DETECTOR}"); 278 277 } 279 278 } … … 283 282 char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.TELESCOPE"); 284 283 if (name && *name) { 285 psStringSubstitute(&newName, name, "{TELESCOPE}");284 psStringSubstitute(&newName, name, "{TELESCOPE}"); 286 285 } 287 286 } … … 340 339 if (view->cell >= inChip->cells->n) { 341 340 psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == %ld", 342 view->cell, inChip->cells->n);341 view->cell, inChip->cells->n); 343 342 return false; 344 343 } … … 387 386 if (view->cell >= inChip->cells->n) { 388 387 psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == %ld", 389 view->cell, inChip->cells->n);388 view->cell, inChip->cells->n); 390 389 return false; 391 390 }
Note:
See TracChangeset
for help on using the changeset viewer.
