-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Problem
- Suppose you write a timeseries of data, but its possible for the timeseries to have entirely empty chunks - for example in breakpoint analysis (CCDC)
- Writing an empty chunk i.e. a chunk of entirely the
fill_valuewill currently write no changes - However, you rely on the knowledge of written chunks for some later process e.g. checking for coverage or checking for a complete time series for re-processing
- You've already "processed" this chunk to be empty but cannot verify it to be so via a written empty chunk (as it wasn't written)
- The current solution would be to either
- A) change the fill value (but now when you pull truly empty chunks it'll show some other value instead of
nan) - B) pass a sentinel-value e.g. "Infinity" and then remask back to
nan
- A) change the fill value (but now when you pull truly empty chunks it'll show some other value instead of
Proposed Solution
- I'd like an additional option for
to_icechunkthat allows me to setwrite_empty_chunksto true - This mirrors the same API as xarrays
to_zarr
Metadata
Metadata
Assignees
Labels
No labels