export
darts_export.export
¶
Darts export module for inference results.
_export_binarized
¶
_export_binarized(
tile: xarray.Dataset,
out_dir: pathlib.Path,
ensemble_subsets: list[str] = [],
tags={},
)
Source code in darts-export/src/darts_export/export.py
_export_metadata
¶
_export_polygonized
¶
_export_polygonized(
tile: xarray.Dataset,
out_dir: pathlib.Path,
ensemble_subsets: list[str] = [],
)
Source code in darts-export/src/darts_export/export.py
_export_probabilities
¶
_export_probabilities(
tile: xarray.Dataset,
out_dir: pathlib.Path,
ensemble_subsets: list[str] = [],
tags={},
)
Source code in darts-export/src/darts_export/export.py
_export_raster
¶
_export_raster(
tile: xarray.Dataset,
name: str,
out_dir: pathlib.Path,
fname: str | None = None,
tags={},
)
Source code in darts-export/src/darts_export/export.py
_export_thumbnail
¶
_export_vector
¶
Source code in darts-export/src/darts_export/export.py
export_tile
¶
export_tile(
tile: xarray.Dataset,
out_dir: pathlib.Path,
bands: list[str] = [
"probabilities",
"binarized",
"polygonized",
"extent",
"thumbnail",
],
ensemble_subsets: list[str] = [],
metadata: dict = {},
debug: bool = False,
)
Export a tile into a inference dataset, consisting of multiple files.
Parameters:
-
tile
(xarray.Dataset
) –The tile to export.
-
out_dir
(pathlib.Path
) –The path where to export to.
-
bands
(list[str]
, default:['probabilities', 'binarized', 'polygonized', 'extent', 'thumbnail']
) –The bands to export. Defaults to ["probabilities"].
-
ensemble_subsets
(list[str]
, default:[]
) –The ensemble subsets to export. Defaults to [].
-
metadata
(dict
, default:{}
) –Metadata to include in the export.
-
debug
(bool
, default:False
) –Debug mode: will write a .netcdf with all of the tiles contents. Defaults to False.
Raises:
-
ValueError
–If the band is not found in the tile.