- Timestamp:
- Dec 16, 2005, 5:18:39 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_051214/psModules/src/astrom/pmAstrometry.h
r5739 r5795 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $11 * @date $Date: 2005-12- 08 00:00:57$10 * @version $Revision: 1.5.2.1 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-12-17 03:18:38 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 30 30 { 31 31 const char *extname; // Extension name, if it corresponds to this level 32 psArray *pixels; // The pixel data, if it corresponds to this level33 32 psMetadata *header; // The FITS header, if it corresponds to this level 33 psArray *images; // The pixel data, if it corresponds to this level 34 psArray *masks; // The mask data, if it corresponds to this level 35 psArray *weights; // The weight data, if it corresponds to this level 34 36 } 35 37 p_pmHDU; 36 38 37 39 /** Focal plane data structure 38 * 40 * 39 41 * A focal plane consists of one or more chips (according to the number of 40 42 * pieces of contiguous silicon). It contains metadata containers for the … … 49 51 * transformation which will be derived from numerically inverting the forward 50 52 * transformation. 51 * 53 * 52 54 */ 53 55 typedef struct … … 62 64 const psMetadata *camera; ///< Camera configuration 63 65 psArray *chips; ///< The chips 64 p_pmHDU * private;///< FITS data66 p_pmHDU *hdu; ///< FITS data 65 67 psMetadata *phu; ///< Primary Header 66 68 } … … 68 70 69 71 /** Chip data structure 70 * 72 * 71 73 * A chip consists of one or more cells (according to the number of amplifiers 72 74 * on the device). The chip contains metadata containers for the concepts and … … 79 81 * inverting the forward transformation. A boolean indicates whether the chip is 80 82 * of interest, allowing it to be excluded from analysis. 81 * 83 * 82 84 */ 83 85 typedef struct … … 95 97 pmFPA *parent; ///< Parent FPA 96 98 bool valid; ///< Do we bother about reading and working with this chip? 97 p_pmHDU * private;///< FITS data99 p_pmHDU *hdu; ///< FITS data 98 100 } 99 101 pmChip; … … 124 126 pmChip *parent; ///< Parent chip 125 127 bool valid; ///< Do we bother about reading and working with this cell? 126 p_pmHDU * private;///< FITS data128 p_pmHDU *hdu; ///< FITS data 127 129 } 128 130 pmCell; … … 141 143 { 142 144 // Position on the cell 145 // XXX: These may be removed in the future; use parent->concepts instead? 143 146 int col0; ///< Offset from the left of chip. 144 147 int row0; ///< Offset from the bottom of chip. … … 149 152 psImage *mask; ///< Mask of input image 150 153 psImage *weight; ///< Weight of input image 151 psList *bias; ///< List of bias section (sub-)images152 154 psMetadata *analysis; ///< Readout-level analysis metadata 153 155 pmCell *parent; ///< Parent cell … … 180 182 */ 181 183 pmCell *pmCellAlloc( 182 pmChip *chip, ///< Parent chip183 psMetadata *camera data,184 psString name184 pmChip *chip, ///< Parent chip 185 psMetadata *cameraData, ///< Camera data 186 const char *name ///< Name of cell 185 187 ); 186 188 187 189 /** Allocates a pmChip 188 * 190 * 189 191 * The constructor shall make an empty pmChip. If the parent fpa is not NULL, 190 192 * the parent link is made and the chip shall be placed in the parent's array … … 196 198 */ 197 199 pmChip *pmChipAlloc( 198 pmFPA *fpa, 199 psString name 200 200 pmFPA *fpa, ///< FPA to which the chip belongs 201 const char *name ///< Name of chip 201 202 ); 202 203 203 204 /** Allocates a pmFPA 204 * 205 * 205 206 * The constructor shall make an empty pmFPA. The chips array shall be 206 207 * allocated with a zero size, the camera and db pointers set to the values 207 208 * provided, and the concepts metadata constructed. All other pointers in the 208 209 * structure shall be initialized to NULL. 209 * 210 * 210 211 */ 211 212 pmFPA *pmFPAAlloc( … … 213 214 ); 214 215 216 /** Allocates a p_pmHDU 217 * 218 * XXX: More detailed description 219 * 220 * @return p_pmHDU* newly allocated p_pmHDU 221 */ 222 p_pmHDU *p_pmHDUAlloc(const char *extname // Extension name 223 ); 224 215 225 216 226 /** Verify parent links. 217 * 227 * 218 228 * This function checks the validity of the parent links in the FPA hierarchy. 219 229 * If a parent link is not set (or not set correctly), it is corrected, and the 220 230 * function shall return false. If all the parent pointers were correct, the 221 231 * function shall return true. 222 * 232 * 223 233 */ 224 234 bool pmFPACheckParents( … … 229 239 230 240 /** FUNC DESC 231 * 232 * 233 * 234 * 235 */ 236 241 * 242 * 243 * 244 * 245 */ 246 247 248 249 /** 250 * 251 * pmFPASelectChip shall set valid to true for the specified chip number 252 * (chipNum), and all other chips shall have valid set to false. In the event 253 * that the specified chip number does not exist within the fpa, the function 254 * shall return false. 255 * 256 */ 257 bool pmFPASelectChip( 258 pmFPA *fpa, 259 int chipNum 260 ); 261 262 /** 263 * 264 * pmFPAExcludeChip shall set valid to false only for the specified chip 265 * number (chipNum). In the event that the specified chip number does not exist 266 * within the fpa, the function shall generate a warning, and perform no action. 267 * The function shall return the number of chips within the fpa that have valid 268 * set to true. 269 * 270 */ 271 int pmFPAExcludeChip( 272 pmFPA *fpa, 273 int chipNum 274 ); 237 275 238 276 … … 423 461 ); 424 462 425 /**426 *427 * pmFPASelectChip shall set valid to true for the specified chip number428 * (chipNum), and all other chips shall have valid set to false. In the event429 * that the specified chip number does not exist within the fpa, the function430 * shall return false.431 *432 */433 bool pmFPASelectChip(434 pmFPA *fpa,435 int chipNum436 );437 438 /**439 *440 * pmFPAExcludeChip shall set valid to false only for the specified chip441 * number (chipNum). In the event that the specified chip number does not exist442 * within the fpa, the function shall generate a warning, and perform no action.443 * The function shall return the number of chips within the fpa that have valid444 * set to true.445 *446 */447 int pmFPAExcludeChip(448 pmFPA *fpa,449 int chipNum450 );451 452 463 453 464 #endif // #ifndef PS_ASTROMETRY_H
Note:
See TracChangeset
for help on using the changeset viewer.
