[英]Remap data from Polar Stereographic projection to Lat-Lon
I have a NetCDF file with storm track density data over south polar stereographic projection.我有一个 NetCDF 文件,其中包含南极立体投影上的风暴轨迹密度数据。 Both X and Y coordinates range from -1.924274 to 1.88504 (I don't know the units here). X 和 Y 坐标的范围从 -1.924274 到 1.88504(我不知道这里的单位)。 The link for the.nc file is here . .nc 文件的链接在这里。
When I open the file with Xarray and plot the data, I have the following:当我使用 Xarray 和 plot 数据打开文件时,我有以下内容:
Is there any way to remap this to lat-lon grid in Python or CDO?有没有办法将其重新映射到 Python 或 CDO 中的经纬度网格? Thanks!谢谢!
You can probably do this using my package nctoolkit ( https://nctoolkit.readthedocs.io/en/latest/ ), which uses CDO as a back end.您可以使用我的 package nctoolkit ( https://nctoolkit.readthedocs.io/en/latest/ ) 来执行此操作,它使用 CDO 作为后端。
import nctoolkit as nc
data = nc.open_data("infile.nc")
data.to_latlon(lon = [lon_min, lon_max], lat = [lat_min, lat_max])
data.plot()
You will need to define lon_min etc.您将需要定义 lon_min 等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.