IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 1:46:00 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130509/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psModules

  • branches/eam_branches/ipp-20130509/psModules/src/objects/pmSourceIO.c

    r35560 r35750  
    5858#define BLANK_HEADERS "BLANK.HEADERS"   // Name of metadata in camera configuration containing header names
    5959                                        // 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);
     60static bool pmReadoutReadXSRC(pmFPAfile *file, pmReadout *readout, char * exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex);
     61static bool pmReadoutReadXFIT(pmFPAfile *file, pmReadout *readout, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex);
    6262static bool pmReadoutReadXRAD(pmFPAfile *file, pmReadout *readout, char * exttype, psMetadata *hduHeader, psString xfitname, psArray *sources, long *sourceIndex);
    6363
     
    10931093            if (XSRC_OUTPUT && xsrcname) {
    10941094                // 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)) {
    10961096                    // do anything?
    10971097                }
     
    11001100            if (XFIT_OUTPUT && xfitname) {
    11011101                // 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)) {
    11031103                    // do anything?
    11041104                }
     
    12431243// XXX: We might be able to macroize this and reuse for the other types
    12441244
    1245 static bool pmReadoutReadXSRC(pmFPAfile *file, char *exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex)
     1245static bool pmReadoutReadXSRC(pmFPAfile *file, pmReadout *readout, char *exttype, psMetadata *hduHeader, psString xsrcname, psArray *sources, long *sourceIndex)
    12461246{
    12471247    if (!psFitsMoveExtNameClean (file->fits, xsrcname)) {
     
    12631263# define PM_SOURCES_READ_XSRC(NAME,TYPE)                                \
    12641264    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); \
    12661266    }                                                                   
    12671267
     
    12821282}
    12831283
    1284 static bool pmReadoutReadXFIT(pmFPAfile *file, char *exttype, psMetadata *hduHeader, psString extname, psArray *sources, long *sourceIndex)
     1284static bool pmReadoutReadXFIT(pmFPAfile *file, pmReadout *readout, char *exttype, psMetadata *hduHeader, psString extname, psArray *sources, long *sourceIndex)
    12851285{
    12861286    if (!psFitsMoveExtNameClean (file->fits, extname)) {
     
    13021302# define PM_SOURCES_READ_XFIT(NAME,TYPE)                                \
    13031303    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); \
    13051305    }                                                                   
    13061306
     
    13401340# define PM_SOURCES_READ_XRAD(NAME,TYPE)                                \
    13411341    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); \
    13431343    }                                                                   
    13441344
Note: See TracChangeset for help on using the changeset viewer.