Changeset 15629
- Timestamp:
- Nov 15, 2007, 3:00:13 PM (18 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 4 edited
-
pmFPAfile.c (modified) (1 diff)
-
pmFPAfile.h (modified) (2 diffs)
-
pmFPAfileDefine.c (modified) (4 diffs)
-
pmFPAfileIO.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfile.c
r15180 r15629 75 75 file->compression = NULL; 76 76 file->bitpix = 0; 77 file->floatType = PS_FITS_FLOAT_NONE; 77 78 file->names = psMetadataAlloc(); 78 79 -
trunk/psModules/src/camera/pmFPAfile.h
r15562 r15629 4 4 * @author EAM, IfA 5 5 * 6 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-11-1 0 01:09:20$6 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-11-16 01:00:13 $ 8 8 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii 9 9 */ … … 66 66 psFitsCompression *compression; // Compression for FITS images 67 67 int bitpix; // Bits per pixel for output 68 psFitsFloat floatType; // Custom floating-point 68 69 69 70 bool wrote_phu; // have we written a PHU for this file? -
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) { -
trunk/psModules/src/camera/pmFPAfileIO.c
r15562 r15629 762 762 } 763 763 764 file->fits->floatType = file->floatType; 765 764 766 // In some cases, we need to read the PHU after we've opened the file. This happens for the images 765 767 // supplied by the detrend database, which are only identified here (pmConfigConvertFilename).
Note:
See TracChangeset
for help on using the changeset viewer.
