regrid ntdcf file usig xarray

Solutions on MaxInterview for regrid ntdcf file usig xarray by the best coders in the world

showing results for - "regrid ntdcf file usig xarray"
Maite
16 May 2019
1import xarray as xr
2import numpy as np
3
4ds = xr.open_dataset(path_file)
5
6new_lon = np.arange(0,360,0.25)   #to regrid all 0.25°
7new_lat = np.arange(90,-90.25,-0.25)
8
9dsi = ds.interp(lat = new_lat, lon = new_lon)