Changeset 15562 for trunk/psModules/src/astrom/pmAstrometryTable.c
- Timestamp:
- Nov 9, 2007, 3:09:20 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometryTable.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryTable.c
r15357 r15562 1 1 /** @file pmAstrometryObjects.c 2 *3 * @brief This file defines the basic types for matching objects4 * based on their astrometry.5 *6 * @ingroup AstroImage7 *8 * @author EAM, IfA9 *10 * @version $Revision: 1.1$ $Name: not supported by cvs2svn $11 * @date $Date: 2007-10-23 20:52:42$12 *13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii14 */2 * 3 * @brief This file defines the basic types for matching objects 4 * based on their astrometry. 5 * 6 * @ingroup AstroImage 7 * 8 * @author EAM, IfA 9 * 10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-11-10 01:09:20 $ 12 * 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 14 */ 15 15 16 16 #ifdef HAVE_CONFIG_H … … 29 29 #include <pslib.h> 30 30 31 #include "pmConfig.h" 32 #include "pmDetrendDB.h" 31 33 #include "pmHDU.h" 32 34 #include "pmFPA.h" 33 #include "pmAstrometryObjects.h" 35 #include "pmFPALevel.h" 36 #include "pmFPAview.h" 37 #include "pmFPAfile.h" 38 #include "pmAstrometryTable.h" 39 34 40 35 41 /********************* CheckDataStatus functions *****************************/ … … 179 185 bool pmAstromWriteChip (pmChip *chip, const pmFPAview *view, pmFPAfile *file, const pmConfig *config) 180 186 { 181 // define the EXTNAME values used for the table data, and residual image segments 182 { 183 // lookup the EXTNAME values used for table data and image header segments 184 char *rule = NULL; 185 186 // Menu of EXTNAME rules 187 psMetadata *menu = psMetadataLookupMetadata(&status, file->camera, "EXTNAME.RULES"); 188 if (!menu) { 189 psError(PS_ERR_UNKNOWN, true, "missing EXTNAME.RULES in camera.config"); 190 return false; 191 } 192 193 // EXTNAME for image header 194 rule = psMetadataLookupStr(&status, menu, "ASTROMETRY"); 195 if (!rule) { 196 psError(PS_ERR_UNKNOWN, false, "missing entry for ASTROMETRY in EXTNAME.RULES in camera.config"); 197 return false; 198 } 199 extname = pmFPAfileNameFromRule (rule, file, view); 200 } 187 bool status; 188 // *** define the EXTNAME values used for the table data, and residual image segments *** 189 190 // lookup the EXTNAME values used for table data and image header segments 191 char *rule = NULL; 192 193 // Menu of EXTNAME rules 194 psMetadata *menu = psMetadataLookupMetadata(&status, file->camera, "EXTNAME.RULES"); 195 if (!menu) { 196 psError(PS_ERR_UNKNOWN, true, "missing EXTNAME.RULES in camera.config"); 197 return false; 198 } 199 200 // EXTNAME for image header 201 rule = psMetadataLookupStr(&status, menu, "ASTROMETRY"); 202 if (!rule) { 203 psError(PS_ERR_UNKNOWN, false, "missing entry for ASTROMETRY in EXTNAME.RULES in camera.config"); 204 return false; 205 } 206 207 // XXX need to finish this: uncomment when used 208 # if (0) 209 char *extname = pmFPAfileNameFromRule (rule, file, view); 210 # endif 201 211 202 212 // write the chip elements in the following form: … … 244 254 bool pmAstromReadChip (pmChip *chip, const pmFPAview *view, pmFPAfile *file, const pmConfig *config) 245 255 { 246 // define the EXTNAME values used for the table data, and residual image segments 247 { 248 // lookup the EXTNAME values used for table data and image header segments 249 char *rule = NULL; 250 251 // Menu of EXTNAME rules 252 psMetadata *menu = psMetadataLookupMetadata(&status, file->camera, "EXTNAME.RULES"); 253 if (!menu) { 254 psError(PS_ERR_UNKNOWN, true, "missing EXTNAME.RULES in camera.config"); 255 return false; 256 } 257 258 // EXTNAME for image header 259 rule = psMetadataLookupStr(&status, menu, "ASTROMETRY"); 260 if (!rule) { 261 psError(PS_ERR_UNKNOWN, false, "missing entry for ASTROMETRY in EXTNAME.RULES in camera.config"); 262 return false; 263 } 264 extname = pmFPAfileNameFromRule (rule, file, view); 265 } 256 bool status; 257 258 // lookup the EXTNAME values used for table data and image header segments 259 char *rule = NULL; 260 261 // Menu of EXTNAME rules 262 psMetadata *menu = psMetadataLookupMetadata(&status, file->camera, "EXTNAME.RULES"); 263 if (!menu) { 264 psError(PS_ERR_UNKNOWN, true, "missing EXTNAME.RULES in camera.config"); 265 return false; 266 } 267 268 // EXTNAME for image header 269 rule = psMetadataLookupStr(&status, menu, "ASTROMETRY"); 270 if (!rule) { 271 psError(PS_ERR_UNKNOWN, false, "missing entry for ASTROMETRY in EXTNAME.RULES in camera.config"); 272 return false; 273 } 274 275 // XXX finish this: uncomment when used 276 # if (0) 277 char *extname = pmFPAfileNameFromRule (rule, file, view); 278 # endif 266 279 267 280 // read the chip elements in the following form:
Note:
See TracChangeset
for help on using the changeset viewer.
