pixcdust.converters.zarr

Zarr converter.

Attributes

TIME_VARNAME

Classes

Nc2ZarrConverter

Converter from official SWOT Pixel Cloud Netcdf to Shapefile database

Module Contents

pixcdust.converters.zarr.TIME_VARNAME = 'time'[source]
class pixcdust.converters.zarr.Nc2ZarrConverter(path_in: str | Iterable[str] | pathlib.Path | Iterable[pathlib.Path], variables: list[str] | None = None, area_of_interest: geopandas.GeoDataFrame | None = None, conditions: dict[str, dict[str, str | float]] | None = None)[source]

Bases: pixcdust.converters.core.Converter

Converter from official SWOT Pixel Cloud Netcdf to Shapefile database

Attributes:

path_in: List of path of files to convert. variables: Optionally only read these variables. area_of_interest: Optionally only read points in area_of_interest. conditions: Optionally pass conditions to filter variables. Example: { “sig0”:{‘operator’: “ge”, ‘threshold’: 20}, “classification”:{‘operator’: “ge”, ‘threshold’: 3}, }

collection: zcollection.collection.Collection = None[source]
__time_varname: str = 'time'[source]
__fs[source]
__chunk_size = 0[source]
__cst[source]
database_from_nc(path_out: str | pathlib.Path, mode: str = 'w') None[source]

Convert the path_in files to path_out. Args:

path_out: Output path of the convertion. mode: Writing mode of the output. Must be ‘w’(write/append) or ‘o’(overwrite).