How mirajus-salehin/smartsip_dss_engine works
SmartSIP DSS is a Streamlit decision-support application for farm irrigation and solar-pump planning. A user selects a location, crop, field size, and irrigation method; the irrigation and climate features use weather and crop data to estimate water needs, and the solar-sizing feature derives pump and PV recommendations. Separate pages provide a crop advisory report, climate summaries, and nearby operational solar-panel comparisons. The excerpts establish the main calculation calls; the nearby-panel page was indexed but its implementation was not shown, so that connection is marked unverified.
Main entry points: app.py Farm setup · solar.py Solar sizing · pump_pv_service.py Pump and PV sizing · irrigation.py Irrigation analysis
Components 18
Application pages
- Farm setup
app.py - Irrigation analysis
pages/irrigation.py - Climate explorer
pages/climate.py - Solar sizing
pages/solar.py - Farm advisory
pages/business.py - Nearby panels
pages/nearest_panels.py
Crop and irrigation
- Crop coefficients
services/crop_service.py - Crop dataset
db/crop_coefficients.json - Water demand model
services/irrigation_service.py - Weather service
services/weather_service.py
Solar and panels
- Pump and PV sizing
services/pump_pv_service.py - Pump head ranges
db/pump,json - Panel selection
services/pv_selector.py - SREDA plant dataset
db/SREDA_data_2026_updated.csv
Shared interface
- Page navigation
sidebar.py - Page styling
ui/styles.py
Other components
- Farm user
- Open-Meteo Archive
Connections 34
- Farm user → Farm setup: sets farm inputs
app.py - Farm setup → Crop coefficients: loads crop choices
app.py - Farm setup → Pump and PV sizing: infers division
app.py - Farm setup → Nearby panels: opens panel search
app.py - Farm setup → Crop dataset: reads crop data
- Irrigation analysis → Water demand model: calculates demand
pages/irrigation.py - Irrigation analysis → Solar sizing: opens sizing
pages/irrigation.py - Irrigation analysis → Farm advisory: opens advisory
pages/irrigation.py - Water demand model → Crop coefficients: gets crop data
services/irrigation_service.py - Water demand model → Weather service: fetches climate
services/irrigation_service.py - Weather service → Open-Meteo Archive: requests archive data
services/weather_service.py - Climate explorer → Weather service: fetches climate
pages/climate.py - Climate explorer → Pump and PV sizing: infers division
pages/climate.py - Solar sizing → Water demand model: calculates demand
pages/solar.py - Solar sizing → Pump and PV sizing: sizes pump and PV
pages/solar.py - Solar sizing → Panel selection: selects nearby panels
pages/solar.py - Farm advisory → Water demand model: calculates stage plan
pages/business.py - Farm advisory → Pump and PV sizing: sizes pump
pages/business.py - Pump and PV sizing → Pump head ranges: loads head ranges
services/pump_pv_service.py - Pump and PV sizing → Panel selection: uses panel selection
services/pump_pv_service.py - Nearby panels → Panel selection: may query panels
pages/nearest_panels.py - Panel selection → SREDA plant dataset: reads plant records
- Farm setup → Page navigation: renders navigation
app.py - Irrigation analysis → Page navigation: renders navigation
pages/irrigation.py - Climate explorer → Page navigation: renders navigation
pages/climate.py - Solar sizing → Page navigation: renders navigation
pages/solar.py - Farm advisory → Page navigation: renders navigation
pages/business.py - Nearby panels → Page navigation: renders navigation
pages/nearest_panels.py - Farm setup → Page styling: loads styling
app.py - Irrigation analysis → Page styling: loads styling
pages/irrigation.py - Climate explorer → Page styling: loads styling
pages/climate.py - Solar sizing → Page styling: loads styling
pages/solar.py - Farm advisory → Page styling: loads styling
pages/business.py - Nearby panels → Page styling: loads styling
pages/nearest_panels.py