Changeset 35610 for trunk/psModules/src/objects/pmSourceIO.c
- Timestamp:
- May 30, 2013, 2:29:11 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO.c
r35560 r35610 58 58 #define BLANK_HEADERS "BLANK.HEADERS" // Name of metadata in camera configuration containing header names 59 59 // for putting values into a blank PHU 60 static bool pmReadoutReadXSRC(pmFPAfile *file, char * exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex);61 static bool pmReadoutReadXFIT(pmFPAfile *file, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex);60 static bool pmReadoutReadXSRC(pmFPAfile *file, pmReadout *readout, char * exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex); 61 static bool pmReadoutReadXFIT(pmFPAfile *file, pmReadout *readout, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex); 62 62 static bool pmReadoutReadXRAD(pmFPAfile *file, pmReadout *readout, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex); 63 63 … … 1093 1093 if (XSRC_OUTPUT && xsrcname) { 1094 1094 // a cmf file may have an XSRC extension, but it is not required 1095 if (!pmReadoutReadXSRC(file, exttype, hdu->header, xsrcname, sources, sourceIndex)) {1095 if (!pmReadoutReadXSRC(file, readout, exttype, hdu->header, xsrcname, sources, sourceIndex)) { 1096 1096 // do anything? 1097 1097 } … … 1100 1100 if (XFIT_OUTPUT && xfitname) { 1101 1101 // a cmf file may have an XFIT extension, but it is not required 1102 if (!pmReadoutReadXFIT(file, exttype, hdu->header, xfitname, sources, sourceIndex)) {1102 if (!pmReadoutReadXFIT(file, readout, exttype, hdu->header, xfitname, sources, sourceIndex)) { 1103 1103 // do anything? 1104 1104 } … … 1243 1243 // XXX: We might be able to macroize this and reuse for the other types 1244 1244 1245 static bool pmReadoutReadXSRC(pmFPAfile *file, char *exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex)1245 static bool pmReadoutReadXSRC(pmFPAfile *file, pmReadout *readout, char *exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex) 1246 1246 { 1247 1247 if (!psFitsMoveExtNameClean (file->fits, xsrcname)) { … … 1263 1263 # define PM_SOURCES_READ_XSRC(NAME,TYPE) \ 1264 1264 if (!strcmp (exttype, NAME)) { \ 1265 status = pmSourcesRead_##TYPE##_XSRC(file->fits, hduHeader, sources, sourceIndex); \1265 status = pmSourcesRead_##TYPE##_XSRC(file->fits, readout, hduHeader, tableHeader, sources, sourceIndex); \ 1266 1266 } 1267 1267 … … 1282 1282 } 1283 1283 1284 static bool pmReadoutReadXFIT(pmFPAfile *file, char *exttype, psMetadata *hduHeader, psString extname, psArray *sources, long *sourceIndex)1284 static bool pmReadoutReadXFIT(pmFPAfile *file, pmReadout *readout, char *exttype, psMetadata *hduHeader, psString extname, psArray *sources, long *sourceIndex) 1285 1285 { 1286 1286 if (!psFitsMoveExtNameClean (file->fits, extname)) { … … 1302 1302 # define PM_SOURCES_READ_XFIT(NAME,TYPE) \ 1303 1303 if (!strcmp (exttype, NAME)) { \ 1304 status = pmSourcesRead_##TYPE##_XFIT(file->fits, hduHeader, sources, sourceIndex); \1304 status = pmSourcesRead_##TYPE##_XFIT(file->fits, readout, hduHeader, tableHeader, sources, sourceIndex); \ 1305 1305 } 1306 1306 … … 1340 1340 # define PM_SOURCES_READ_XRAD(NAME,TYPE) \ 1341 1341 if (!strcmp (exttype, NAME)) { \ 1342 status = pmSourcesRead_##TYPE##_XRAD(file->fits, readout, hduHeader, sources, sourceIndex); \1342 status = pmSourcesRead_##TYPE##_XRAD(file->fits, readout, hduHeader, tableHeader, sources, sourceIndex); \ 1343 1343 } 1344 1344
Note:
See TracChangeset
for help on using the changeset viewer.
