data_sources.metadata
Metadata data sources and functions
data_sources.metadata.metadata_data_source
Datetime DataSource - add hour and year features
MetadataDataSource Objects
@dataclass
class MetadataDataSource(DataSource)
Add metadata to the batch
__post_init__
def __post_init__()
Post init
get_example
def get_example(t0_dt: pd.Timestamp, x_meters_center: Number, y_meters_center: Number) -> Metadata
Get example data
Arguments:
t0_dt
- list of timestampsx_meters_center
- x center of patches - not needed-
y_meters_center
- y center of patches - not needed -
Returns
- batch data of datetime features
get_locations_for_batch
def get_locations_for_batch(t0_datetimes: pd.DatetimeIndex) -> Tuple[List[Number], List[Number]]
This method is not needed for MetadataDataSource
datetime_index
def datetime_index() -> pd.DatetimeIndex
This method is not needed for MetadataDataSource
data_sources.metadata.metadata_model
Model for output of general/metadata data, useful for a batch
Metadata Objects
class Metadata(DataSourceOutput)
Class to store metedata data as a xr.Dataset with some validation