IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

libfits compressed I/O seems to be generally working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/test/imagecomp.c

    r38362 r38366  
    55int test_compress (int bitpix, char *zcmptype);
    66
    7 // char *cmptype[] = {"NONE", "GZIP_1", "GZIP_2", "PLIO_1", "RICE_1", "RICE_ONE", "HCOMPRESS_1", NULL};
    8 // char *cmptype[] = {"NONE", "GZIP_1", "RICE_1", "RICE_ONE", NULL};
    9 // int bitpix[] = {8, 16, 32, -32, -64, 0};
    10 
    11 // char *cmptype[] = {"NONE", "GZIP_1", NULL};
    12 // char *cmptype[] = {"PLIO_1", NULL};
    13 // int bitpix[] = {8, 16, 32, 0};
    14 
    15 char *cmptype[] = {"GZIP_2", NULL};
    16 int bitpix[] = {-32, 0};
     7// char *cmptype[] = {"NONE", "NONE_2", "GZIP_1", "GZIP_2", "PLIO_1", "RICE_1", "RICE_ONE", "HCOMPRESS_1", NULL};
     8char *cmptype[] = {"NONE", "NONE_2", "GZIP_1", "GZIP_2", "RICE_1", "RICE_ONE", NULL};
     9int bitpix[] = {8, 16, 32, -32, -64, 0};
    1710
    1811int main (int argc, char **argv) {
     
    2518  for (i = 0; cmptype[i]; i++) {
    2619    for (j = 0; bitpix[j]; j++) {
     20      if (!strcasecmp (cmptype[i], "RICE_1") && (bitpix[j] < 0)) continue;
     21      if (!strcasecmp (cmptype[i], "RICE_ONE") && (bitpix[j] < 0)) continue;
    2722      test_compress (bitpix[j], cmptype[i]);
    2823    }
    2924  }
    30 
    31   // test_compress ( 16, "NONE");
    32   // test_compress ( 32, "NONE");
    33   // test_compress (-32, "NONE");
    34   // test_compress (-64, "NONE");
    35   //
    36   // test_compress (  8, "GZIP_1");
    37   // test_compress ( 16, "GZIP_1");
    38   // test_compress ( 32, "GZIP_1");
    39   // test_compress (-32, "GZIP_1");
    40   // test_compress (-64, "GZIP_1");
    41 
    4225  exit (0);
    4326}
Note: See TracChangeset for help on using the changeset viewer.