Open alexdanjou opened 1 week ago
Can you run this through a debugger and check the chunk sizes? I'm away until Friday, but could look into it then.
The data should be rechunked after open mfdataset is called. If this is a new datasource maybe the chunks aren't being set correctly. (They should be...)
Hum your right a chunking should have been done also at the previous line. I'm checking that
Is your feature request related to a problem?
When trying to standardise multiple files at once, a chunk size error is sometimes raised. The files have to be standardised one by one which seems less efficient (and less user friendly).
Standardisation attempt :
Error message :
Describe the solution you'd like
Would it be possible to simply rechunk the dataset?
In my case, the solution that I put below is working. Replacing https://github.com/openghg/openghg/blob/3eca7392b0f170508509be2fbad46a6eaec2dd86/openghg/store/storage/_localzarrstore.py#L162C1-L170C14 by :
I'm not sure how much this correction and the condition that I put (
dataset.attrs['time_period']=='1 hour'
) are sensible as I don't really know how are the others circonstances in which this function is called.Describe alternatives you've considered
No response
Additional context
No response