IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2016, 6:59:23 AM (10 years ago)
Author:
eugene
Message:

report the size of the compressed table as if uncompressed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/tools/src/ftable.c

    r39465 r39533  
    289289  }
    290290
    291   fprintf (stdout, "%-30s %-15s NAXIS NAXIS(i)...\n", "extname", "datatype");
     291  fprintf (stdout, "%-30s  %-15s NAXIS NAXIS(i)...\n", "extname", "datatype");
    292292
    293293  Ncomp = 0;
     
    304304    fprintf (stdout, "%-30s ", extname);
    305305
     306    int IsCompressed = gfits_extension_is_compressed_table (&header);
     307
    306308    /* extract the datatype for this component (IMAGE for 0th component) */
    307309    if (Ncomp == 0) {
     
    313315      }
    314316    }
    315     fprintf (stdout, "%-15s ", exttype);
     317    if (IsCompressed) {
     318      fprintf (stdout, "*%-15s ", exttype);
     319    } else {
     320      fprintf (stdout, " %-15s ", exttype);
     321    }
    316322
    317323    /* extract the rank of the component */
     
    326332    /* extract the individual axes */
    327333    for (i = 0; i < Naxis; i++) {
    328       sprintf (axisname, "NAXIS%d", i+1);
     334      if (IsCompressed) {
     335        sprintf (axisname, "ZNAXIS%d", i+1);
     336      } else {
     337        sprintf (axisname, "NAXIS%d", i+1);
     338      }
    329339      status = gfits_scan (&header, axisname,  OFF_T_FMT, 1,  &Nelem);
    330340      if (!status) {
Note: See TracChangeset for help on using the changeset viewer.