planet
darts_acquisition.planet
¶
PLANET related data loading. Should be used temporary and maybe moved to the acquisition package.
_is_valid_date
¶
load_planet_masks
¶
Load the valid and quality data masks from a Planet scene.
Parameters:
Raises:
-
FileNotFoundError
–If no matching UDM-2 TIFF file is found in the specified path.
Returns:
-
xarray.Dataset
–xr.Dataset: A merged xarray Dataset containing two data masks: - 'valid_data_mask': A mask indicating valid (1) and no data (0). - 'quality_data_mask': A mask indicating high quality (1) and low quality (0).
Source code in darts-acquisition/src/darts_acquisition/planet.py
load_planet_scene
¶
Load a PlanetScope satellite GeoTIFF file and return it as an xarray datset.
Parameters:
-
fpath
(str | pathlib.Path
) –The path to the directory containing the TIFF files or a specific path to the TIFF file.
Returns:
Raises:
-
FileNotFoundError
–If no matching TIFF file is found in the specified path.
Source code in darts-acquisition/src/darts_acquisition/planet.py
parse_planet_type
¶
Parse the type of Planet data from the directory path.
Parameters:
Returns:
Raises:
-
ValueError
–If the Planet data type cannot be parsed from the file path.