How getta16/irrisat_th works
IRRISAT-THAI is a browser-based, per-field irrigation planner using satellite imagery, weather, and root-zone water balance to produce irrigation recommendations. The user imports or manages field boundaries, selects a field and analysis settings, then views NDVI/Kc map layers and analysis results. The graph separates the UI, field-boundary workflow, analysis services, and authentication/storage. Edges reflect the sampled calls, indexed references, and README descriptions; several service internals and UI wiring were not sampled, so uncertain links are omitted.
Main entry points: App.jsx Workspace · api.js API client · analysis.js Analysis endpoint · import.js Import endpoint
Components 24
Web application
- Workspace
client/src/App.jsx - API client
client/src/api.js - Field map
client/src/components/MapView.jsx - Map controls
client/src/components/MapControls.jsx - Import panel
client/src/components/ImportPanel.jsx - Field list
client/src/components/FieldList.jsx - Field settings
client/src/components/FieldSettings.jsx - Analysis panel
client/src/components/AnalysisPanel.jsx
Field management
- Import endpoint
server/routes/import.js - Boundary parser
server/services/parseGeo.js - Field normalizer
server/services/normalize.js - Field endpoints
server/routes/fields.js
Irrigation analysis
- Analysis endpoint
server/routes/analysis.js - Satellite processing
server/services/gee.js - Weather data
server/services/weather.js - Water balance
server/services/irrigation.js
Identity and storage
- Sign-in flow
client/src/useAuth.js - Auth routes
server/routes/auth.js - Token verification
server/services/auth.js - Field store
server/services/store.js
Other components
- Farmer
- Google Identity
- NASA POWER
- Earth Engine
Connections 26
- Farmer → Workspace: uses
README.md - Workspace → API client: requests
client/src/App.jsx - Workspace → Field map: renders
client/src/App.jsx - Workspace → Map controls: renders
client/src/App.jsx - Workspace → Import panel: renders
client/src/App.jsx - Workspace → Field list: renders
client/src/App.jsx - Workspace → Field settings: renders
client/src/App.jsx - Workspace → Analysis panel: renders
client/src/App.jsx - Workspace → Sign-in flow: uses
client/src/App.jsx - Sign-in flow → API client: verifies login
client/src/useAuth.js - Sign-in flow → Google Identity: gets credentials
- API client → Import endpoint: uploads boundaries
client/src/api.js - API client → Field endpoints: manages fields
client/src/api.js - API client → Analysis endpoint: requests analysis
client/src/api.js - API client → Auth routes: checks session
client/src/api.js - Import endpoint → Boundary parser: parses files
server/routes/import.js - Import endpoint → Field normalizer: normalizes fields
server/routes/import.js - Field endpoints → Field normalizer: normalizes fields
server/routes/fields.js - Field endpoints → Field store: reads and writes
server/routes/fields.js - Auth routes → Token verification: verifies tokens
server/routes/auth.js - Analysis endpoint → Field store: loads field
server/routes/analysis.js - Analysis endpoint → Satellite processing: gets satellite data
server/routes/analysis.js - Analysis endpoint → Weather data: gets weather
server/routes/analysis.js - Analysis endpoint → Water balance: runs water balance
server/routes/analysis.js - Weather data → NASA POWER: fetches ET₀ data
README.md - Satellite processing → Earth Engine: queries imagery
README.md