Changeset 32977 for trunk/psModules/src/objects/pmSourceIO.c
- Timestamp:
- Dec 19, 2011, 3:12:24 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO.c
r32971 r32977 59 59 static bool pmReadoutReadXSRC(pmFPAfile *file, char * exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex); 60 60 static bool pmReadoutReadXFIT(pmFPAfile *file, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex); 61 static bool pmReadoutReadXRAD(pmFPAfile *file, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex);61 static bool pmReadoutReadXRAD(pmFPAfile *file, pmReadout *readout, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex); 62 62 63 63 // lookup the EXTNAME values used for table data and image header segments … … 1097 1097 } 1098 1098 if (XRAD_OUTPUT && xradname) { 1099 if (!pmReadoutReadXRAD(file, exttype, hdu->header, xradname, sources, sourceIndex)) {1099 if (!pmReadoutReadXRAD(file, readout, exttype, hdu->header, xradname, sources, sourceIndex)) { 1100 1100 // XXX: is this an error? 1101 1101 psErrorClear(); … … 1253 1253 bool status = false; 1254 1254 if (file->type == PM_FPA_FILE_CMF) { 1255 #ifdef notyet1256 if (!strcmp (exttype, "SMPDATA")) {1257 status = pmSourcesRead_SMPDATA_XSRC (file->fits, hduHeader, sources);1258 }1259 if (!strcmp (exttype, "PS1_DEV_0")) {1260 status = pmSourcesRead_PS1_DEV_0_XSRC (file->fits, hduHeader, sources);1261 }1262 if (!strcmp (exttype, "PS1_DEV_1")) {1263 status = pmSourcesRead_PS1_DEV_1_XSRC (file->fits, hduHeader, sources);1264 }1265 if (!strcmp (exttype, "PS1_V1")) {1266 status = pmSourcesRead_CMF_PS1_V1_XSRC (file->fits, hduHeader, sources);1267 }1268 if (!strcmp (exttype, "PS1_V2")) {1269 status = pmSourcesRead_CMF_PS1_V2_XSRC (file->fits, hduHeader, sources);1270 }1271 if (!strcmp (exttype, "PS1_V3")) {1272 status = pmSourcesRead_CMF_PS1_V3_XSRC (file->fits, hduHeader, sources);1273 }1274 if (!strcmp (exttype, "PS1_V4")) {1275 status = pmSourcesRead_CMF_PS1_V4_XSRC (file->fits, hduHeader, sources);1276 }1277 #endif // notyet1278 1255 if (!strcmp (exttype, "PS1_SV1")) { 1279 1256 status = pmSourcesRead_CMF_PS1_SV1_XSRC (file->fits, hduHeader, sources, sourceIndex); 1280 1257 } 1281 #ifdef notyet1282 if (!strcmp (exttype, "PS1_DV1")) {1283 status = pmSourcesRead_CMF_PS1_DV1_XSRC (file->fits, hduHeader, sources);1284 }1285 if (!strcmp (exttype, "PS1_DV2")) {1286 status = pmSourcesRead_CMF_PS1_DV2_XSRC (file->fits, hduHeader, sources);1287 }1288 #endif // notyet1289 1258 } 1290 1259 psFree(tableHeader); … … 1312 1281 bool status = false; 1313 1282 if (file->type == PM_FPA_FILE_CMF) { 1314 #ifdef notyet1315 if (!strcmp (exttype, "SMPDATA")) {1316 status = pmSourcesRead_SMPDATA_XFIT (file->fits, hduHeader, sources);1317 }1318 if (!strcmp (exttype, "PS1_DEV_0")) {1319 status = pmSourcesRead_PS1_DEV_0_XFIT (file->fits, hduHeader, sources);1320 }1321 if (!strcmp (exttype, "PS1_DEV_1")) {1322 status = pmSourcesRead_PS1_DEV_1_XFIT (file->fits, hduHeader, sources);1323 }1324 if (!strcmp (exttype, "PS1_V1")) {1325 status = pmSourcesRead_CMF_PS1_V1_XFIT (file->fits, hduHeader, sources);1326 }1327 if (!strcmp (exttype, "PS1_V2")) {1328 status = pmSourcesRead_CMF_PS1_V2_XFIT (file->fits, hduHeader, sources);1329 }1330 if (!strcmp (exttype, "PS1_V3")) {1331 status = pmSourcesRead_CMF_PS1_V3_XFIT (file->fits, hduHeader, sources);1332 }1333 if (!strcmp (exttype, "PS1_V4")) {1334 status = pmSourcesRead_CMF_PS1_V4_XFIT (file->fits, hduHeader, sources);1335 }1336 #endif // notyet1337 1283 if (!strcmp (exttype, "PS1_SV1")) { 1338 1284 status = pmSourcesRead_CMF_PS1_SV1_XFIT (file->fits, hduHeader, sources, sourceIndex); 1339 1285 } 1340 #ifdef notyet1341 if (!strcmp (exttype, "PS1_DV1")) {1342 status = pmSourcesRead_CMF_PS1_DV1_XFIT (file->fits, hduHeader, sources);1343 }1344 if (!strcmp (exttype, "PS1_DV2")) {1345 status = pmSourcesRead_CMF_PS1_DV2_XFIT (file->fits, hduHeader, sources);1346 }1347 #endif // notyet1348 1286 } 1349 1287 psFree(tableHeader); 1350 1288 return status; 1351 1289 } 1352 static bool pmReadoutReadXRAD(pmFPAfile *file, char *exttype, psMetadata *hduHeader, psString extname, psArray *sources, long *sourceIndex)1290 static bool pmReadoutReadXRAD(pmFPAfile *file, pmReadout *readout, char *exttype, psMetadata *hduHeader, psString extname, psArray *sources, long *sourceIndex) 1353 1291 { 1354 1292 if (!psFitsMoveExtName (file->fits, extname)) { … … 1370 1308 bool status = false; 1371 1309 if (file->type == PM_FPA_FILE_CMF) { 1372 #ifdef notyet1373 if (!strcmp (exttype, "SMPDATA")) {1374 status = pmSourcesRead_SMPDATA_XRAD (file->fits, hduHeader, sources);1375 }1376 if (!strcmp (exttype, "PS1_DEV_0")) {1377 status = pmSourcesRead_PS1_DEV_0_XRAD (file->fits, hduHeader, sources);1378 }1379 if (!strcmp (exttype, "PS1_DEV_1")) {1380 status = pmSourcesRead_PS1_DEV_1_XRAD (file->fits, hduHeader, sources);1381 }1382 if (!strcmp (exttype, "PS1_V1")) {1383 status = pmSourcesRead_CMF_PS1_V1_XRAD (file->fits, hduHeader, sources);1384 }1385 if (!strcmp (exttype, "PS1_V2")) {1386 status = pmSourcesRead_CMF_PS1_V2_XRAD (file->fits, hduHeader, sources);1387 }1388 if (!strcmp (exttype, "PS1_V3")) {1389 status = pmSourcesRead_CMF_PS1_V3_XRAD (file->fits, hduHeader, sources);1390 }1391 if (!strcmp (exttype, "PS1_V4")) {1392 status = pmSourcesRead_CMF_PS1_V4_XRAD (file->fits, hduHeader, sources);1393 }1394 #endif // notyet1395 1310 if (!strcmp (exttype, "PS1_SV1")) { 1396 status = pmSourcesRead_CMF_PS1_SV1_XRAD (file->fits, hduHeader, sources, sourceIndex); 1397 } 1398 #ifdef notyet 1399 if (!strcmp (exttype, "PS1_DV1")) { 1400 status = pmSourcesRead_CMF_PS1_DV1_XRAD (file->fits, hduHeader, sources); 1401 } 1402 if (!strcmp (exttype, "PS1_DV2")) { 1403 status = pmSourcesRead_CMF_PS1_DV2_XRAD (file->fits, hduHeader, sources); 1404 } 1405 #endif // notyet 1311 status = pmSourcesRead_CMF_PS1_SV1_XRAD (file->fits, readout, hduHeader, sources, sourceIndex); 1312 } 1406 1313 } 1407 1314 psFree(tableHeader);
Note:
See TracChangeset
for help on using the changeset viewer.
