From 4c03b0c09614c26e289f73aeaff7536c53f92fba Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 19 Aug 2014 10:20:22 +0000 Subject: make check: update rHEALPix tests from healpix_nad_test_2013-07-25.patch (#219) git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2486 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- nad/testvarious | 112 ++++++++++++++++++++++++++++++++++++++++++++------------ nad/tv_out.dist | 65 ++++++++++++++++++++++++++------ 2 files changed, 142 insertions(+), 35 deletions(-) diff --git a/nad/testvarious b/nad/testvarious index 5f271f44..253a16b5 100755 --- a/nad/testvarious +++ b/nad/testvarious @@ -339,35 +339,101 @@ $EXE +proj=latlong +a=5 +e=0.8 +r_a=4.3220011711888882\ 0.0 3.351278550178025 0.0 -3.351278550178025 EOF + +echo "##############################################################" >> ${OUT} +echo "Test rHEALPix forward projection on sphere north=0 south=0" >> ${OUT} +$EXE +proj=latlong +R=5 \ + +to +proj=rhealpix +R=5 +north_square=0 +south_square=0 -f '%.'5'f' \ + -E >>${OUT} <> ${OUT} -echo "Test forward projection on sphere" >> ${OUT} -$EXE +proj=latlong +a=1 +lon_0=0 \ - +to +proj=rhealpix +a=1 +lon_0=0 +npole=0 +spole=0 -f '%.'5'f' \ - -E >>${OUT} <> ${OUT} +$EXE +proj=latlong +R=5 \ + +to +proj=rhealpix +R=5 +north_square=1 +south_square=1 -f '%.'5'f' \ + -E >>${OUT} <> ${OUT} -$EXE +proj=latlong +a=1 +lon_0=0 \ - +to +proj=rhealpix +a=1 +lon_0=0 +npole=0 +spole=0 -f '%.'5'f' -I\ - -E >>${OUT} <> ${OUT} +echo "Test rHEALPix inverse projection on sphere north=0 south=0" >> ${OUT} +$EXE +proj=latlong +R=5 \ + +to +proj=rhealpix +R=5 +north_square=0 +south_square=0 -f '%.'5'f' -I\ + -E >>${OUT} <> ${OUT} -$EXE +proj=latlong +a=1 +lon_0=0 +ellps=WGS84 \ - +to +proj=rhealpix +a=1 +lon_0=0 +ellps=WGS84 +npole=0 +spole=0 -f '%.'5'f' \ - -E >>${OUT} <> ${OUT} +echo "Test rHEALPix inverse projection on sphere north=1 south=1" >> ${OUT} +$EXE +proj=latlong +R=5 \ + +to +proj=rhealpix +R=5 +north_square=1 +south_square=1 -f '%.'5'f' -I\ + -E >>${OUT} <> ${OUT} -$EXE +proj=latlong +a=1 +lon_0=0 +ellps=WGS84 \ - +to +proj=rhealpix +a=1 +lon_0=0 -I +ellps=WGS84 +npole=0 +spole=0 -f '%.'5'f'\ + +echo "##############################################################" >> ${OUT} +echo "Test rHEALPix forward projection on ellipsoid north=0 south=0" >> ${OUT} +$EXE +proj=latlong +a=5 +e=0.8 +r_a=4.3220011711888882\ + +to +proj=rhealpix +a=5 +e=0.8 +r_a=4.3220011711888882 +north_square=0 +south_square=0 -f '%.'5'f' \ + -E >>${OUT} <> ${OUT} +echo "Test rHEALPix forward projection on ellipsoid north=1 south=1" >> ${OUT} +$EXE +proj=latlong +a=5 +e=0.8 +r_a=4.3220011711888882\ + +to +proj=rhealpix +a=5 +e=0.8 +r_a=4.3220011711888882 +north_square=1 +south_square=1 -f '%.'5'f' \ + -E >>${OUT} <> ${OUT} +echo "Test rHEALPix inverse projection on ellipsoid north=0 south=0" >> ${OUT} +$EXE +proj=latlong +a=5 +e=0.8 +r_a=4.3220011711888882\ + +to +proj=rhealpix +a=5 -I +e=0.8 +r_a=4.3220011711888882 +north_square=0 +south_square=0 -f '%.'5'f'\ + -E >>${OUT} <> ${OUT} +echo "Test rHEALPix inverse projection on ellipsoid north=1 south=1" >> ${OUT} +$EXE +proj=latlong +a=5 +e=0.8 +r_a=4.3220011711888882\ + +to +proj=rhealpix +a=5 -I +e=0.8 +r_a=4.3220011711888882 +north_square=1 +south_square=1 -f '%.'5'f'\ -E >>${OUT} <> ${OUT} echo "Test geos projection" >> ${OUT} echo "Test geos on a sphere" >> ${OUT} diff --git a/nad/tv_out.dist b/nad/tv_out.dist index a11a65aa..3e6bf95d 100644 --- a/nad/tv_out.dist +++ b/nad/tv_out.dist @@ -145,18 +145,59 @@ Test healpix inverse projection on ellipsoid 0.0 3.351278550178025 0.00000 59.23640 0.00000 0.0 -3.351278550178025 0.00000 -59.23640 0.00000 ############################################################## -Test forward projection on sphere -0 41.81031 0.00000 0.78540 0.00000 --90 0 -1.57080 0.00000 0.00000 -Test inverse projection on sphere -0 0.7853981633974483 0.00000 41.81031 0.00000 --1.5707963267948966 0 -90.00000 0.00000 0.00000 -Test forward projection on ellipsoid -0 41.937853904844985 0.00000 0.78452 0.00000 --90 0 -1.56904 0.00000 0.00000 -Test inverse projection on ellipsoid -0 0.7853981633974483 * * 0.00000 --1.5707963267948966 0 -90.10072 0.00000 0.00000 +Test rHEALPix forward projection on sphere north=0 south=0 +-180 30.0 -15.70796 2.94524 0.00000 +-180 -25.714285714285715 -15.70796 -2.55579 0.00000 +0 0 0.00000 0.00000 0.00000 +60.0 41.809314895778598 5.23599 3.92691 0.00000 +############################################################## +Test rHEALPix forward projection on sphere north=1 south=1 +-180 30.0 -15.70796 2.94524 0.00000 +-180 -25.714285714285715 -15.70796 -2.55579 0.00000 +0 0 0.00000 0.00000 0.00000 +60.0 41.809314895778598 5.23599 3.92691 0.00000 +############################################################## +Test rHEALPix inverse projection on sphere north=0 south=0 +0.0 0.0 0.00000 0.00000 0.00000 +0.0 3.9269908169872414 0.00000 41.81031 0.00000 +0.0 -3.9269908169872414 0.00000 -41.81031 0.00000 +7.853981633974483 0.0 90.00000 0.00000 0.00000 +-7.853981633974483 0.0 -90.00000 0.00000 0.00000 +############################################################## +Test rHEALPix inverse projection on sphere north=1 south=1 +0.0 0.0 0.00000 0.00000 0.00000 +0.0 3.9269908169872414 0.00000 41.81031 0.00000 +0.0 -3.9269908169872414 0.00000 -41.81031 0.00000 +7.853981633974483 0.0 90.00000 0.00000 0.00000 +-7.853981633974483 0.0 -90.00000 0.00000 0.00000 +############################################################## +Test rHEALPix forward projection on ellipsoid north=0 south=0 +0 0 0.00000 0.00000 0.00000 +0 41.810314895778596 0.00000 2.05479 0.00000 +0 -41.810314895778596 0.00000 -2.05479 0.00000 +90.0 0 6.78898 0.00000 0.00000 +-90.0 0 -6.78898 0.00000 0.00000 +############################################################## +Test rHEALPix forward projection on ellipsoid north=1 south=1 +0 0 0.00000 0.00000 0.00000 +0 41.810314895778596 0.00000 2.05479 0.00000 +0 -41.810314895778596 0.00000 -2.05479 0.00000 +90.0 0 6.78898 0.00000 0.00000 +-90.0 0 -6.78898 0.00000 0.00000 +############################################################## +Test rHEALPix inverse projection on ellipsoid north=0 south=0 +0.0 0.0 0.00000 0.00000 0.00000 +0.0 2.0547874222147415 0.00000 39.58811 0.00000 +0.0 -2.0547874222147415 0.00000 -39.58811 0.00000 +6.788983564106746 0.0 90.00000 0.00000 0.00000 +-6.788983564106746 0.0 -90.00000 0.00000 0.00000 +############################################################## +Test rHEALPix inverse projection on ellipsoid north=1 south=1 +0.0 0.0 0.00000 0.00000 0.00000 +0.0 2.0547874222147415 0.00000 39.58811 0.00000 +0.0 -2.0547874222147415 0.00000 -39.58811 0.00000 +6.788983564106746 0.0 90.00000 0.00000 0.00000 +-6.788983564106746 0.0 -90.00000 0.00000 0.00000 ############################################################## Test geos projection Test geos on a sphere -- cgit v1.2.3