How tech-meet-10-iitb-solutions/suryadrishti works
SuryaDrishti is a browser-based X-ray light-curve analysis application. A user uploads one supported light-curve file; the backend stores it for processing, then analyzes it to identify and characterize bursts and score them with the neural model. The report presents the light curve and burst results, supports review, and can submit labels for model training. The graph includes the documented statistical and visualization capabilities. Some frontend-to-backend wiring and chart composition are not shown in excerpts, so those relationships are marked unverified rather than asserted.
Main entry points: report.component.ts Burst report · lc.py Light-curve analysis · server.py FastAPI endpoints · upload.component.ts File upload
Components 14
Browser interface
- File upload
frontend/src/app/upload/upload.component.ts - Burst report
frontend/src/app/report/report.component.ts - Burst table
frontend/src/app/components/burst-table/burst-table.component.ts - Light-curve chart
frontend/src/app/components/linechart/linechart.component.ts - Burst scatter
frontend/src/app/components/linescatter/linescatter.component.ts - Server service
frontend/src/app/server.service.ts
Analysis API
- FastAPI endpoints
backend/server.py
Statistical analysis
- Light-curve analysis
models/stat/lc.py - N-sigma detection
models/stat/ns.py - Local-maxima detection
models/stat/lm.py - Energy-flux fitting
models/stat/efp.py - Burst properties
models/stat/prop.py
Machine learning
- Neural burst scoring
models/ml/snn.py
Other components
- Researcher
Connections 15
- Researcher → File upload: selects file
frontend/src/app/upload/upload.component.ts - File upload → Server service: sends upload
frontend/src/app/upload/upload.component.ts - File upload → Burst report: opens report
frontend/src/app/upload/upload.component.ts - Burst report → Server service: requests bursts
frontend/src/app/report/report.component.ts - Burst report → Burst table: uses table
frontend/src/app/report/report.component.ts - Burst report → Light-curve chart: renders chart
- Burst report → Burst scatter: renders scatter
- Server service → FastAPI endpoints: calls API
- FastAPI endpoints → Light-curve analysis: analyzes curve
backend/server.py - FastAPI endpoints → Neural burst scoring: scores bursts
backend/server.py - FastAPI endpoints → Neural burst scoring: trains model
backend/server.py - Light-curve analysis → N-sigma detection: detects bursts
models/stat/lc.py - Light-curve analysis → Local-maxima detection: detects bursts
models/stat/lc.py - Light-curve analysis → Energy-flux fitting: fits flux
models/stat/lc.py - Light-curve analysis → Burst properties: derives properties
models/stat/lc.py