geeViz.eeCatalogHelpers.table_metadata

Table schema inference from CSV files.

Functions

build_table_schema_from_csv(csv_path, ...[, ...])

Build a Jsonnet-ready gee:schema from a CSV table.

infer_table_field_type(values)

Infer a table field type from all populated CSV values.

geeViz.eeCatalogHelpers.table_metadata.infer_table_field_type(values: Iterable[str]) → str[source]

Infer a table field type from all populated CSV values.

geeViz.eeCatalogHelpers.table_metadata.build_table_schema_from_csv(csv_path: Path, field_descriptions: Mapping[str, str], *, type_overrides: Mapping[str, str] | None = None) → list[dict[str, object]][source]

Build a Jsonnet-ready gee:schema from a CSV table.

Descriptions are required for every CSV field. Type overrides accept int, double, and string; other fields are inferred from all populated CSV values.