- Timestamp:
- Oct 23, 2007, 10:54:53 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071023/psModules/src/objects/pmSourceIO.c
r15227 r15359 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.52 $ $Name: not supported by cvs2svn $6 * @date $Date: 2007-10- 05 22:46:34$5 * @version $Revision: 1.52.2.1 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-10-23 20:54:53 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 224 224 225 225 bool status; 226 char *exttype;227 char *dataname;228 char *headname;229 226 pmHDU *hdu; 230 227 psMetadata *updates; 231 228 psMetadata *outhead; 229 230 char *exttype = NULL; 231 char *dataname = NULL; 232 char *xsrcname = NULL; 233 char *headname = NULL; 232 234 233 235 // XXX if sources is NULL, skip the cell or write out empty tables? … … 312 314 } 313 315 dataname = pmFPAfileNameFromRule (rule, file, view); 316 317 if (XSRC_OUTPUT) { 318 // EXTNAME for extended source data table 319 rule = psMetadataLookupStr(&status, menu, "CMF.XSRC"); 320 if (!rule) { 321 psError(PS_ERR_UNKNOWN, true, "missing entry for CMF.XSRC in EXTNAME.RULES in camera.config"); 322 return false; 323 } 324 xsrcname = pmFPAfileNameFromRule (rule, file, view); 325 } 314 326 } 315 327 … … 375 387 } 376 388 if (!strcmp (exttype, "PS1_DEV_1")) { 377 status = pmSourcesWrite_PS1_DEV_1 (file->fits, sources, file->header, outhead, dataname); 378 } 379 389 status = pmSourcesWrite_PS1_DEV_1 (file->fits, sources, file->header, outhead, dataname, xsrcname); 390 } 380 391 if (!status) { 381 392 psError(PS_ERR_IO, false, "writing CMF data to %s with format %s\n", file->filename, exttype);
Note:
See TracChangeset
for help on using the changeset viewer.
