IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38589


Ignore:
Timestamp:
Jul 15, 2015, 10:49:42 AM (11 years ago)
Author:
eugene
Message:

update to handle compressed data (need to finish this work)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c

    r38588 r38589  
    271271        }
    272272
    273         // read Measure table data : format is irrelevant here */
    274         if (!gfits_fread_ftable_data (cpmFile, &cpmFtable, TRUE)) {
     273        char nativeOrder;
     274        Catalog catalog;
     275        dvo_catalog_init (&catalog);
     276        catalog.f = cpmFile;
     277        if (!gfits_fread_uncompressed (&catalog, &cpmFtable, &nativeOrder, TRUE)) {
    275278          myAbort("can't read data for cpm table");
    276279        }
     
    289292        // NOTE: FtableToMeasure (and equivalent) free the data associated with cpmFtable.
    290293        // We are left with the data in measure.
    291         measure = FtableToMeasure (&cpmFtable, NULL, &Nmeasure, &catformat, FALSE);
     294        measure = FtableToMeasure (&cpmFtable, NULL, &Nmeasure, &catformat, nativeOrder);
    292295        myAssert(measure, "failed to convert ftable to measure data");
    293296   
Note: See TracChangeset for help on using the changeset viewer.