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: int, meters_per_pixel: int)

Post init

check_input_paths_exist

def check_input_paths_exist() -> None

Check input paths exist. If not, raise a FileNotFoundError.

get_example

def get_example(t0_dt: pd.Timestamp, x_meters_center: Number, y_meters_center: Number) -> Topographic

Get a single example

Arguments:

  • t0_dt - Current datetime for the example, unused
  • x_meters_center - Center of the example in meters in the x direction in OSGB coordinates
  • y_meters_center - Center of the example in meters in the y direction in OSGB coordinates

Returns:

Example containing topographic data for the selected area

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