Skip to content

Commit

Permalink
added date and lead to preferred chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSchnapp committed Sep 10, 2021
1 parent b29f503 commit cb9b2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TdlpackBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ def build_da_without_coords(index, cube, file) -> xr.DataArray:
da = xr.DataArray(data, dims=dim_names)

if 'station' in da.dims:
da.encoding['preffered_chunks'] = {'station':-1}
da.encoding['preffered_chunks'] = {'date':1,'lead':1,'station':-1}
else:
da.encoding['preffered_chunks'] = {'y':-1, 'x':-1}
da.encoding['preffered_chunks'] = {'date':1,'lead':1,'y':-1, 'x':-1}

da.name = index.name.iloc[0]
for meta_name in constant_meta_names:
Expand Down

0 comments on commit cb9b2b3

Please sign in to comment.