Export Reference¶
darts_export
¶
Dataset export for the DARTS dataset.
InferenceResultWriter
¶
Writer class to export inference result datasets.
Source code in darts-export/src/darts_export/inference.py
ds: xarray.Dataset = ds
instance-attribute
¶
__init__(ds)
¶
export_binarized(path, filename='pred_binarized.tif', tags={})
¶
Export the binarized segmentation result of the inference Result.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
The path where to export to. |
required |
filename
|
str
|
the filename. Defaults to "pred_binarized.tif". |
'pred_binarized.tif'
|
tags
|
dict
|
optional GeoTIFF metadate to be written. Defaults to no additional metadata. |
{}
|
Returns:
Type | Description |
---|---|
the Path of the written file |
Source code in darts-export/src/darts_export/inference.py
export_polygonized(path, filename_prefix='pred_segments', minimum_mapping_unit=32)
¶
Export the binarized probabilities as a vector dataset in GeoPackage and GeoParquet format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
The path where to export the files |
required |
filename_prefix
|
str
|
the file prefix of the exported files. Defaults to "pred_segments". |
'pred_segments'
|
minimum_mapping_unit
|
int
|
segments covering less pixel are removed. Defaults to 32. |
32
|
Source code in darts-export/src/darts_export/inference.py
export_probabilities(path, filename='pred_probabilities.tif', tags={})
¶
Export the probabilities layer to a file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
The path where to export to. |
required |
filename
|
str
|
the filename. Defaults to "pred_probabilities.tif". |
'pred_probabilities.tif'
|
tags
|
dict
|
optional GeoTIFF metadate to be written. Defaults to no additional metadata. |
{}
|
Returns:
Type | Description |
---|---|
the Path of the written file |