简体   繁体   English

将极地立体投影中的数据重新映射到经纬度

[英]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.

相关问题 极坐标投影到规则的纬度/经度网格 - Polar stereographic projection to regular lat/lon grid 如何在python中使用经纬度数据计算最小距离 - How to calculate minimum distance using lat-lon data in python 将北极立体二进制重投影到 Lon/Lat 网格(python 中的光栅或 gdal) - Reprojection of North Polar Stereographic binary to Lon/Lat grid (rasterio or gdal in python) 操纵纬度和时间序列的熊猫 - Manipulations with Lat-Lon and Time Series Pandas 为什么底图南极立体地图投影坐标与同一投影中的数据集不一致? - Why are Basemap south polar stereographic map projection coordinates not agreeing with those of data sets in the same projection? geopandas 世界地图的极地立体投影 - Polar Stereographic projection of geopandas world map 极地立体投影中的Python点密度图 - Python Point density plots in polar stereographic projection 使用极立体投影在 cartopy 中放置纬度标签 - Placement of latitude labels in cartopy with polar stereographic projection 有没有办法使用北极立体投影到 plot 一系列不包括极点的纬度/经度来获取 matplotlib 的底图? - Is there a way to get matplotlib's Basemap using North Polar Stereographic Projection to plot a range of lat/lons that doesn't include the pole? 如何使用python对常规lat-lon数据进行面积加权重新划分 - How to do area-weighted regridding of regular lat-lon data using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM