Skip to content

CompositeFetcher

Bases: FromConfigMixin

Data fetcher that composes multiple data fetchers

Implements the DataFetcher protocol.

PARAMETER DESCRIPTION
data_fetchers

data fetchers

TYPE: list[DataFetcher]

num_workers

number of workers

TYPE: int DEFAULT: 1

from_config classmethod

Creates a composite fetcher from the configuration.

PARAMETER DESCRIPTION
config

configuration

TYPE: CompositeFetcherConfig

RETURNS DESCRIPTION
CompositeFetcher

composite fetcher

__call__

Fetches data from the sources.

PARAMETER DESCRIPTION
x_min

minimum x coordinate

TYPE: Coordinate

y_min

minimum y coordinate

TYPE: Coordinate

RETURNS DESCRIPTION
npt.NDArray

data


CompositeFetcherConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of CompositeFetcher

ATTRIBUTE DESCRIPTION
data_fetchers_configs

configurations of the data fetchers

TYPE: list[DataFetcherConfig]

num_workers

number of workers

TYPE: int


DataFetcherConfig

Bases: pydantic.BaseModel

Configuration for data fetchers

ATTRIBUTE DESCRIPTION
name

name of the data fetcher

TYPE: str

config

configuration of the data fetcher

TYPE: VRTFetcherConfig | WMSFetcherConfig