You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, nice library!
Plotting is easy with the rgb accessor when the data downloaded is just one timestep. However, it is not clear to me what is the easiest way to use this accessor when downloading multiple files.
For example, downloading a timerange and forcing to return an xarray dataset (same behaviour as when downloading a single timestep)
obviously creates a really large dataset with high memory consumption (about 16GB stored in RAM in this case).
Afterwards, I can plot by accessing the rgb attributes of individual timesteps, i.e. G.isel(t=0).rgb. However, I feel like a better option would be not to load all the timesteps into memory at once but instead use lazy evaluation (maybe with Dask) so that every file is only loaded into memory once the data needs to be plotted.
Is this possible?
Or is there a better way to only read file by file and attach the rgb accessor afterwars? I couldn't find any example in the documentation.
The text was updated successfully, but these errors were encountered:
Ok, I just realized the rgb accessor gets attached even when opening the dataset with xarray so this is not really an issue. Still, I think it should be mentioned in the examples somewhere.
Hey, nice library!
Plotting is easy with the
rgb
accessor when the data downloaded is just one timestep. However, it is not clear to me what is the easiest way to use this accessor when downloading multiple files.For example, downloading a
timerange
and forcing to return anxarray
dataset (same behaviour as when downloading a single timestep)obviously creates a really large dataset with high memory consumption (about 16GB stored in RAM in this case).
Afterwards, I can plot by accessing the
rgb
attributes of individual timesteps, i.e.G.isel(t=0).rgb
. However, I feel like a better option would be not to load all the timesteps into memory at once but instead use lazy evaluation (maybe withDask
) so that every file is only loaded into memory once the data needs to be plotted.Is this possible?
Or is there a better way to only read file by file and attach the
rgb
accessor afterwars? I couldn't find any example in the documentation.The text was updated successfully, but these errors were encountered: