Skip to content

Commit

Permalink
fix(encoding): Float32 encoding (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc authored Feb 7, 2025
1 parent b47c1bb commit 46d060c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def save_to_zarr_to_backend(dataset: xr.Dataset, filename: str):
with tempfile.TemporaryDirectory() as dir:
# save locally
path = f"{dir}/temp.zarr.zip"
encoding = {"data": {"dtype": "int16"}}
encoding = {"data": {"dtype": "float32"}}

# make sure variable is string
dataset = dataset.assign_coords({"variable": dataset.coords["variable"].astype(str)})
Expand Down

0 comments on commit 46d060c

Please sign in to comment.