Skip to content

Add write_empty_chunks parameter to to_icechunk #1458

@jakenotjay

Description

@jakenotjay

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_value will 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

Proposed Solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions