- Timestamp:
- Sep 8, 2014, 2:44:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/getstar/src/ReadImageHeader.c
r21508 r37378 1 1 # include "dvoImageOverlaps.h" 2 3 // for DIS/WRP sets, we need to save the DIS set and supply it to the WRP entries 4 static Coords *mosaic = NULL; 5 6 void initMosaicCoords () { 7 mosaic = NULL; 8 } 9 10 void saveMosaicCoords (Coords *input) { 11 mosaic = input; 12 } 2 13 3 14 /* read an image header corresponding to a CMF / CMP data block */ … … 44 55 /* only load astrometry, NAXIS1,2, and time if this is a MOSAIC_PHU (ctype is ....-DIS) */ 45 56 if (!strcmp (&image[0].coords.ctype[4], "-DIS")) { 46 MOSAIC = &image[0].coords;57 saveMosaicCoords (&image[0].coords); 47 58 return (TRUE); 48 59 } … … 56 67 } 57 68 if (!strcmp (&image[0].coords.ctype[4], "-WRP")) { 58 if ( MOSAIC== NULL) {69 if (mosaic == NULL) { 59 70 fprintf (stderr, "no mosaic for WRP image (use -mosaic)\n"); 60 71 return (FALSE); 61 72 } 62 RegisterMosaic (MOSAIC);73 image[0].coords.mosaic = mosaic; 63 74 } else { 64 75 /* force image to lie in 0-360 range */
Note:
See TracChangeset
for help on using the changeset viewer.
