Changeset 6872 for trunk/psModules/src/astrom/pmAstrometry.h
- Timestamp:
- Apr 17, 2006, 8:01:05 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometry.h (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometry.h
r6205 r6872 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 1-26 21:10:50$10 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-04-17 18:01:04 $ 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 p_pmHDU *pmHDUAlloc();38 void *pmHDUFree(p_pmHDU *hdu);39 40 39 /** Focal plane data structure 41 * 40 * 42 41 * A focal plane consists of one or more chips (according to the number of 43 42 * pieces of contiguous silicon). It contains metadata containers for the … … 52 51 * transformation which will be derived from numerically inverting the forward 53 52 * transformation. 54 * 53 * 55 54 */ 56 55 typedef struct … … 71 70 72 71 /** Chip data structure 73 * 72 * 74 73 * A chip consists of one or more cells (according to the number of amplifiers 75 74 * on the device). The chip contains metadata containers for the concepts and … … 82 81 * inverting the forward transformation. A boolean indicates whether the chip is 83 82 * of interest, allowing it to be excluded from analysis. 84 * 83 * 85 84 */ 86 85 typedef struct … … 97 96 psArray *cells; ///< The cells (referred to by name) 98 97 pmFPA *parent; ///< Parent FPA 99 bool valid; ///< Do we bother about reading and working with this chip? 98 bool process; ///< Do we bother about reading and working with this chip? 99 bool exists; ///< Does the chip exist --- has it been read in? 100 100 p_pmHDU *hdu; ///< FITS data 101 101 } … … 126 126 psArray *readouts; ///< The readouts (referred to by number) 127 127 pmChip *parent; ///< Parent chip 128 bool valid; ///< Do we bother about reading and working with this cell? 128 bool process; ///< Do we bother about reading and working with this cell? 129 bool exists; ///< Does the cell exist --- has it been read in? 129 130 p_pmHDU *hdu; ///< FITS data 130 131 } … … 144 145 { 145 146 // Position on the cell 147 // XXX: These may be removed in the future; use parent->concepts instead? 146 148 int col0; ///< Offset from the left of chip. 147 149 int row0; ///< Offset from the bottom of chip. … … 152 154 psImage *mask; ///< Mask of input image 153 155 psImage *weight; ///< Weight of input image 154 psList *bias; ///< List of bias section (sub-)images155 156 psMetadata *analysis; ///< Readout-level analysis metadata 156 157 pmCell *parent; ///< Parent cell … … 183 184 */ 184 185 pmCell *pmCellAlloc( 185 pmChip *chip, ///< Parent chip186 psMetadata *camera data,187 psString name186 pmChip *chip, ///< Parent chip 187 psMetadata *cameraData, ///< Camera data 188 const char *name ///< Name of cell 188 189 ); 189 190 190 191 /** Allocates a pmChip 191 * 192 * 192 193 * The constructor shall make an empty pmChip. If the parent fpa is not NULL, 193 194 * the parent link is made and the chip shall be placed in the parent's array … … 199 200 */ 200 201 pmChip *pmChipAlloc( 201 pmFPA *fpa, 202 psString name 203 202 pmFPA *fpa, ///< FPA to which the chip belongs 203 const char *name ///< Name of chip 204 204 ); 205 205 206 206 /** Allocates a pmFPA 207 * 207 * 208 208 * The constructor shall make an empty pmFPA. The chips array shall be 209 209 * allocated with a zero size, the camera and db pointers set to the values 210 210 * provided, and the concepts metadata constructed. All other pointers in the 211 211 * structure shall be initialized to NULL. 212 * 212 * 213 213 */ 214 214 pmFPA *pmFPAAlloc( … … 216 216 ); 217 217 218 /** Allocates a p_pmHDU 219 * 220 * XXX: More detailed description 221 * 222 * @return p_pmHDU* newly allocated p_pmHDU 223 */ 224 p_pmHDU *p_pmHDUAlloc(const char *extname // Extension name 225 ); 226 218 227 219 228 /** Verify parent links. 220 * 229 * 221 230 * This function checks the validity of the parent links in the FPA hierarchy. 222 231 * If a parent link is not set (or not set correctly), it is corrected, and the 223 232 * function shall return false. If all the parent pointers were correct, the 224 233 * function shall return true. 225 * 234 * 226 235 */ 227 236 bool pmFPACheckParents( … … 232 241 233 242 /** FUNC DESC 234 * 235 * 236 * 237 * 238 */ 239 243 * 244 * 245 * 246 * 247 */ 248 249 250 251 /** 252 * 253 * pmFPASelectChip shall set valid to true for the specified chip number 254 * (chipNum), and all other chips shall have valid set to false. In the event 255 * that the specified chip number does not exist within the fpa, the function 256 * shall return false. 257 * 258 */ 259 bool pmFPASelectChip( 260 pmFPA *fpa, 261 int chipNum 262 ); 263 264 /** 265 * 266 * pmFPAExcludeChip shall set valid to false only for the specified chip 267 * number (chipNum). In the event that the specified chip number does not exist 268 * within the fpa, the function shall generate a warning, and perform no action. 269 * The function shall return the number of chips within the fpa that have valid 270 * set to true. 271 * 272 */ 273 int pmFPAExcludeChip( 274 pmFPA *fpa, 275 int chipNum 276 ); 240 277 241 278 … … 426 463 ); 427 464 428 /**429 *430 * pmFPASelectChip shall set valid to true for the specified chip number431 * (chipNum), and all other chips shall have valid set to false. In the event432 * that the specified chip number does not exist within the fpa, the function433 * shall return false.434 *435 */436 bool pmFPASelectChip(437 pmFPA *fpa,438 int chipNum439 );440 441 442 /**443 *444 * pmFPAExcludeChip shall set valid to false only for the specified chip445 * number (chipNum). In the event that the specified chip number does not exist446 * within the fpa, the function shall generate a warning, and perform no action.447 * The function shall return the number of chips within the fpa that have valid448 * set to true.449 *450 */451 int pmFPAExcludeChip(452 pmFPA *fpa,453 int chipNum454 );455 456 457 /**458 *459 * pmFPAConstruct shall construct a focal plane hierarchy from a camera460 * configuration. A db handle is also provided so that may be set in the pmFPA.461 * The resultant pmFPA and its lower-down components shall be ready for to read a462 * FITS file into it by setting the extname pointers at the appropriate levels to463 * the appropriate FITS extension name.464 *465 */466 pmFPA *pmFPAConstruct(467 const psMetadata *camera,468 psDB *db469 );470 471 465 472 466 #endif // #ifndef PS_ASTROMETRY_H
Note:
See TracChangeset
for help on using the changeset viewer.
