How idromerom714/visualiaciones_roya_cafe works
This repository is a Streamlit dashboard for exploring climate indicators and simulated coffee-rust and coffee-borer risk across farms. Users select a pathogen, date range, locations and climate variable; the app loads and joins climate, farm and disease-threshold CSVs, computes indicators, and presents aggregated metrics and visualizations. It also includes simulated incidence/count models, statistical regression and correlation analysis. A separate Folium module builds sampling-zone maps; the README describes map rendering as optional. The diagram follows the excerpts and README; unsampled app sections limit certainty about some internal calls.
Main entry points: app.py Streamlit dashboard · mapa_zonas.py Sampling-zone map · clima_ubicaciones.csv Climate records · ubicaciones.csv Farm locations
Components 15
Dashboard workflow
- Streamlit dashboard
app.py - Climate records
data/clima_ubicaciones.csv - Farm locations
ubicaciones.csv - Disease thresholds
data/enfermedades.csv - Date and farm filters
app.py - Risk charts and KPIs
app.py
Risk analysis
- Climate indicators
app.py - Rust incidence simulation
app.py - Borer count simulation
app.py - Logistic regression
app.py - Negative-binomial model
app.py - Correlation analysis
app.py
Farm mapping
- Sampling-zone map
mapa_zonas.py - Folium renderer
Other components
- Dashboard user
Connections 15
- Dashboard user → Streamlit dashboard: selects filters
README.md - Streamlit dashboard → Climate records: reads climate
app.py - Streamlit dashboard → Farm locations: reads locations
app.py - Streamlit dashboard → Disease thresholds: reads thresholds
app.py - Streamlit dashboard → Date and farm filters: offers filters
app.py - Date and farm filters → Climate indicators: filters climate
app.py - Streamlit dashboard → Climate indicators: calculates
app.py - Streamlit dashboard → Rust incidence simulation: simulates rust
app.py - Streamlit dashboard → Borer count simulation: simulates borers
app.py - Streamlit dashboard → Logistic regression: fits rust model
app.py - Streamlit dashboard → Negative-binomial model: fits borer model
app.py - Streamlit dashboard → Risk charts and KPIs: renders results
app.py - Streamlit dashboard → Correlation analysis: computes correlations
app.py - Streamlit dashboard → Sampling-zone map: may use map
README.md - Sampling-zone map → Folium renderer: builds Folium map
mapa_zonas.py