Skip to content

Interpolating between two datasets #746

Closed Answered by dopplershift
stackjohn asked this question in Q&A
Discussion options

You must be logged in to vote

I would take data and open it with xarray and use Dataset.resample to do the interpolation:

from xarray.backends import NetCDF4DataStore
import xarray as xr

ds = xr.open_dataset(NetCDF4DataStore(data))
ds.resample(time='1min')

I'm not an xarray expert, but based on the docs, that looks like it should work, provided the dimension is called "time".

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stackjohn
Comment options

Answer selected by dopplershift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants