Changeset 19087 for trunk/psModules/src/objects/pmSourceIO.c
- Timestamp:
- Aug 16, 2008, 12:36:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO.c
r18601 r19087 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $6 * @date $Date: 2008-0 7-17 22:38:15$5 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-08-16 22:36:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 424 424 pmConfigConformHeader(hdu->header, file->format); 425 425 426 // psFitsWriteBlank strips out the NAXISn keywords, forcing CFITSIO to take care of them 427 // save NAXIS1,NAXIS2 as IMNAXIS1,IMNAXIS2 428 int Nx = psMetadataLookupS32 (&status, hdu->header, "IMNAXIS1"); 429 if (!status) { 430 Nx = psMetadataLookupS32 (&status, hdu->header, "NAXIS1"); 431 if (status) { 432 psMetadataAddS32 (hdu->header, PS_LIST_TAIL, "IMNAXIS1", PS_META_REPLACE, "original image size (x-dir)", Nx); 433 } else { 434 fprintf (stderr, "header is missing NAXIS1!"); 435 } 436 } 437 438 int Ny = psMetadataLookupS32 (&status, hdu->header, "IMNAXIS2"); 439 if (!status) { 440 Ny = psMetadataLookupS32 (&status, hdu->header, "NAXIS2"); 441 if (status) { 442 psMetadataAddS32 (hdu->header, PS_LIST_TAIL, "IMNAXIS2", PS_META_REPLACE, "original image size (y-dir)", Ny); 443 } else { 444 fprintf (stderr, "header is missing NAXIS2!"); 445 } 446 } 447 426 448 psFitsWriteBlank (file->fits, hdu->header, headname); 427 449 psTrace ("pmFPAfile", 5, "wrote ext head %s (type: %d)\n", file->filename, file->type);
Note:
See TracChangeset
for help on using the changeset viewer.
