Horje
regrid ntdcf file usig xarray Code Example
regrid ntdcf file usig xarray
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)




Python

Related
opening & creating hdf5 file Code Example opening & creating hdf5 file Code Example
how to convert array to vector in python Code Example how to convert array to vector in python Code Example
plt.suptitle position Code Example plt.suptitle position Code Example
python print exection type Code Example python print exection type Code Example
numpy offset Code Example numpy offset Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8