TABLES & FIGURES BY MODULE
πΎ fetch_data β Climate Data Ingestion
Output Format: CSV, JSON
Tables:
- Daily time-series with columns:
date, precipitation, max_temperature, min_temperature, humidity, solar_radiation, wind_speed (varies by source)
Figures: None (raw data only)
π
season_analysis β Rainy Season Detection
Output Format: CSV, JSON
Tables:
- Season Summary (CSV):
year, season_number, onset, cessation, regime, length_days, total_rainfall_mm, rainy_days, dry_days, dry_spells, annual_rain_mm, humid_result
- Livestock metrics:
mean_thi, max_thi, thi_stress_days (if livestock mode enabled)
- Long-Term Means (JSON):
- Per-season aggregates: mean onset date, mean length, mean rainfall, etc.
Figures: None
π climate_statistics β Climate Metrics & Aggregation
Output Format: JSON (primary) + CSV exports
Tables:
- raw_climate_summary: Mean, Min, Max, Std per variable per season
- overall_statistics: Per season:
- Precipitation totals & stats
- Temperature stats (avg, max, min)
- ET0 (evapotranspiration)
- Water balance: NDWS, NDWL0, WRSI
- VPD (vapor pressure deficit)
- Heat stress: Humidex, THI
- season_statistics: Per-season headline metrics
- monthly_series (CSV): Aggregated dailyβmonthly data
- spei / spi (CSV): Drought indices with date, value, classification
- annual_summary: Year-by-year humidity test results
Figures: None
π compare_periods β Historical Period Comparison
Output Format: JSON, Text console
Tables:
- Comparison structure (per variable per season):
focal (value for focal year)
baseline_avg (average across baseline period)
diff (focal - baseline)
pct_change ((diff / baseline) Γ 100)
- Includes: Precipitation, temperature, water stress, heat stress comparisons
Figures: None
β οΈ calculate_hazards β Crop Hazard Assessment
Output Format: JSON, Text console, optional CSV
Tables:
- hazard_indicators: For each hazard type:
| Hazard |
focal_value |
baseline_avg |
diff |
stress_category |
reasoning |
| Precipitation |
β |
β |
β |
no/moderate/severe/extreme_stress |
β |
| TAVG (avg temp) |
β |
β |
β |
β |
β |
| NDD (normalized degree days) |
β |
β |
β |
β |
β |
| NTx35 (days >35Β°C) |
β |
β |
β |
β |
β |
| NTx40 (days >40Β°C) |
β |
β |
β |
β |
β |
| NDWS (water stress days) |
β |
β |
β |
β |
β |
| NDWL0 (waterlogging days) |
β |
β |
β |
β |
β |
| WRSI (water requirement %) |
β |
β |
β |
β |
β |
| THI (livestock heat index) |
β |
β |
β |
β |
β |
| HUMIDEX (human heat index) |
β |
β |
β |
β |
β |
Figures: None
π¦οΈ weather_station (download) β Station Discovery
Output Format: CSV, JSON, HTML (interactive)
Tables:
- Candidate Stations (CSV):
station_id, station_name, distance_km, elevation_diff_m
- Data completeness per variable:
precip_complete_%, temp_complete_%
data_years, selection_status, selection_rank, selection_reason
Figures: None (HTML has interactive table with filtering/sorting)
π weather_station (compare) β Station vs. Grid Validation
Output Format: JSON, optional CSV, optional HTML + PNG
Tables:
- Validation Metrics (JSON): Per (grid_source, variable) pair:
n_overlap_days, correlation, rmse, bias, mae, annual_total_grid, annual_total_station, pct_diff, wet_day_agreement_%
- Daily Comparison (optional CSV):
date, grid_source, variable, station_value, grid_value, diff, pct_diff, quality_flag
Figures (optional PNG plots):
- Time-series comparison (grid vs. station over time)
- Scatter plot (grid vs. station values)
- Box plot (distribution by variable/source)
π climatology β Climatic Normals & Indices
Output Format: JSON, CSV (per index), optional PNG
Tables:
- WMO Monthly Normals (ltm_monthly):
month, precip_mm, tmax_c, tmin_c, humidity_%, solar_rad, et0_mm
- Drought Indices (spei / spi - CSV):
date, spei_value / spi_value, classification (wet/normal/moderate_drought/severe_drought/extreme_drought)
- VPD Statistics (vpd):
- Monthly vapor pressure deficit values
- Livestock Heat Stress (THI - CSV):
date, daily_thi, thi_classification (cool/thermal_comfort/heat_stress/severe_heat_stress)
- Human Heat Stress (Humidex - CSV):
date, daily_humidex, humidex_classification (comfortable/warm/very_warm/hot/very_hot/dangerous/extreme_caution)
Figures (optional PNG):
- Monthly climatology line plots
- Drought index time-series
- Heat stress categories over time
π compare_datasets β Multi-Source Comparison
Output Format: Per-source CSV, Per-source PNG, Multi-source PNG
Tables:
- {source}_annual_timeseries.csv:
year, per-variable annual totals/means
- {source}_monthly_climatology.csv:
month, per-variable monthly means
- Console summary table: Mean, Min, Max, Std, Coefficient of Variation per source
Figures (PNG at 150 DPI):
- Per-source:
{source}_annual_timeseries.png (line plot: annual trends)
{source}_monthly_climatology.png (bar or line plot: seasonal pattern)
- Multi-source:
multisource_annual_{variable}.png (overlay comparison of all sources, annual)
multisource_monthly_climatology_{variable}.png (overlay comparison of all sources, monthly)
QUICK SUMMARY TABLE
| Module |
Primary Output |
Tables |
Figures |
Report |
| fetch_data |
CSV/JSON |
Daily time-series |
β |
β |
| season_analysis |
CSV + JSON |
Season summary + LTM stats |
β |
Console text |
| climate_statistics |
JSON + CSV |
Raw summary, overall, seasonal, monthly, SPEI/SPI |
β |
JSON + console |
| compare_periods |
JSON |
Baseline vs. focal (with diffs & %) |
β |
JSON + console |
| calculate_hazards |
JSON |
Hazard indicators with stress bands |
β |
JSON + console |
| weather_station (download) |
CSV + JSON + HTML |
Station candidates with QA metrics |
β |
Interactive HTML |
| weather_station (compare) |
JSON + CSV (opt.) |
Validation metrics (correlation, RMSE, bias, etc.) |
β οΈ Optional |
JSON + optional HTML |
| climatology |
JSON + CSV |
LTM monthly norms, drought/heat indices |
β οΈ Optional |
JSON + console |
| compare_datasets |
CSV per source + PNG |
Annual & monthly per-source tables |
β
PNG plots |
Console statistics |
Legend: β = No figures | β οΈ = Optional figures | β
= Figures included
TABLES & FIGURES BY MODULE
πΎ fetch_data β Climate Data Ingestion
Output Format: CSV, JSON
Tables:
date,precipitation,max_temperature,min_temperature,humidity,solar_radiation,wind_speed(varies by source)Figures: None (raw data only)
π season_analysis β Rainy Season Detection
Output Format: CSV, JSON
Tables:
year,season_number,onset,cessation,regime,length_days,total_rainfall_mm,rainy_days,dry_days,dry_spells,annual_rain_mm,humid_resultmean_thi,max_thi,thi_stress_days(if livestock mode enabled)Figures: None
π climate_statistics β Climate Metrics & Aggregation
Output Format: JSON (primary) + CSV exports
Tables:
Figures: None
π compare_periods β Historical Period Comparison
Output Format: JSON, Text console
Tables:
focal(value for focal year)baseline_avg(average across baseline period)diff(focal - baseline)pct_change((diff / baseline) Γ 100)Figures: None
Output Format: JSON, Text console, optional CSV
Tables:
Figures: None
π¦οΈ weather_station (download) β Station Discovery
Output Format: CSV, JSON, HTML (interactive)
Tables:
station_id,station_name,distance_km,elevation_diff_mprecip_complete_%,temp_complete_%data_years,selection_status,selection_rank,selection_reasonFigures: None (HTML has interactive table with filtering/sorting)
π weather_station (compare) β Station vs. Grid Validation
Output Format: JSON, optional CSV, optional HTML + PNG
Tables:
n_overlap_days,correlation,rmse,bias,mae,annual_total_grid,annual_total_station,pct_diff,wet_day_agreement_%date,grid_source,variable,station_value,grid_value,diff,pct_diff,quality_flagFigures (optional PNG plots):
π climatology β Climatic Normals & Indices
Output Format: JSON, CSV (per index), optional PNG
Tables:
month,precip_mm,tmax_c,tmin_c,humidity_%,solar_rad,et0_mmdate,spei_value/spi_value,classification(wet/normal/moderate_drought/severe_drought/extreme_drought)date,daily_thi,thi_classification(cool/thermal_comfort/heat_stress/severe_heat_stress)date,daily_humidex,humidex_classification(comfortable/warm/very_warm/hot/very_hot/dangerous/extreme_caution)Figures (optional PNG):
π compare_datasets β Multi-Source Comparison
Output Format: Per-source CSV, Per-source PNG, Multi-source PNG
Tables:
year, per-variable annual totals/meansmonth, per-variable monthly meansFigures (PNG at 150 DPI):
{source}_annual_timeseries.png(line plot: annual trends){source}_monthly_climatology.png(bar or line plot: seasonal pattern)multisource_annual_{variable}.png(overlay comparison of all sources, annual)multisource_monthly_climatology_{variable}.png(overlay comparison of all sources, monthly)QUICK SUMMARY TABLE
Legend: β = No figures |β οΈ = Optional figures | β
= Figures included