IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 2, 2008, 9:06:17 AM (18 years ago)
Author:
eugene
Message:

adding WCS file type to load astrometry info without loading sources

File:
1 edited

Legend:

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

    r19087 r19307  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2008-08-16 22:36:18 $
     5 *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-09-02 19:06:17 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    845845
    846846      case PM_FPA_FILE_CMF:
     847      case PM_FPA_FILE_WCS:  // "WCS" is CMF without detected objects
    847848        // read in header, if not yet loaded
    848849        hdu = pmFPAviewThisHDU (view, file->fpa);
     
    905906
    906907        // XXX these are case-sensitive since the EXTYPE is case-sensitive
    907         if (!strcmp (exttype, "SMPDATA")) {
    908             sources = pmSourcesRead_SMPDATA (file->fits, hdu->header);
    909         }
    910         if (!strcmp (exttype, "PS1_DEV_0")) {
    911             sources = pmSourcesRead_PS1_DEV_0 (file->fits, hdu->header);
    912         }
    913         if (!strcmp (exttype, "PS1_DEV_1")) {
    914             sources = pmSourcesRead_PS1_DEV_1 (file->fits, hdu->header);
    915         }
     908        if (file->type == PM_FPA_FILE_CMF) {
     909            if (!strcmp (exttype, "SMPDATA")) {
     910                sources = pmSourcesRead_SMPDATA (file->fits, hdu->header);
     911            }
     912            if (!strcmp (exttype, "PS1_DEV_0")) {
     913                sources = pmSourcesRead_PS1_DEV_0 (file->fits, hdu->header);
     914            }
     915            if (!strcmp (exttype, "PS1_DEV_1")) {
     916                sources = pmSourcesRead_PS1_DEV_1 (file->fits, hdu->header);
     917            }
     918        }
    916919
    917920        psTrace("psModules.objects", 6, "read CMF table from %s : %s : %s", file->filename, headname, dataname);
Note: See TracChangeset for help on using the changeset viewer.