-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hello,
I'm planning to use the wgs84_to_etrs() function. But I have some doubts about the correctness, due to my following example:
$ pycraf.geospatial.wgs84_to_etrs89(10.234277034617 * u.deg, 52.403406485378 * u.deg)
Result:
(<Quantity 4336944.84215441 m>, <Quantity 3254912.90967703 m>) ... which looks somehow questiionable.
The coordinates glon/glat I gave in above refers to a place in Germany, north west to the city of Braunschweig. The expected result would be close by:
East: 583967.725, North: 5806623.881. I've double checked this w/ another converter (s. LINK), which comes to the same/expected result.
In addition I tried the sample/test data available in github (i.e. wgs84_etrs89.npz). Here the conversion matches the input and outout data given in that file. But by using the other converter from the above link, the results are totally different and do not match the given results in the test data file.
For example: Taking the first point from the test data file:
- The input glon/glat values in degree point to a place somewhere in the middle of the North See, west of Denmark;
- Taking the output values in elon/elat take you somewhere down to Saudi Arabia
With the 10th value of the given tetst data set I've compared w/ another tool, which seems to have a good reputation (s. LINK). The outcome from that tool also differs from the given testset.
Conclusion at that point - unless I've missed something important - would be, that wgs84_to:etrs89() is not working properly.
Regards
rainer
System:
- Windows 10 Enterprise
- Python 3.9.2
- PyCraf 2.0.2
- Numpy 1.23.4
- Astropy 6.0.1