Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Meteole allows you to retrieve forecasts for a wide range of weather indicators.
| Update Frequency | Every 3 hours | Every 6 hours |
| Forecast Range | Up to 51 hours | Up to 114 hours |

*note : the date of the run cannot be more than 4 days in the past. Consequently, change the date of the run in the example below.*

```python
from meteole import AromeForecast

Expand All @@ -76,7 +78,7 @@ df_arome = arome_client.get_coverage(
indicator="V_COMPONENT_OF_WIND_GUST__SPECIFIC_HEIGHT_LEVEL_ABOVE_GROUND", # Optional: if not, you have to fill coverage_id
run="2025-01-10T00.00.00Z", # Optional: forecast start time
interval=None, # Optional: time range for predictions
forecast_horizons=[0, 1, 2], # Optional: prediction times (in hours)
forecast_horizons=[1, 2], # Optional: prediction times (in hours)
heights=[10], # Optional: height above ground level
pressures=None, # Optional: pressure level
long = (-5.1413, 9.5602), # Optional: longitude
Expand Down
4 changes: 3 additions & 1 deletion docs/pages/how_to.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Meteole allows you to retrieve forecasts for a wide range of weather indicators.
| Update Frequency | Every 3 hours | Every 6 hours |
| Forecast Range | Up to 51 hours | Up to 114 hours |

*note : the date of the run cannot be more than 4 days in the past. Consequently, change the date of the run in the example below.*

```python
from meteole import AromeForecast

Expand All @@ -73,7 +75,7 @@ df_arome = arome_client.get_coverage(
indicator="V_COMPONENT_OF_WIND_GUST__SPECIFIC_HEIGHT_LEVEL_ABOVE_GROUND", # Optional: if not, you have to fill coverage_id
run="2025-01-10T00.00.00Z", # Optional: forecast start time
interval=None, # Optional: time range for predictions
forecast_horizons=[0, 1, 2], # Optional: prediction times (in hours)
forecast_horizons=[1, 2], # Optional: prediction times (in hours)
heights=[10], # Optional: height above ground level
pressures=None, # Optional: pressure level
long = (-5.1413, 9.5602), # Optional: longitude
Expand Down
8 changes: 4 additions & 4 deletions src/meteole/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,11 @@ def _get_available_feature(grid_axis: list[dict[str, Any]], feature_name: str) -
"""(Protected)
Retrieve available features.

TODO: add more details here.

Args:
grid_axis: ?
feature_name: ?
grid_axis (list[dict[str, Any]]): A list of dictionaries where each dictionary represents a grid axis. Each dictionary contains
information about the axis, such as the grid axes it spans and the associated coefficients.

feature_name (str): Name of the feature you want to retrieve to filter the grid axes to find those that match the feature.

Returns:
List of available feature.
Expand Down
Loading