Skip to content

Commit f4c2876

Browse files
committed
Update docs according to review feedback
1 parent 9845be9 commit f4c2876

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/development/posting-issues.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ ds = xr.open_dataset("my_dataset.nc") # or xr.open_zarr(...), etc.
6767
# You can customise `except_for` to also retain actual values for specific variables:
6868
# except_for='coords' — keep coordinate arrays (useful for grid topology)
6969
# except_for=['lon', 'lat'] — keep a specific list of variables
70-
ds_trimmed = replace_arrays_with_zeros(ds) # default: except_for=None
70+
# except_for=None — remove all arrays (useful to know about dtypes, structure, and metadata). This is the default for the function.
71+
ds_trimmed = replace_arrays_with_zeros(ds, except_for = None)
7172
7273
# Save to a zipped Zarr store - replace `my_dataset` with a more informative name
7374
with zarr.storage.ZipStore("my_dataset.zip", mode='w') as store:

0 commit comments

Comments
 (0)