cdms
The Community Data Management System is an object-oriented data management system, specialized for organizing multidimensional, gridded data used in climate analysis and simulation.
CDMS is implemented as part of the Climate Data Analysis Tool CDAT (https://cdat.llnl.gov/), which uses the Python language.
CDMS Documentation
https://cdms.readthedocs.io/en/latest/
Regrid
code:python
f=cdms2.open(your_file)
data=f(var_in)
f2=cdms2.open(yourtargetfile)
dat_t=f(data2)
d2=data.regrid(data,dat_t.getGrid())