2 # Script to do some testing of flaky transformation that do not depend
11 echo "Usage: ${0} <path to 'cs2cs' program>"
16 if test -z "${EXE}"; then
20 if test ! -x ${EXE}; then
21 echo "*** ERROR: Can not find '${EXE}' program!"
25 echo "============================================"
26 echo "Running ${0} using ${EXE}:"
27 echo "============================================"
32 echo "doing tests into file ${OUT}, please wait"
35 echo "Test healpix inverse projection on sphere" >> ${OUT}
36 $EXE +proj=latlong +a=1 +lon_0=0 \
37 +to +proj=healpix +a=1 +lon_0=0 -f '%.'5'f' -I\
42 $EXE +proj=latlong +a=5 \
43 +to +proj=healpix +a=5 -f '%.'5'f' -I\
46 0.0 3.9269908169872414
47 0.0 -3.9269908169872414
49 -7.853981633974483 0.0
50 -15.707963267948966 0.0
51 -11.780972450961723 7.853981633974483
52 -11.780972450961723 -7.853981633974483
53 1.437378399445537 5.364369216432778
54 1.437378399445537 -5.364369216432778
57 ##############################################################################
59 # do 'diff' with distribution results
60 echo "diff ${OUT} with ${OUT}.dist"
61 diff -b ${OUT} ${NAD_DIR}/${OUT}.dist
62 if [ $? -ne 0 ] ; then
64 echo "PROBLEMS HAVE OCCURED"
65 echo "test file ${OUT} saved"
70 echo "test file ${OUT} removed"