eogrow.core.area.utm
Area manager implementation for automated UTM CRS grids.
- pydantic model eogrow.core.area.utm.PatchSchema[source]
Bases:
SchemaCreate a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- field buffer_x: float = 0
Number of meters by which to increase the tile size to left and right.
- field buffer_y: float = 0
Number of meters by which to increase the tile size to up and down.
- field size_x: int [Required]
A width of each EOPatch in meters
- field size_y: int [Required]
A height of each EOPatch in meters
- class eogrow.core.area.utm.UtmZoneAreaManager(config, storage)[source]
Bases:
BaseAreaManagerArea manager that splits the area per UTM zone
- Parameters:
config (Schema) – The configuration schema
storage (StorageManager) – An instance of StorageManager class
- pydantic model Schema[source]
Bases:
SchemaCreate a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Fields:
geometry_filename (str)offset_x (float)offset_y (float)patch (PatchSchema)
- field geometry_filename: str [Required]
Name of the file that defines the AoI geometry, located in the input data folder.
- field offset_x: float = 0
An offset of tiling grid in horizontal dimension
- field offset_y: float = 0
An offset of tiling grid in vertical dimension
- field patch: PatchSchema [Required]
- eogrow.core.area.utm.create_utm_zone_grid(geometry, name_column, bbox_size, bbox_offset, bbox_buffer)[source]
Creates a grid of bounding boxes covering the given area geometry.
- Parameters:
geometry (Geometry) –
name_column (str) –
bbox_size (tuple[int, int]) –
bbox_offset (tuple[float, float]) –
bbox_buffer (tuple[float, float]) –
- Return type:
dict[sentinelhub.constants.CRS, geopandas.geodataframe.GeoDataFrame]