eolearn.core.utils.testing
The eodata module provides core objects for handling remote sensing multi-temporal data (such as satellite imagery).
- class eolearn.core.utils.testing.PatchGeneratorConfig(num_timestamps=5, timestamps_range=(datetime.datetime(2019, 1, 1, 0, 0), datetime.datetime(2019, 12, 31, 0, 0)), max_integer_value=256, raster_shape=(98, 151), depth_range=(1, 3))[source]
Bases:
object
Dataclass containing a more complex setup of the PatchGenerator class.
- Parameters:
num_timestamps (int) –
timestamps_range (tuple[datetime.datetime, datetime.datetime]) –
max_integer_value (int) –
raster_shape (tuple[int, int]) –
depth_range (tuple[int, int]) –
- num_timestamps: int = 5
- timestamps_range: tuple[datetime.datetime, datetime.datetime] = (datetime.datetime(2019, 1, 1, 0, 0), datetime.datetime(2019, 12, 31, 0, 0))
- timestamps: list[datetime.datetime]
- max_integer_value: int = 256
- raster_shape: tuple[int, int] = (98, 151)
- depth_range: tuple[int, int] = (1, 3)
- eolearn.core.utils.testing.generate_eopatch(features=None, bbox=BBox(((0.0, 0.0), (100.0, 100.0)), crs=CRS('32633')), timestamps=None, seed=42, config=None)[source]
A class for generating EOPatches with dummy data.
- Parameters:
features (FeaturesSpecification | None) –
bbox (BBox) –
timestamps (list[dt.datetime] | None) –
seed (int) –
config (PatchGeneratorConfig | None) –
- Return type: