IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2007, 12:03:21 PM (19 years ago)
Author:
magnier
Message:

added pmConceptsReadCell to pmSourceReadCell; modified pmSourceWrite_ APIs for CMF formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_SMPDATA.c

    r12402 r12481  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-03-11 18:56:38 $
     5 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-03-18 22:03:21 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535// this format consists of a header derived from the image header
    3636// followed by a zero-size matrix, followed by the table data
    37 bool pmSourcesWrite_SMPDATA (psFits *fits, psArray *sources, psMetadata *header, char *extname)
     37bool pmSourcesWrite_SMPDATA (psFits *fits, psArray *sources, psMetadata *imageHeader, psMetadata *tableHeader, char *extname)
    3838{
    3939
     
    4848
    4949    // find config information for output header
    50     float ZERO_POINT = psMetadataLookupF32 (&status, header, "ZERO_PT");
     50    float ZERO_POINT = psMetadataLookupF32 (&status, imageHeader, "ZERO_PT");
    5151
    5252    table = psArrayAllocEmpty (sources->n);
     
    8989
    9090    if (table->n == 0) {
    91         psFitsWriteBlank (fits, header, extname);
     91        psFitsWriteBlank (fits, tableHeader, extname);
    9292        psFree (table);
    9393        return true;
     
    9595
    9696    psTrace ("pmFPAfile", 5, "writing ext data %s\n", extname);
    97     if (!psFitsWriteTable (fits, header, table, extname)) {
     97    if (!psFitsWriteTable (fits, tableHeader, table, extname)) {
    9898        psError(PS_ERR_IO, false, "writing ext data %s\n", extname);
    9999        psFree(table);
Note: See TracChangeset for help on using the changeset viewer.