All that is needed to wrap this into a function with the signature func(ds, fig, timestamp, framedim, **kwargs), where ds is an xarray Dataset or DataArray, fig is a matplotlib.figure object and timestamp is an integer which indicates the movie frame. def custom_plotfunc(ds, fig, ...
but I suspect most people are wanting to fill arrays or some other data structures from the data. On IMAP we have a utility function to handle creatingxarray.Datasetobjects for each apid. I suspect a utility function like this would be valuable to other missions as well, but I don't thin...
This is likely an Xarray or Zarr bug, but reporting here first importxarrayasxrfromicechunkimportIcechunkStore,StorageConfigstore=awaitIcechunkStore.create(StorageConfig.Filesystem("./icechunk-test"),mode="w")ds=xr.DataArray([1,2,3],dims=('t',),name="foo").to_dataset()# create dataset...
All that is needed to wrap this into a function with the signature func(ds, fig, timestamp, framedim, **kwargs), where ds is an xarray Dataset or DataArray, fig is a matplotlib.figure object and timestamp is an integer which indicates the movie frame. def custom_plotfunc(ds, fig, ...