【发布时间】:2020-01-18 11:23:00
【问题描述】:
我有一个有点棘手的问题:我想从这个数据集中绘制 GPS 数据:https://zenodo.org/record/3267184
问题是,坐标(经度和纬度)有点神秘,这意味着我不知道它们所在的单位,因此我无法在地图上打印它们。我已经尝试了一堆转换器,但没有任何运气。顺便说一句:坐标应该在奥地利的某个地方。
这是一些数据:(第二列是时间戳) 纬度:
[[2.8240872e+03 5.0000001e-02]
[2.8240894e+03 1.0000000e-01]
[2.8240894e+03 1.5000001e-01]
[2.8240894e+03 2.0000000e-01]
[2.8240894e+03 2.5000000e-01]
[2.8240894e+03 3.0000001e-01]
[2.8240894e+03 3.4999999e-01]
[2.8240894e+03 4.0000001e-01]
[2.8240894e+03 4.4999999e-01]]
经度:
[[9.2659589e+02 5.0000001e-02]
[9.2659406e+02 1.0000000e-01]
[9.2659406e+02 1.5000001e-01]
[9.2659406e+02 2.0000000e-01]
[9.2659412e+02 2.5000000e-01]
[9.2659418e+02 3.0000001e-01]
[9.2659418e+02 3.4999999e-01]
[9.2659418e+02 4.0000001e-01]
[9.2659418e+02 4.4999999e-01]]
有人能告诉我如何将这些值转换为可用的坐标,最好是转换为 WDS84?我现在正在使用 Python 作为我的工具。
这是我目前得到的代码:
import h5py
with h5py.File('../../_datasets/20181214_Driver3_Trip2.hdf', 'r') as f:
lat = f['Math/Latitude_Vehicle']
long = f['Math/Longitude_Vehicle']
【问题讨论】:
-
你觉得这些数字到底有什么神秘之处?
-
我无法在地图上绘制它们。如果我这样做,标记就一直在北极上。我认为它们超出了 matplotlib-drawing-function 的范围。你知道它们在@mkrieger1 中的格式吗?
标签: python gps coordinates