Changeset 15629 for trunk/psModules/src/camera/pmFPAfileDefine.c
- Timestamp:
- Nov 15, 2007, 3:00:13 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAfileDefine.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r15562 r15629 219 219 goto COMPRESSION_DONE; 220 220 } 221 const char *typeString = psMetadataLookupStr(NULL, scheme, "COMP RESSION"); // Compression type221 const char *typeString = psMetadataLookupStr(NULL, scheme, "COMP"); // Compression type 222 222 if (!typeString || strlen(typeString) == 0) { 223 psWarning("Can't find COMP RESSIONin FITS scheme %s --- compression disabled.", fitsType);223 psWarning("Can't find COMP in FITS scheme %s --- compression disabled.", fitsType); 224 224 goto COMPRESSION_DONE; 225 225 } … … 228 228 psString source = NULL; // Source of options 229 229 psStringAppend(&source, "%s in FITS in camera %s", fitsType, cameraName); 230 file->bitpix = parseOptionInt(scheme, "BITPIX", source, 0); // Bits per pixel 231 232 // Custom floating-point 233 const char *floatName = psMetadataLookupStr(NULL, scheme, "FLOAT"); // Name of custom floating-point 234 if (floatName) { 235 psString fullName = NULL; // Full name of custom floating-point 236 psStringAppend(&fullName, "FLOAT_%s", floatName); 237 file->floatType = psFitsFloatTypeFromString(fullName); 238 psFree(fullName); 239 } 240 230 241 psVector *tile = psVectorAlloc(3, PS_TYPE_S32); // Tile sizes 231 file->bitpix = parseOptionInt(scheme, "BITPIX", source, 0); // Bits per pixel232 242 tile->data.S32[0] = parseOptionInt(scheme, "TILE.X", source, 0); // Tiling in x 233 243 tile->data.S32[1] = parseOptionInt(scheme, "TILE.Y", source, 1); // Tiling in y … … 438 448 return NULL; 439 449 } 440 // EXTWORD (fits->extword) is not relevant to the PHU450 // EXTWORD (fits->extword) is not relevant to the PHU 441 451 fits = psFitsOpen (realName, "r"); 442 452 if (!fits) { … … 557 567 return NULL; 558 568 } 559 // EXTWORD (fits->extword) is not relevant to the PHU569 // EXTWORD (fits->extword) is not relevant to the PHU 560 570 fits = psFitsOpen (realName, "r"); 561 571 if (!fits) {
Note:
See TracChangeset
for help on using the changeset viewer.
