Frequently Asked Questions (FAQ)¶
Installation and Setup¶
Q: How do I install hydroutils?¶
A: The easiest way is using pip:
1 | |
For the latest development version:
1 | |
Q: What Python versions are supported?¶
A: hydroutils supports Python 3.8 and higher. We recommend using Python 3.10 or later for the best performance and compatibility.
Q: I'm getting import errors. What should I do?¶
A: First, ensure all dependencies are installed:
1 | |
If you're still having issues, try installing in a fresh virtual environment:
1 2 3 | |
Usage Questions¶
Q: How do I calculate basic hydrological statistics?¶
A: Use the stat_error function:
1 2 3 4 5 6 7 8 9 | |
Q: Can I handle missing data (NaN values)?¶
A: Yes, most functions automatically handle NaN values by excluding them from calculations:
1 2 3 4 5 | |
Q: How do I convert between different flow units?¶
A: Use the streamflow_unit_conv function:
1 2 3 | |
Q: What performance metrics are available?¶
A: hydroutils provides many standard hydrological metrics:
- NSE: Nash-Sutcliffe Efficiency
- KGE: Kling-Gupta Efficiency
- RMSE: Root Mean Square Error
- Bias: Mean Error
- Corr: Pearson Correlation Coefficient
- R2: Coefficient of Determination
- FHV/FLV: High/Low Flow Volume metrics
Data Processing¶
Q: How do I process multiple time series at once?¶
A: Use the stat_errors function for batch processing:
1 2 3 4 5 6 7 8 9 | |
Q: Can I work with pandas DataFrames?¶
A: Yes, you can easily work with pandas DataFrames:
1 2 3 4 5 6 7 8 | |
Q: How do I handle different time intervals?¶
A: Use the time processing functions:
1 2 3 4 5 6 | |
Visualization¶
Q: How do I create basic plots?¶
A: Use the hydro_plot module:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
Q: Can I customize plot appearance?¶
A: Yes, hydroutils provides several styling options:
1 2 3 4 5 | |
Advanced Features¶
Q: How do I use AWS S3 integration?¶
A: First configure your AWS credentials, then use S3 functions:
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Q: How do I enable logging for my analysis?¶
A: Use the logging utilities:
1 2 3 4 5 6 7 8 9 10 11 | |
Troubleshooting¶
Q: I'm getting unexpected NSE values. What could be wrong?¶
A: Check these common issues: 1. Data alignment: Ensure observed and simulated data have the same time periods 2. Missing values: Make sure missing data is properly handled 3. Data quality: Check for outliers or unrealistic values 4. Array dimensions: Verify that arrays have the same shape
1 2 3 4 5 | |
Q: Why am I getting poor performance metrics?¶
A: Consider these factors: 1. Model quality: The underlying model may need improvement 2. Data period: Performance can vary by season or flow conditions 3. Metric selection: Different metrics emphasize different aspects of performance 4. Data preprocessing: Check if data normalization or transformation is needed
Q: Functions are running slowly. How can I improve performance?¶
A: Try these optimization strategies: 1. Use appropriate data types: Convert to float32 if high precision isn't needed 2. Process in chunks: For very large datasets, process data in smaller chunks 3. Vectorize operations: Use NumPy operations instead of loops 4. Consider memory usage: Monitor memory consumption for large arrays
1 2 3 4 5 6 7 8 | |
Getting Help¶
Q: Where can I find more examples?¶
A: Check these resources: 1. Usage Guide: Detailed examples in the Usage section 2. API Documentation: Complete function reference in API Reference 3. GitHub Examples: Example notebooks in the repository 4. Community: Ask questions in GitHub Issues
Q: How do I report bugs or request features?¶
A: Please use the GitHub Issues: 1. Bug Reports: Create a bug report 2. Feature Requests: Request a new feature 3. Questions: Use the Discussions section
Q: Can I contribute to the project?¶
A: Yes! We welcome contributions. See the Contributing Guide for details on: - Setting up a development environment - Code style guidelines - Testing requirements - Submitting pull requests
Q: Is there a citation for academic use?¶
A: Yes, if you use hydroutils in academic research, please cite:
1 2 3 4 5 6 7 | |
Still Need Help?¶
If your question isn't answered here:
- Search existing issues: GitHub Issues
- Ask a question: GitHub Discussions
- Email support: [Contact Information]
We're here to help you succeed with your hydrological analysis!