Changeset 41474 for trunk/Ohana/src/libfits/test/compress.sh
- Timestamp:
- Jan 24, 2021, 3:37:52 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/test/compress.sh (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/test/compress.sh
r38425 r41474 1 1 input tap.dvo 2 3 ## NOTE: in order to run this test suite, you must have a modern version of fpack / funpack. 4 ## The IPP version included in the build tree (3100-p5) does not have support for gzip2 in fpack. 5 6 ## Acceptable versions can be obtained by downloading a current copy 7 ## of CFITSIO (https://heasarc.gsfc.nasa.gov/fitsio/). 8 9 ## To avoid installing the library or funpack/fpack in your psconfig 10 ## tree, only build the code locally and do NOT install. 11 12 ## in the cfitsio directory, edit the Makefile with the following changes: 13 14 ## LDFLAGS_BIN = -g -O2 -Wl,-rpath,${CFITSIO_LIB} -static 15 ## CFLAGS = -g -Dg77Fortran -fPIC 16 ## (comment out the old versions) 17 18 ## run psconfigure, make, make fpack funpack 19 20 ## after building these (static) binaries, link them into this test directory 2 21 3 22 macro tests … … 5 24 test_table_all_rnd 6 25 end 26 27 $FPACK = ./fpack 28 $FUNPACK = ./funpack 7 29 8 30 macro test_image_all … … 53 75 54 76 if ($cmpmode == GZIP_1) 55 exec fpack -q 0 -g -S test.raw.fits > test.fpk.fits 77 ## mana does not (yet) handle non-zero quantization 78 exec $FPACK -q 0 -g -S test.raw.fits > test.fpk.fits 56 79 end 57 80 if ($cmpmode == GZIP_2) 58 exec fpack-q 0 -g2 -S test.raw.fits > test.fpk.fits81 exec $FPACK -q 0 -g2 -S test.raw.fits > test.fpk.fits 59 82 end 60 83 if ($cmpmode == RICE_1) 61 exec fpack-r -S test.raw.fits > test.fpk.fits84 exec $FPACK -r -S test.raw.fits > test.fpk.fits 62 85 end 63 86 # echo "load fpack version" … … 68 91 tapOK {$SIGMA < 0.001} "read fpack $cmpmode $bitpix (SIGMA = $SIGMA)" 69 92 70 if ($cmpmode == RICE_1_0)71 echo "*** funpack fails on RICE_1 ****"72 return73 end93 # if ($cmpmode == RICE_1_0) 94 # echo "*** funpack fails on RICE_1 ****" 95 # return 96 # end 74 97 75 98 # echo "run funpack on our version" 76 exec funpack-S test.cmp.fits > test.fun.fits99 exec $FUNPACK -S test.cmp.fits > test.fun.fits 77 100 rd e test.fun.fits 78 101 set d = x - e … … 213 236 if (1) 214 237 tapEXEC /bin/cp -f test.raw.tbl test.fpk.tbl 215 tapEXEC fpack-table -F test.fpk.tbl238 tapEXEC $FPACK -table -F test.fpk.tbl 216 239 217 240 data test.fpk.tbl … … 236 259 # try to run fpack on ours 237 260 tapEXEC /bin/cp -f test.cmp.tbl test.fun.tbl 238 tapEXEC funpack-F test.fun.tbl261 tapEXEC $FUNPACK -F test.fun.tbl 239 262 240 263 data test.fun.tbl … … 403 426 if (1) 404 427 tapEXEC /bin/cp -f test.raw.tbl test.fpk.tbl 405 tapEXEC fpack-table -F test.fpk.tbl428 tapEXEC $FPACK -table -F test.fpk.tbl 406 429 407 430 data test.fpk.tbl … … 431 454 # try to run fpack on ours 432 455 tapEXEC /bin/cp -f test.cmp.tbl test.fun.tbl 433 tapEXEC funpack-F test.fun.tbl456 tapEXEC $FUNPACK -F test.fun.tbl 434 457 435 458 data test.fun.tbl
Note:
See TracChangeset
for help on using the changeset viewer.
