Skip to content

Commit

Permalink
Relax nadir angle testing precision
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Aug 3, 2024
1 parent cec058f commit 837c3ac
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 162 deletions.
2 changes: 1 addition & 1 deletion src/novas.c
Original file line number Diff line number Diff line change
Expand Up @@ -6857,7 +6857,7 @@ short transform_cat(enum novas_transform_type option, double jd_tt_in, const cat
* geocenter, components in AU.
* @param[out] limb_ang [deg] Angle of observed object above (+) or below (-) limb in degrees,
* or NAN if reurning with an error. It may be NULL if not required.
* @param[out] nadir_ang [deg] Nadir angle of observed object as a fraction of apparent radius
* @param[out] nadir_ang Nadir angle of observed object as a fraction of apparent radius
* of limb: %lt;1.0 if below the limb; 1.0 on the limb; or >1.0 if
* above the limb. Returns NAN in case of an error return. It may be NULL
* if not required.
Expand Down
160 changes: 80 additions & 80 deletions test/novasc3.1/limb_angle.out
Original file line number Diff line number Diff line change
@@ -1,240 +1,240 @@

-10000.0 22+20 S2 O0 A0: nan nan

-10000.0 22+20 S2 O1 A0: 145.977105 60365.587207
-10000.0 22+20 S2 O1 A0: 145.977105 6.036559e+04

-10000.0 22+20 S2 O2 A0: 132.709500 5730086.072975
-10000.0 22+20 S2 O2 A0: 132.709500 5.730086e+06

-10000.0 16-20 S2 O0 A0: nan nan

-10000.0 16-20 S2 O1 A0: 98.660449 40799.159825
-10000.0 16-20 S2 O1 A0: 98.660449 4.079916e+04

-10000.0 16-20 S2 O2 A0: 44.935094 1940193.008993
-10000.0 16-20 S2 O2 A0: 44.935094 1.940193e+06

-10000.0 SUN S0 O0 A0: nan nan

-10000.0 SUN S0 O1 A0: 53.181239 21992.554980
-10000.0 SUN S0 O1 A0: 53.181239 2.199255e+04

-10000.0 SUN S0 O2 A0: 106.901484 4615756.460720
-10000.0 SUN S0 O2 A0: 106.901484 4.615756e+06

-10000.0 EARTH S0 O0 A0: nan nan

-10000.0 EARTH S0 O1 A0: 179.996872 74433.472821
-10000.0 EARTH S0 O1 A0: 179.996872 7.443347e+04

-10000.0 EARTH S0 O2 A0: 126.255303 5451408.974761
-10000.0 EARTH S0 O2 A0: 126.255303 5.451409e+06

0.0 22+20 S2 O0 A0: nan nan

0.0 22+20 S2 O1 A0: 63.740570 25620.837105
0.0 22+20 S2 O1 A0: 63.740570 2.562084e+04

0.0 22+20 S2 O2 A0: 132.008697 5674118.309712
0.0 22+20 S2 O2 A0: 132.008697 5.674118e+06

0.0 16-20 S2 O0 A0: nan nan

0.0 16-20 S2 O1 A0: 38.844362 15614.073722
0.0 16-20 S2 O1 A0: 38.844362 1.561407e+04

0.0 16-20 S2 O2 A0: 43.958133 1889449.259870
0.0 16-20 S2 O2 A0: 43.958133 1.889449e+06

0.0 SUN S0 O0 A0: nan nan

0.0 SUN S0 O1 A0: 79.454498 31936.881647
0.0 SUN S0 O1 A0: 79.454498 3.193688e+04

0.0 SUN S0 O2 A0: 3.345607 143804.903443
0.0 SUN S0 O2 A0: 3.345607 1.438049e+05

0.0 EARTH S0 O0 A0: nan nan

0.0 EARTH S0 O1 A0: 179.995731 72348.349417
0.0 EARTH S0 O1 A0: 179.995731 7.234835e+04

0.0 EARTH S0 O2 A0: 97.198319 4177867.128758
0.0 EARTH S0 O2 A0: 97.198319 4.177867e+06

10000.0 22+20 S2 O0 A0: nan nan

10000.0 22+20 S2 O1 A0: 79.616582 33090.934295
10000.0 22+20 S2 O1 A0: 79.616582 3.309093e+04

10000.0 22+20 S2 O2 A0: 132.637913 5652979.205293
10000.0 22+20 S2 O2 A0: 132.637913 5.652979e+06

10000.0 16-20 S2 O0 A0: nan nan

10000.0 16-20 S2 O1 A0: 176.037299 73164.937632
10000.0 16-20 S2 O1 A0: 176.037299 7.316494e+04

10000.0 16-20 S2 O2 A0: 44.853791 1911652.772340
10000.0 16-20 S2 O2 A0: 44.853791 1.911653e+06

10000.0 SUN S0 O0 A0: nan nan

10000.0 SUN S0 O1 A0: 148.171395 61583.418716
10000.0 SUN S0 O1 A0: 148.171395 6.158342e+04

10000.0 SUN S0 O2 A0: 72.730948 3099766.779829
10000.0 SUN S0 O2 A0: 72.730948 3.099767e+06

10000.0 EARTH S0 O0 A0: nan nan

10000.0 EARTH S0 O1 A0: 179.997051 74810.674256
10000.0 EARTH S0 O1 A0: 179.997051 7.481067e+04

10000.0 EARTH S0 O2 A0: 40.954021 1745446.050988
10000.0 EARTH S0 O2 A0: 40.954021 1.745446e+06

10000.0 22+20 S2 O0 A0: nan nan

10000.0 22+20 S2 O1 A0: 79.616582 33090.934295
10000.0 22+20 S2 O1 A0: 79.616582 3.309093e+04

10000.0 22+20 S2 O2 A0: 132.637913 5652979.205293
10000.0 22+20 S2 O2 A0: 132.637913 5.652979e+06

10000.0 16-20 S2 O0 A0: nan nan

10000.0 16-20 S2 O1 A0: 176.037299 73164.937632
10000.0 16-20 S2 O1 A0: 176.037299 7.316494e+04

10000.0 16-20 S2 O2 A0: 44.853791 1911652.772340
10000.0 16-20 S2 O2 A0: 44.853791 1.911653e+06

10000.0 SUN S0 O0 A0: nan nan

10000.0 SUN S0 O1 A0: 148.171395 61583.418716
10000.0 SUN S0 O1 A0: 148.171395 6.158342e+04

10000.0 SUN S0 O2 A0: 72.730948 3099766.779829
10000.0 SUN S0 O2 A0: 72.730948 3.099767e+06

10000.0 EARTH S0 O0 A0: nan nan

10000.0 EARTH S0 O1 A0: 179.997051 74810.674256
10000.0 EARTH S0 O1 A0: 179.997051 7.481067e+04

10000.0 EARTH S0 O2 A0: 40.954021 1745446.050988
10000.0 EARTH S0 O2 A0: 40.954021 1.745446e+06

10000.0 22+20 S2 O0 A0: nan nan

10000.0 22+20 S2 O1 A0: 79.624702 33094.369324
10000.0 22+20 S2 O1 A0: 79.624702 3.309437e+04

10000.0 22+20 S2 O2 A0: 132.637965 5652987.362020
10000.0 22+20 S2 O2 A0: 132.637965 5.652987e+06

10000.0 16-20 S2 O0 A0: nan nan

10000.0 16-20 S2 O1 A0: 176.046656 73168.959465
10000.0 16-20 S2 O1 A0: 176.046656 7.316896e+04

10000.0 16-20 S2 O2 A0: 44.853862 1911657.830144
10000.0 16-20 S2 O2 A0: 44.853862 1.911658e+06

10000.0 SUN S0 O0 A0: nan nan

10000.0 SUN S0 O1 A0: 148.180252 61587.212162
10000.0 SUN S0 O1 A0: 148.180252 6.158721e+04

10000.0 SUN S0 O2 A0: 72.731615 3099798.464149
10000.0 SUN S0 O2 A0: 72.731615 3.099798e+06

10000.0 EARTH S0 O0 A0: nan nan

10000.0 EARTH S0 O1 A0: 179.997190 74810.868384
10000.0 EARTH S0 O1 A0: 179.997190 7.481087e+04

10000.0 EARTH S0 O2 A0: 40.963676 1745859.358490
10000.0 EARTH S0 O2 A0: 40.963676 1.745859e+06

-10000.0 22+20 S2 O0 A1: nan nan

-10000.0 22+20 S2 O1 A1: 145.977105 60365.587207
-10000.0 22+20 S2 O1 A1: 145.977105 6.036559e+04

-10000.0 22+20 S2 O2 A1: 132.709500 5730086.072975
-10000.0 22+20 S2 O2 A1: 132.709500 5.730086e+06

-10000.0 16-20 S2 O0 A1: nan nan

-10000.0 16-20 S2 O1 A1: 98.660449 40799.159825
-10000.0 16-20 S2 O1 A1: 98.660449 4.079916e+04

-10000.0 16-20 S2 O2 A1: 44.935094 1940193.008993
-10000.0 16-20 S2 O2 A1: 44.935094 1.940193e+06

-10000.0 SUN S0 O0 A1: nan nan

-10000.0 SUN S0 O1 A1: 53.181239 21992.554980
-10000.0 SUN S0 O1 A1: 53.181239 2.199255e+04

-10000.0 SUN S0 O2 A1: 106.901484 4615756.460763
-10000.0 SUN S0 O2 A1: 106.901484 4.615756e+06

-10000.0 EARTH S0 O0 A1: nan nan

-10000.0 EARTH S0 O1 A1: 179.996872 74433.472821
-10000.0 EARTH S0 O1 A1: 179.996872 7.443347e+04

-10000.0 EARTH S0 O2 A1: 126.255303 5451408.974761
-10000.0 EARTH S0 O2 A1: 126.255303 5.451409e+06

0.0 22+20 S2 O0 A1: nan nan

0.0 22+20 S2 O1 A1: 63.740570 25620.837105
0.0 22+20 S2 O1 A1: 63.740570 2.562084e+04

0.0 22+20 S2 O2 A1: 132.008697 5674118.309712
0.0 22+20 S2 O2 A1: 132.008697 5.674118e+06

0.0 16-20 S2 O0 A1: nan nan

0.0 16-20 S2 O1 A1: 38.844362 15614.073722
0.0 16-20 S2 O1 A1: 38.844362 1.561407e+04

0.0 16-20 S2 O2 A1: 43.958133 1889449.259870
0.0 16-20 S2 O2 A1: 43.958133 1.889449e+06

0.0 SUN S0 O0 A1: nan nan

0.0 SUN S0 O1 A1: 79.454498 31936.881647
0.0 SUN S0 O1 A1: 79.454498 3.193688e+04

0.0 SUN S0 O2 A1: 3.345607 143804.903441
0.0 SUN S0 O2 A1: 3.345607 1.438049e+05

0.0 EARTH S0 O0 A1: nan nan

0.0 EARTH S0 O1 A1: 179.995731 72348.349417
0.0 EARTH S0 O1 A1: 179.995731 7.234835e+04

0.0 EARTH S0 O2 A1: 97.198319 4177867.128758
0.0 EARTH S0 O2 A1: 97.198319 4.177867e+06

10000.0 22+20 S2 O0 A1: nan nan

10000.0 22+20 S2 O1 A1: 79.616582 33090.934295
10000.0 22+20 S2 O1 A1: 79.616582 3.309093e+04

10000.0 22+20 S2 O2 A1: 132.637913 5652979.205293
10000.0 22+20 S2 O2 A1: 132.637913 5.652979e+06

10000.0 16-20 S2 O0 A1: nan nan

10000.0 16-20 S2 O1 A1: 176.037299 73164.937632
10000.0 16-20 S2 O1 A1: 176.037299 7.316494e+04

10000.0 16-20 S2 O2 A1: 44.853791 1911652.772340
10000.0 16-20 S2 O2 A1: 44.853791 1.911653e+06

10000.0 SUN S0 O0 A1: nan nan

10000.0 SUN S0 O1 A1: 148.171395 61583.418716
10000.0 SUN S0 O1 A1: 148.171395 6.158342e+04

10000.0 SUN S0 O2 A1: 72.730948 3099766.779863
10000.0 SUN S0 O2 A1: 72.730948 3.099767e+06

10000.0 EARTH S0 O0 A1: nan nan

10000.0 EARTH S0 O1 A1: 179.997051 74810.674256
10000.0 EARTH S0 O1 A1: 179.997051 7.481067e+04

10000.0 EARTH S0 O2 A1: 40.954021 1745446.050988
10000.0 EARTH S0 O2 A1: 40.954021 1.745446e+06

10000.0 22+20 S2 O0 A1: nan nan

10000.0 22+20 S2 O1 A1: 79.616582 33090.934295
10000.0 22+20 S2 O1 A1: 79.616582 3.309093e+04

10000.0 22+20 S2 O2 A1: 132.637913 5652979.205293
10000.0 22+20 S2 O2 A1: 132.637913 5.652979e+06

10000.0 16-20 S2 O0 A1: nan nan

10000.0 16-20 S2 O1 A1: 176.037299 73164.937632
10000.0 16-20 S2 O1 A1: 176.037299 7.316494e+04

10000.0 16-20 S2 O2 A1: 44.853791 1911652.772340
10000.0 16-20 S2 O2 A1: 44.853791 1.911653e+06

10000.0 SUN S0 O0 A1: nan nan

10000.0 SUN S0 O1 A1: 148.171395 61583.418716
10000.0 SUN S0 O1 A1: 148.171395 6.158342e+04

10000.0 SUN S0 O2 A1: 72.730948 3099766.779863
10000.0 SUN S0 O2 A1: 72.730948 3.099767e+06

10000.0 EARTH S0 O0 A1: nan nan

10000.0 EARTH S0 O1 A1: 179.997051 74810.674256
10000.0 EARTH S0 O1 A1: 179.997051 7.481067e+04

10000.0 EARTH S0 O2 A1: 40.954021 1745446.050988
10000.0 EARTH S0 O2 A1: 40.954021 1.745446e+06

10000.0 22+20 S2 O0 A1: nan nan

10000.0 22+20 S2 O1 A1: 79.624702 33094.369324
10000.0 22+20 S2 O1 A1: 79.624702 3.309437e+04

10000.0 22+20 S2 O2 A1: 132.637965 5652987.362020
10000.0 22+20 S2 O2 A1: 132.637965 5.652987e+06

10000.0 16-20 S2 O0 A1: nan nan

10000.0 16-20 S2 O1 A1: 176.046656 73168.959465
10000.0 16-20 S2 O1 A1: 176.046656 7.316896e+04

10000.0 16-20 S2 O2 A1: 44.853862 1911657.830144
10000.0 16-20 S2 O2 A1: 44.853862 1.911658e+06

10000.0 SUN S0 O0 A1: nan nan

10000.0 SUN S0 O1 A1: 148.180252 61587.212162
10000.0 SUN S0 O1 A1: 148.180252 6.158721e+04

10000.0 SUN S0 O2 A1: 72.731615 3099798.464183
10000.0 SUN S0 O2 A1: 72.731615 3.099798e+06

10000.0 EARTH S0 O0 A1: nan nan

10000.0 EARTH S0 O1 A1: 179.997190 74810.868384
10000.0 EARTH S0 O1 A1: 179.997190 7.481087e+04

10000.0 EARTH S0 O2 A1: 40.963676 1745859.358490
10000.0 EARTH S0 O2 A1: 40.963676 1.745859e+06
Loading

0 comments on commit 837c3ac

Please sign in to comment.