IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2015, 8:49:25 AM (11 years ago)
Author:
eugene
Message:

rice and gzip2 both work for images; working on tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/test/compress.sh

    r38362 r38363  
     1input tap.dvo
    12
    23macro test_image_all
    34
    4   # foreach mode NONE GZIP_1 RICE_1
     5  tapPLAN 88
     6
     7  foreach mode NONE GZIP_1 GZIP_2 RICE_1
    58  # foreach mode GZIP_1
    6   foreach mode GZIP_2
     9  # foreach mode GZIP_2
    710  # foreach mode RICE_1
    811    foreach bitpix 8 16 32 -32 -64
    912    # foreach bitpix 32
    10       echo ===== bitpix = $bitpix =====
     13      if (($mode == RICE_1) && ($bitpix < 0)) continue ; # RICE_1 is for int only
     14      tapDIAG 2 "===== bitpix = $bitpix, mode = $mode ====="
    1115      test_image_single $bitpix $mode
    1216    end
    1317  end
     18
     19  tapDONE
    1420end
    1521
     
    3036 rd b test.cmp.fits -x 0
    3137 set d = x - b
    32  stat d
     38 stat -q d
     39 tapOK {abs($MEAN)  < 0.001} "read our cmp $cmpmode $bitpix (MEAN  = $MEAN)"
     40 tapOK {$SIGMA      < 0.001} "read our cmp $cmpmode $bitpix (SIGMA = $SIGMA)"
    3341
    3442 if ($cmpmode == NONE) return
     
    4351   exec fpack -r -S test.raw.fits > test.fpk.fits
    4452 end
    45  echo "load fpack version"
     53 # echo "load fpack version"
    4654 rd c test.fpk.fits -x 0
    4755 set d = x - c
    48  stat d
     56 stat -q d
     57 tapOK {abs($MEAN)  < 0.001} "read fpack $cmpmode $bitpix (MEAN  = $MEAN)"
     58 tapOK {$SIGMA      < 0.001} "read fpack $cmpmode $bitpix (SIGMA = $SIGMA)"
    4959
    5060 if ($cmpmode == RICE_1_0)
     
    5363 end
    5464
    55  echo "run funpack on our version"
     65 # echo "run funpack on our version"
    5666 exec funpack -S test.cmp.fits > test.fun.fits
    5767 rd e test.fun.fits
    5868 set d = x - e
    59  stat d
     69 stat -q d
     70 tapOK {abs($MEAN)  < 0.001} "funpack our cmp $cmpmode $bitpix (MEAN  = $MEAN)"
     71 tapOK {$SIGMA      < 0.001} "funpack our cmp $cmpmode $bitpix (SIGMA = $SIGMA)"
    6072end
    6173
Note: See TracChangeset for help on using the changeset viewer.