Closed itepifanio closed 2 years ago
There is only xr.Dataset.to_zarr not for xr.DataArray. I never use export so far. Maybe an easy fix would be to promote DataArrays to Datasets in this case.
There is only xr.Dataset.to_zarr not for xr.DataArray. I never use export so far. Maybe an easy fix would be to promote DataArrays to Datasets in this case.
@aaronspring I'm trying to get my remote data and store it locally, that's why I'm using the export feature.
To cast from DataArray to Dataset I would need to read the images like catalog.images.read()
and then cast it, right? But I'm facing also an error when reading the images:
ValueError: could not broadcast input array from shape (1,338,500,3) into shape (1,375,500,3)
It seems to be related to this xarray error.
There is only xr.Dataset.to_zarr not for xr.DataArray
Yep, clearly this would be a simple if/else correction in RemoteXArray._persist
. If the source produces an xarray rather than a dataset, we can put it in a dataset, but must assign a name.
@martindurant @aaronspring thanks for the quick fix!
Do you know when these changes will be released?
When one of us gets around to it :) If you keep pinging, we'll do it sooner!
I have a catalog that contains images in jpg format.
But when I try to export using
catalog.images.export('./catalogs')
I'm facing the following error: