📜  regrid ntdcf 文件使用 xarray - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:03.006000             🧑  作者: Mango

代码示例1
import xarray as xr
import numpy as np

ds = xr.open_dataset(path_file)

new_lon = np.arange(0,360,0.25)   #to regrid all 0.25°
new_lat = np.arange(90,-90.25,-0.25)

dsi = ds.interp(lat = new_lat, lon = new_lon)