IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2015, 7:59:48 PM (11 years ago)
Author:
eugene
Message:

more work on compression : cfitsio assumes gzip, not zlib (I have made uncompress general )

File:
1 edited

Legend:

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

    r38338 r38340  
    8585      return (FALSE);
    8686    }
    87     if (gfits_extension_is_compressed (&buf[0].header)) {
     87    if (gfits_extension_is_compressed_image (&buf[0].header)) {
    8888        IsCompressed = TRUE;
    8989    }
     
    118118      Nword = 1;
    119119      IsCompressed = FALSE;
    120       if (gfits_extension_is_compressed (&buf[0].header)) {
     120      if (gfits_extension_is_compressed_image (&buf[0].header)) {
    121121        if (!strcmp (CCDKeyword, "EXTNAME")) Nword = 1;
    122122        IsCompressed = TRUE;
     
    194194
    195195    if (!gfits_fread_ftable_data (f, &ftable, FALSE)) { fprintf (stderr, "problem reading compressed image table data\n"); fclose (f); return FALSE; }
    196     fprintf (stderr, "rd 1: ");
    197     for (i = 0; i < 32; i++) {
    198       fprintf (stderr, "0x%0hhx ", ftable.buffer[i]);
    199     }
    200     fprintf (stderr, "\n");
    201  
    202196    if (!gfits_byteswap_varlength_column (&ftable, 1)) { fprintf (stderr, "problem doing byteswap on compressed image metadata column\n"); fclose (f); gfits_free_table (&ftable); return FALSE; }
    203     fprintf (stderr, "rd 2: ");
    204     for (i = 0; i < 32; i++) {
    205       fprintf (stderr, "0x%0hhx ", ftable.buffer[i]);
    206     }
    207     fprintf (stderr, "\n");
    208 
    209197    if (!gfits_uncompress_image (&buf[0].header, &buf[0].matrix, &ftable)) { fprintf (stderr, "problem uncompressing the image data\n"); fclose (f); gfits_free_table (&ftable); return FALSE; }
    210198
Note: See TracChangeset for help on using the changeset viewer.