我需要使用python创建轮廓。问题是,到目前为止,我发现的所有解决方案都是基于网格的,需要3个数组: lats数组 长数组 值数组 然后使用网格制作轮廓。 在我的情况下,问题是每个值的纬度和经度都不相同,更像以下数组 [{lat,long,values},{lat,long,values},{lat,long,values,{lat,long,values}]
我很感谢任何解决方案或建议
原始值是这样的。 3个2D数组
值:
[[[2.3000e-01 2.2250e-01 2.3500e-01 ... 5.0000e-03 1.2500e-02 1.2500e-02]
[2.3250e-01 2.2500e-01 2.3000e-01 ... 7.5000e-03 1.2500e-02 1.2500e-02]
[2.4500e-01 2.3000e-01 2.2250e-01 ... 7.5000e-03 1.2500e-02 1.2500e-02]
...
[1.1979e+02 1.1979e+02 1.1979e+02 ... 6.9500e-01 7.0000e-01 7.0500e-01]
[1.1979e+02 1.1979e+02 1.1979e+02 ... 6.9500e-01 7.0000e-01 7.0500e-01]
[1.1979e+02 1.1979e+02 1.1979e+02 ... 6.9500e-01 7.0000e-01 7.0500e-01]]]
最新信息:
[[18.14503 18.17840149 18.21173404 ... 20.95232678 20.92303157
20.89368282]
[18.19869826 18.23212537 18.26551351 ... 21.01085369 20.98150583
20.95210438]
[18.25238237 18.28586518 18.31930902 ... 21.06940562 21.04000501
21.01055075]
...
[47.37108253 47.45317877 47.53531405 ... 54.84178113 54.75671371
54.67167336]
[47.35484472 47.43689746 47.51898908 ... 54.82084335 54.73583959
54.65086259]
[47.33843536 47.42044418 47.5024917 ... 54.79968906 54.71474955
54.62983649]]
长:
[[217.107456 217.16395904 217.22053137 ... 275.5738218 275.63644491
275.69899943]
[217.07228304 217.12882027 217.18542696 ... 275.60519679 275.66787119
275.73047681]
[217.03704065 217.09361204 217.15025307 ... 275.63664054 275.69936627
275.762023 ]
...
[147.8669735 147.84307356 147.81907208 ... 352.75647981 352.72040049
352.68450633]
[147.74583254 147.72168602 147.697437 ... 352.90413813 352.86770214
352.8314529 ]
[147.62479343 147.60040096 147.57590506 ... 353.05160828 353.01481704
352.97821413]]
我从netcdf文件中提取了这些值