IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2015, 2:28:50 PM (11 years ago)
Author:
eugene
Message:

add timing test; handle empty table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/matrix/F_compress_utils.c

    r38399 r38415  
    173173int gfits_cmptype_valid (char *cmptype) {
    174174
    175   if (!strcasecmp(cmptype, "NONE")) return TRUE;
     175  if (!strcasecmp(cmptype, "NONE"))   return TRUE;
     176  if (!strcasecmp(cmptype, "NONE_1")) return TRUE; // do not compress, but shuffle a la GZIP_1
    176177  if (!strcasecmp(cmptype, "NONE_2")) return TRUE; // do not compress, but shuffle a la GZIP_2
    177178  if (!strcasecmp(cmptype, "GZIP_1")) return TRUE;
     
    192193      !strcasecmp(cmptype, "GZIP_2") ||
    193194      !strcasecmp(cmptype, "NONE_2") ||
     195      !strcasecmp(cmptype, "NONE_1") ||
    194196      !strcasecmp(cmptype, "NONE")) {
    195197    if (out_bitpix ==   8) return (1);
     
    235237
    236238  // NONE should be swapped to mimic swapping types
    237   if (!strcasecmp(cmptype, "NONE")) {
     239  if (!strcasecmp(cmptype, "NONE") || !strcasecmp(cmptype, "NONE_1")) {
    238240    if (out_bitpix ==   8) return (1);
    239241    if (out_bitpix ==  16) return (2);
     
    292294  if (!strcasecmp(cmptype, "GZIP_1") ||
    293295      !strcasecmp(cmptype, "GZIP_2") ||
     296      !strcasecmp(cmptype, "NONE_1") ||
    294297      !strcasecmp(cmptype, "NONE_2") ||
    295298      !strcasecmp(cmptype, "NONE")) {
Note: See TracChangeset for help on using the changeset viewer.