IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2015, 5:44:39 PM (11 years ago)
Author:
eugene
Message:

need to provide non-swapping options to handle compression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/opihi/cmd.data/read_vectors.c

    r38341 r38367  
    522522
    523523    dump_cmp_table (&table, "rd cmp");
     524
     525    int Nfields;
     526    if (!gfits_scan (&header, "TFIELDS", "%d", 1, &Nfields)) ESCAPE ("cannot find TFIELDS in header");
     527    for (i = 0; i < Nfields; i++) {
     528      gfits_byteswap_varlength_column (&table, i+1);
     529    }
    524530    if (!gfits_uncompress_table (&table, &rawtable)) ESCAPE ("failed to uncompress table");
    525531    dump_raw_table (&rawtable, "rd raw");
     
    541547    if (Binary) {
    542548      if (!gfits_get_bintable_column_type (outheader, argv[i], type, &Nval)) ESCAPE ("requested field not found");
    543       if (!gfits_get_bintable_column (outheader, outtable, argv[i], &data)) ESCAPE ("error reading data from specified field");
     549      if (!gfits_get_bintable_column_raw (outheader, outtable, argv[i], &data, IsCompressed)) ESCAPE ("error reading data from specified field");
    544550    } else {
    545551      if (!gfits_get_table_column_type (outheader, argv[i], type)) ESCAPE ("requested field not found");
Note: See TracChangeset for help on using the changeset viewer.