create_time_grid
Classes:
Name | Description |
---|---|
CreateTimeGrid |
|
Classes#
CreateTimeGrid #
Bases: DataConverter
Methods:
Name | Description |
---|---|
convert |
|
Attributes:
Name | Type | Description |
---|---|---|
interval |
str
|
The frequency of time points. This is passed to pd.timedelta_range as the 'freq' |
Attributes#
interval
instance-attribute
#
The frequency of time points. This is passed to pd.timedelta_range as the 'freq' argument. E.g., '30s', '5min', '10min', '1h', etc.
Functions#
convert #
convert(
data: xr.DataArray,
variable_name: str,
dataset_config: Optional[DatasetConfig] = None,
retrieved_dataset: Optional[RetrievedDataset] = None,
retriever: Optional[StorageRetriever] = None,
time_span: Optional[Tuple[datetime, datetime]] = None,
input_key: Optional[str] = None,
**kwargs: Any
) -> Optional[xr.DataArray]