A comprehensive web application for statistical analysis of precipitation data, built with React and designed for civil and water resources engineers.
- Multiple Input Methods:
- Manual entry with editable table
- Paste data from clipboard (tab or comma-separated)
- Pre-loaded sample datasets
- Data Types Supported:
- Daily maximum annual rainfall
- Monthly rainfall totals
- Annual rainfall totals
- Data Validation: Minimum 10 data points required
- Formula: XT = XΜ + K Γ SD
- Uses standard normal frequency factors
- Suitable for symmetric data
- Formula: XT = XΜ + K Γ SD where K = (YT - Yn) / Sn
- Widely used for extreme rainfall analysis
- Yn and Sn parameters based on sample size
- Transforms data to logarithmic space
- Formula: log XT = log XΜ + K Γ SD(log X)
- Good for positively skewed data
- Recommended by USGS for flood frequency analysis
- Accounts for skewness coefficient (Cs)
- Uses frequency factor KT from statistical tables
- Calculates short-duration rainfall intensity
- Formula: I = (R24/24) Γ (24/t)2/3
- Generates IDF (Intensity-Duration-Frequency) curves
- Durations: 1, 2, 3, 4, 5, 6, 8, 12, and 24 hours
- Tests frequency distribution fit
- Formula: ΟΒ² = Ξ£[(Oi - Ei)Β²/Ei]
- 5% significance level
- Pass/fail indicators with critical values
- Tests cumulative distribution fit
- Formula: Ξmax = max|F(x) - Fo(x)|
- Critical value: Ξcr = 1.36 / βn
- Visual pass/fail indicators
- Input Data Bar Chart - View your rainfall data
- Frequency Histogram - Distribution of rainfall values
- Return Period Curves - Compare all distribution methods
- IDF Curves - Intensity-Duration-Frequency relationships
- Statistical Coefficients Chart - Cv, Cs, Ck visualization
- Summary statistics (N, mean, SD, Cv, Cs, Ck)
- Design rainfall for return periods: 2, 5, 10, 25, 50, 100 years
- Detailed method comparison tables
- Mononobe intensity results
- Goodness of fit test results with recommendations
- Download results as CSV file
- Includes all statistical analysis
- Date-stamped filename
-
Clone or download the project
-
Install dependencies:
npm install
-
Start development server:
npm run dev
-
Open in browser: Navigate to
http://localhost:3000
- Select data type (Daily, Monthly, or Annual)
- Choose input method:
- Manual Entry: Add rows and enter data
- Paste Data: Copy from Excel/CSV and paste
- Sample Data: Use pre-loaded datasets for testing
- Click "Analysis Results" tab
- Review summary statistics
- Compare design rainfall from all methods
- Examine detailed calculations for each distribution
- Click "Goodness of Fit" tab
- Review Chi-Square test results
- Review Kolmogorov-Smirnov test results
- See recommended distribution method
- Click "Visualizations" tab
- Explore various charts and plots
- Assess fit quality visually
- Review IDF curves
- Click "Export Results" button
- CSV file downloads automatically
- Use in reports or further analysis
- React 18 - UI framework
- Vite - Build tool and dev server
- Tailwind CSS - Styling
- Recharts - Data visualization
- Lucide React - Icons
All calculations follow standard hydrological engineering practice and references:
- Chow, V.T., Maidment, D.R., and Mays, L.W. (1988). Applied Hydrology
- USGS Bulletin 17B/17C - Flood Flow Frequency Guidelines
- WMO Technical Notes on Hydrological Frequency Analysis
rainfall-analysis/
βββ src/
β βββ components/
β β βββ DataInput.jsx # Data entry component
β β βββ ResultsTables.jsx # Results display
β β βββ GoodnessOfFitTests.jsx # Test results
β β βββ Charts.jsx # Visualizations
β βββ data/
β β βββ sampleData.js # Sample datasets
β βββ utils/
β β βββ statistics.js # All statistical calculations
β βββ App.jsx # Main application
β βββ main.jsx # Entry point
β βββ index.css # Global styles
βββ package.json
βββ vite.config.js
βββ tailwind.config.js
βββ postcss.config.js
- Ensures minimum sample size (n β₯ 10)
- Validates positive rainfall values
- Warns about data quality issues
- Clear tables with units
- Color-coded test results
- Formatted statistical coefficients
- Export-ready CSV format
- Click "Methodology" button for formulas
- Tooltips explain statistical terms
- References to standard practice
- Interpretation guidance
- Chrome (recommended)
- Firefox
- Edge
- Safari
npm run buildnpm run previewThis project is provided for educational and professional use in hydrological engineering.
For issues or questions about hydrological methods, refer to standard textbooks and engineering manuals listed in the Methodology section.
Version: 1.1.0
Last Updated: November 2025
Built for: Civil & Water Resources Engineers