aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_healpix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_healpix.c')
-rw-r--r--src/PJ_healpix.c119
1 files changed, 2 insertions, 117 deletions
diff --git a/src/PJ_healpix.c b/src/PJ_healpix.c
index 438cb595..2d2af805 100644
--- a/src/PJ_healpix.c
+++ b/src/PJ_healpix.c
@@ -669,120 +669,5 @@ PJ *PROJECTION(rhealpix) {
}
-#ifndef PJ_SELFTEST
-int pj_healpix_selftest (void) {return 0;}
-#else
-
-int pj_healpix_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=healpix +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=healpix +R=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- { 222390.10394923863, 130406.58866448226},
- { 222390.10394923863, -130406.58866448054},
- {-222390.10394923863, 130406.58866448226},
- {-222390.10394923863, -130406.58866448054},
- };
-
- XY s_fwd_expect[] = {
- { 223402.14425527418, 131588.04444199943},
- { 223402.14425527418, -131588.04444199943},
- {-223402.14425527418, 131588.04444199943},
- {-223402.14425527418, -131588.04444199943},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.0017986411845524453, 0.00076679453057823619},
- { 0.0017986411845524453, -0.00076679453057823619},
- {-0.0017986411845524453, 0.00076679453057823619},
- {-0.0017986411845524453, -0.00076679453057823619},
- };
-
- LP s_inv_expect[] = {
- { 0.0017904931097838226, 0.00075990887733981202},
- { 0.0017904931097838226, -0.00075990887733981202},
- {-0.0017904931097838226, 0.00075990887733981202},
- {-0.0017904931097838226, -0.00075990887733981202},
- };
-
- return pj_generic_selftest (e_args, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, e_fwd_expect, s_fwd_expect, inv_in, e_inv_expect, s_inv_expect);
-}
-
-
-#endif
-
-#ifndef PJ_SELFTEST
-int pj_rhealpix_selftest (void) {return 0;}
-#else
-
-int pj_rhealpix_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=rhealpix +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=rhealpix +R=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- { 222390.10394923863, 130406.58866448226},
- { 222390.10394923863, -130406.58866448054},
- {-222390.10394923863, 130406.58866448226},
- {-222390.10394923863, -130406.58866448054},
- };
-
- XY s_fwd_expect[] = {
- { 223402.14425527418, 131588.04444199943},
- { 223402.14425527418, -131588.04444199943},
- {-223402.14425527418, 131588.04444199943},
- {-223402.14425527418, -131588.04444199943},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.0017986411845524453, 0.00076679453057823619},
- { 0.0017986411845524453, -0.00076679453057823619},
- {-0.0017986411845524453, 0.00076679453057823619},
- {-0.0017986411845524453, -0.00076679453057823619},
- };
-
- LP s_inv_expect[] = {
- { 0.0017904931097838226, 0.00075990887733981202},
- { 0.0017904931097838226, -0.00075990887733981202},
- {-0.0017904931097838226, 0.00075990887733981202},
- {-0.0017904931097838226, -0.00075990887733981202},
- };
-
- return pj_generic_selftest (e_args, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, e_fwd_expect, s_fwd_expect, inv_in, e_inv_expect, s_inv_expect);
-}
-
-
-#endif
+int pj_healpix_selftest (void) {return 10000;}
+int pj_rhealpix_selftest (void) {return 10000;}