[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8377] [octave forge] (mapping) 3D Coordin
From: |
anonymous |
Subject: |
[Octave-patch-tracker] [patch #8377] [octave forge] (mapping) 3D Coordinate system conversion functions for Geodesy |
Date: |
Wed, 11 Sep 2019 05:28:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #27, patch #8377 (project octave):
Hello,
Thank you for your patience
I have tracked down where these issues were coming from.
I also added some tests for enu2uvw
Attached is the diff -u against your files
I also came across a very strange thing with assert
>> test aer2geodetic
***** test
[lat2, lon2, alt2] = aer2geodetic (33, 70, 1e3, 42, -82, 200);
assert ([lat2, lon2, alt2], [42.002582, -81.997752, 1.1397e3], 10e-6)
[lat2, lon2, alt2] = aer2geodetic ( 0.575958653158129, 1.22173047639603, 1e3,
0.733038285837618, -1.43116998663535, 200, "", "rad");
assert ([lat2, lon2, alt2], [42.002582, -81.997752, 1.1397e3], 10e-6)
!!!!! test failed
ASSERT errors for: assert ([lat2, lon2, alt2],[42.002582, -81.997752,
1.1397e3],10e-6)
Location | Observed | Expected | Reason
(3) 1139.7018 1139.7 Abs err 0.0017996 exceeds tol 1e-05
>> test aer2geodetic
***** test
[lat2, lon2, alt2] = aer2geodetic (33, 70, 1e3, 42, -82, 200);
assert ([lat2, lon2, alt2], [42.002582, -81.997752, 1.1397018e3], 10e-6)
[lat2, lon2, alt2] = aer2geodetic ( 0.575958653158129, 1.22173047639603, 1e3,
0.733038285837618, -1.43116998663535, 200, "", "rad");
assert ([lat2, lon2, alt2], [42.002582, -81.997752, 1.1397018e3], 10e-6)
!!!!! test failed
ASSERT errors for: assert ([lat2, lon2, alt2],[42.002582, -81.997752,
1.1397018e3],10e-6)
Location | Observed | Expected | Reason
(1) 0.73308 42.0026 Abs err 41.269 exceeds tol 1e-05
(2) -1.4311 -81.9978 Abs err 80.567 exceeds tol 1e-05
So the only difference was improving the decimal for the assert expected value
from 1.1397e3 to 1.1397018e3 and then my observed changed drastically.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?8377>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8377] [octave forge] (mapping) 3D Coordinate system conversion functions for Geodesy,
anonymous <=