- Timestamp:
- Jun 4, 2015, 8:49:25 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/test/compress.sh
r38362 r38363 1 input tap.dvo 1 2 2 3 macro test_image_all 3 4 4 # foreach mode NONE GZIP_1 RICE_1 5 tapPLAN 88 6 7 foreach mode NONE GZIP_1 GZIP_2 RICE_1 5 8 # foreach mode GZIP_1 6 foreach mode GZIP_29 # foreach mode GZIP_2 7 10 # foreach mode RICE_1 8 11 foreach bitpix 8 16 32 -32 -64 9 12 # 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 =====" 11 15 test_image_single $bitpix $mode 12 16 end 13 17 end 18 19 tapDONE 14 20 end 15 21 … … 30 36 rd b test.cmp.fits -x 0 31 37 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)" 33 41 34 42 if ($cmpmode == NONE) return … … 43 51 exec fpack -r -S test.raw.fits > test.fpk.fits 44 52 end 45 echo "load fpack version"53 # echo "load fpack version" 46 54 rd c test.fpk.fits -x 0 47 55 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)" 49 59 50 60 if ($cmpmode == RICE_1_0) … … 53 63 end 54 64 55 echo "run funpack on our version"65 # echo "run funpack on our version" 56 66 exec funpack -S test.cmp.fits > test.fun.fits 57 67 rd e test.fun.fits 58 68 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)" 60 72 end 61 73
Note:
See TracChangeset
for help on using the changeset viewer.
