paint.preprocessing.deflectometry_stac

Functions

make_deflectometry_collection(→ dict[str, Any])

Generate a deflectometry STAC collection.

make_deflectometry_item(→ tuple[tuple[float, float], ...)

Generate a STAC item for a deflectometry measurement.

Module Contents

paint.preprocessing.deflectometry_stac.make_deflectometry_collection(heliostat_id: str, data: pandas.DataFrame) dict[str, Any]

Generate a deflectometry STAC collection.

Parameters

heliostat_id: str

The heliostat ID of the heliostat containing the collection.

data: pd.DataFrame

The dataframe containing all deflectometry metadata.

Returns

dict[str, Any]

The STAC collection as dictionary.

paint.preprocessing.deflectometry_stac.make_deflectometry_item(heliostat_key: str, heliostat_data: pandas.Series, results_exist: bool) tuple[tuple[float, float], dict[str, Any]]

Generate a STAC item for a deflectometry measurement.

Parameters

heliostat_key: str

The ID of the heliostat which was measured.

heliostat_datapd.Series

The metadata for the heliostat.

results_existbool

Whether the results PDF exists.

Returns

tuple[float, float]

The latitude and longitude coordinates of the heliostat that being measured.

dict[str, Any]

The STAC item data as dictionary.