Skip to content

Commit

Permalink
add time appendix to reslc script
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerkuou committed Oct 15, 2024
1 parent 5771a0e commit 0a300be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/scripts/script_reslc.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def get_free_port():
if overwrite_zarr:
slcs_output.to_zarr(path_output_slcs, mode="w")
else:
slcs_output.to_zarr(path_output_slcs)
# Append in time dimension if the zarr already exists
# Otherwise, a new zarr will be created
slcs_output.to_zarr(path_output_slcs, mode="a", append_dim="time")

# Close the client when finishing
client.close()

0 comments on commit 0a300be

Please sign in to comment.