eoio.writers.base.BaseWriter

eoio.writers.base.BaseWriter#

class eoio.writers.base.BaseWriter(write_params: Dict[str, Any] | None = None)[source]#

Base class for eoio writers.

This class is intentionally small. It owns: - config merge/validation - a single public entrypoint: write() - the orchestration common to every format: capability check, conformance check,

provenance, attribute encoding

Concrete writers implement write_dataset() and get_extension().

__init__(write_params: Dict[str, Any] | None = None) → None[source]#

Methods

__init__

can_write

Report whether this writer can express obj.

check_conformance

Check the object against CF-1.8 / ACDD / the controlled vocabulary.

get_extension

Return the filename extension this writer produces, including the dot.

write

Public entrypoint: write an object to path.

write_dataset

Write the object in this writer's format.

Attributes

all_options

Return the available options for this writer.

all_write_params

default_write_params

name

Name this writer is registered under.