IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 23, 2007, 10:54:53 AM (19 years ago)
Author:
eugene
Message:

adding pieces for astrometry table I/O, extended source analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071023/psModules/src/objects/pmSourceIO.c

    r15227 r15359  
    33 *  @author EAM, IfA
    44 *
    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 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    224224
    225225    bool status;
    226     char *exttype;
    227     char *dataname;
    228     char *headname;
    229226    pmHDU *hdu;
    230227    psMetadata *updates;
    231228    psMetadata *outhead;
     229
     230    char *exttype  = NULL;
     231    char *dataname = NULL;
     232    char *xsrcname = NULL;
     233    char *headname = NULL;
    232234
    233235    // XXX if sources is NULL, skip the cell or write out empty tables?
     
    312314            }
    313315            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            }
    314326        }
    315327
     
    375387            }
    376388            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            }
    380391            if (!status) {
    381392                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.