Container for holding spatial and temporal bounds information.
Certain operations require valid bounding information to be present for correct functioning. Bounds guarantees that a function receives well formed information without the need to do the validation manually.
Spatial and temporal bounds must follow the following guidelines.
Default Bounds constructor
| Parameters: | |
|---|---|
| Raises: | ValueError |
Container for a dataset’s attributes and data.
Default Dataset constructor
| Parameters: |
|
|---|---|
| Raises: | ValueError |
Calculate the spatial boundaries.
| Returns: | The Dataset’s bounding latitude and longitude values as a tuple in the form (min_lat, max_lat, min_lon, max_lon) |
|---|---|
| Return type: | (float, float, float, float) |
Calculate the latitudinal and longitudinal spatial resolution.
Warning
This only works with properly gridded data.
| Returns: | The Dataset’s latitudinal and longitudinal spatial resolution as a tuple of the form (lat_resolution, lon_resolution). |
|---|---|
| Return type: | (float, float) |
Calculate the temporal resolution.
| Raises ValueError: | |
|---|---|
| If timedelta.days as calculated from the sorted list of times is an unrecognized value a ValueError is raised. | |
| Returns: | The temporal resolution. |
| Return type: | string |
Calculate the temporal range
| Returns: | The start and end date of the Dataset’s temporal range as a tuple in the form (start_time, end_time). |
|---|---|
| Return type: | (datetime, datetime) |