Changeset 21323 for trunk/pswarp/src/pswarpDefine.c
- Timestamp:
- Feb 5, 2009, 10:44:04 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpDefine.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpDefine.c
r18712 r21323 1 /** @file pswarpDefine.c 2 * 3 * @brief 4 * 5 * @ingroup pswarp 6 * 7 * @author IfA 8 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-05 20:44:04 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 12 1 13 # include "pswarp.h" 2 // this function loads the skycell metadata3 14 15 /** 16 * loads the skycell metadata 17 */ 4 18 bool pswarpDefine (pmConfig *config) { 5 19 … … 42 56 view->cell = 0; 43 57 view->readout = 0; 44 pmCell *source = pmFPAfileThisCell(config->files, view, "PSWARP.SKYCELL"); // Source cell45 pmHDU *hdu = pmHDUFromCell(source); // HDU for source58 pmCell *source = pmFPAfileThisCell(config->files, view, "PSWARP.SKYCELL"); ///< Source cell 59 pmHDU *hdu = pmHDUFromCell(source); ///< HDU for source 46 60 if (!hdu || !hdu->header) { 47 61 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find header for sky cell."); … … 49 63 return false; 50 64 } 51 int numCols = psMetadataLookupS32(NULL, hdu->header, "NAXIS1"); // Number of columns52 int numRows = psMetadataLookupS32(NULL, hdu->header, "NAXIS2"); // Number of rows65 int numCols = psMetadataLookupS32(NULL, hdu->header, "NAXIS1"); ///< Number of columns 66 int numRows = psMetadataLookupS32(NULL, hdu->header, "NAXIS2"); ///< Number of rows 53 67 54 pmCell *target = pmFPAviewThisCell(view, output->fpa); // Target cell55 pmReadout *readout = pmReadoutAlloc(target); // Target readout68 pmCell *target = pmFPAviewThisCell(view, output->fpa); ///< Target cell 69 pmReadout *readout = pmReadoutAlloc(target); ///< Target readout 56 70 readout->image = psImageAlloc(numCols, numRows, PS_TYPE_F32); 57 71 psImageInit(readout->image, NAN); … … 72 86 view->cell = 0; 73 87 view->readout = -1; 74 pmHDU *phu = pmFPAviewThisPHU(view, skycell->fpa); // Skycell PHU75 pmHDU *hdu = pmFPAviewThisHDU(view, skycell->fpa); // Skycell header88 pmHDU *phu = pmFPAviewThisPHU(view, skycell->fpa); ///< Skycell PHU 89 pmHDU *hdu = pmFPAviewThisHDU(view, skycell->fpa); ///< Skycell header 76 90 bool bilevelAstrometry = false; 77 91 if (phu) { … … 83 97 84 98 // We read from the skycell into the output. i.e., the output receives the desired astrometry. 85 pmChip *outputChip = pmFPAviewThisChip(view, output->fpa); // Chip in the output99 pmChip *outputChip = pmFPAviewThisChip(view, output->fpa); ///< Chip in the output 86 100 if (bilevelAstrometry) { 87 101 if (!pmAstromReadBilevelMosaic(output->fpa, phu->header)) { … … 104 118 } 105 119 106 const char *name = psMetadataLookupStr(NULL, input->fpa->concepts, "FPA.OBS"); // Name of FPA120 const char *name = psMetadataLookupStr(NULL, input->fpa->concepts, "FPA.OBS"); ///< Name of FPA 107 121 view->chip = view->cell = view->readout = -1; 108 122 pmFPAAddSourceFromView(output->fpa, name, view, output->format);
Note:
See TracChangeset
for help on using the changeset viewer.
