fetch_era5_land_soil_moisture
Downloads ERA5-Land monthly mean volumetric soil water content for a specified soil layer. Provides the raw data needed for Soil Moisture Index (SMI) calculations.
Instructions
Downloads ERA5-Land monthly mean volumetric soil water content for one soil layer. This is the primary data source for the SMI pipeline (see skills/calculate-smi).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| east | No | Eastern longitude (e.g., 10 for 10E) Example: fetch_era5_land_soil_moisture(1, [str(y) for y in range(1950, 2021)], [f"{m:02d}" for m in range(1, 13)], 'data/raw/era5land_sm_layer1_1950_2020.nc', north=51.5, west=5.5, south=50.5, east=7.0) | |
| west | No | Western longitude (e.g., 5 for 5E) | |
| year | Yes | Year(s) as string or list (e.g., '2023' or ['1950', ..., '2020']). | |
| layer | Yes | Soil layer 1-4 (1: 0-7cm, 2: 7-28cm, 3: 28-100cm, 4: 100-289cm). Default use: 1. | |
| month | Yes | Month(s) as string or list (e.g., '01' or ['01', ..., '12']). | |
| north | No | Northern latitude (e.g., 51 for 51N) | |
| south | No | Southern latitude (e.g., 48 for 48N) | |
| output_filename | Yes | Local NetCDF path (e.g., 'data/raw/era5land_sm_layer1_1950_2020.nc'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |