Skip to content

Commit

Permalink
fix(sat): Prevent error with existing zarr coord store
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Aug 20, 2024
1 parent ade5656 commit 5912fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/sat/download_process_sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def _rewrite_zarr_times(output_name: str) -> None:
# Need to remove these encodings to avoid chunking
del ds.time.encoding["chunks"]
del ds.time.encoding["preferred_chunks"]
ds.to_zarr(f"{output_name.split('.zarr')[0]}_coord.zarr", consolidated=True)
ds.to_zarr(f"{output_name.split('.zarr')[0]}_coord.zarr", consolidated=True, mode="w")
# Remove current time ones
shutil.rmtree(f"{output_name}/time/")
# Add new time ones
Expand Down

0 comments on commit 5912fbb

Please sign in to comment.