[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8377] [octave forge] (mapping) 3D Coordin
From: |
Philip Nienhuis |
Subject: |
[Octave-patch-tracker] [patch #8377] [octave forge] (mapping) 3D Coordinate system conversion functions for Geodesy |
Date: |
Sat, 30 Nov 2019 17:01:43 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 |
Update of patch #8377 (project octave):
Status: Need Info => In Progress
_______________________________________________________
Follow-up Comment #29:
Just a note:
your aer2ecef.m gives slightly different results than Matlab.
Octave aer2ecef:
>> [x2, y2, z2] = aer2ecef (33, 70, 1e3, 42, -82, 200, 'wgs84')
x2 = 6.6063e+05
y2 = -4.7007e+06
z2 = 4.2448e+06
>> [x, y, z] = aer2ecef (pi/6, pi/3, 1e3, pi/4, -pi/2, 200, 'wgs84', 'rad')
x = 250.00
y = -4.5180e+06
z = 4.4884e+06
where Matlab needs the actual spheroid (not the name) and then yields:
>> wgs84 = wgs84Ellipsoid('meters');
>> [x, y, z] = aer2ecef (33, 70, 1e3, 42, -82, 200, wgs84)
x =
6.6093e+05
y =
-4.7014e+06
z =
4.2466e+06
>> [x, y, z] = aer2ecef (pi/6, pi/3, 1e3, pi/4, -pi/2, 200, wgs84, 'rad')
x =
250.0000
y =
-4.5180e+06
z =
4.4884e+06
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?8377>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/