data_sources.topographic.topographic_model
Model for Topogrpahic features
Topographic Objects
class Topographic(DataSourceOutput)
Class to store topographic data as a xr.Dataset with some validation
model_validation
@classmethod
def model_validation(cls, v)
Check that all values are non NaNs
data_sources.topographic
Topographic data sources and functions
data_sources.topographic.topographic_data_source
Topological DataSource
TopographicDataSource Objects
@dataclass
class TopographicDataSource(ImageDataSource)
Add topographic/elevation map features.
__post_init__
def __post_init__(image_size_pixels_height: int, image_size_pixels_width: int,
meters_per_pixel: int)
Post init
get_data_model_for_batch
@staticmethod
def get_data_model_for_batch()
Get the model that is used in the batch
check_input_paths_exist
def check_input_paths_exist() -> None
Check input paths exist. If not, raise a FileNotFoundError.
get_example
def get_example(location: SpaceTimeLocation) -> xr.Dataset
Get a single example
Arguments:
location
- A location object of the example which contains- a timestamp of the example (t0_datetime_utc),
- the x center location of the example (x_location_osgb)
- the y center location of the example(y_location_osgb)
Returns:
Example containing topographic data for the selected area