total_rainfall
Calculate total rainfall in millimeters for a Swiss location over a specified hour range, from 2 to 121 hours ahead.
Instructions
Get total rainfall for a location and offset period.
Args:
location (str): Location name (e.g., "Zurich").
lead_time_start_swiss (int): Start hour offset from today at 00:00 Swiss local time. Min offset time is 2 hours.
lead_time_end_swiss (int): End hour offset from today at 00:00 Swiss local time. Max offset time is 121 hours.
Returns:
float: Total precipitation accumulation in millimeters for the given period.
Examples:
total_rainfall("Zurich", 2, 24) # Total rainfall today
total_rainfall("Zurich", 24, 48) # Total rainfall tomorrow
total_rainfall("Zurich", 24, 30) # Total rainfall tonight
total_rainfall("Zurich", 30, 36) # Total rainfall tomorrow morning
total_rainfall("Zurich", 36, 42) # Total rainfall tomorrow afternoon
total_rainfall("Zurich", 42, 48) # Total rainfall tomorrow evening
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | Yes | ||
| lead_time_end_swiss | Yes | ||
| lead_time_start_swiss | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |