Changeset 10954 for trunk/pswarp/src/pswarpDataLoad.c
- Timestamp:
- Jan 7, 2007, 6:48:50 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpDataLoad.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpDataLoad.c
r10952 r10954 32 32 33 33 // de-activate PSWARP.SKYCELL and PSWARP.OUTPUT 34 //34 pmFPAfileActivate (config->files, false, "PSWARP.SKYCELL"); 35 35 pmFPAfileActivate (config->files, false, "PSWARP.OUTPUT"); 36 pmFPAfileActivate (config->files, false, "PSWARP.SKYCELL");37 36 38 37 pmFPAview *view = pmFPAviewAlloc (0); 38 39 // find the FPA phu 40 // XXX wrap the test below into a function 41 // XXX need to read only the headers for the skycell 42 // XXX need to optionally load the astrometry datafile 43 bool bilevelAstrometry = false; 44 pmHDU *phu = pmFPAviewThisPHU (view, input->fpa); 45 if (phu) { 46 char *ctype = psMetadataLookupStr (NULL, phu->header, "CTYPE1"); 47 if (ctype) { 48 bilevelAstrometry = !strcmp (&ctype[4], "-DIS"); 49 } 50 } 51 if (bilevelAstrometry) { 52 pmAstromReadBilevelMosaic (input->fpa, phu->header); 53 } 39 54 40 55 // files associated with the science image … … 45 60 if (!chip->process || !chip->file_exists) { continue; } 46 61 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 62 63 // read WCS data from the corresponding header 64 pmHDU *hdu = pmFPAviewThisHDU (view, input->fpa); 65 if (bilevelAstrometry) { 66 pmAstromReadBilevelChip (chip, hdu->header); 67 } else { 68 // XXX get pixelScale from recipes. does it matter? 69 float pixelScale = 13.5; 70 pmAstromReadWCS (input->fpa, chip, hdu->header, pixelScale); 71 } 47 72 48 73 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { … … 56 81 if (! readout->data_exists) { continue; } 57 82 58 pswarp ConvertReadout (output, readout, config);83 pswarpTransformReadout (output, readout, config); 59 84 60 85 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
Note:
See TracChangeset
for help on using the changeset viewer.
