Field Data Collection Planning
Example Prompt:
Example Response:
Related Tasks:
Hydrological Data Analysis
Example Prompt:
Example Response:
import pandas as pd
data = pd.read_csv('path_to_file.csv')
print(data.info())
print(data.describe())
import matplotlib.pyplot as plt
plt.plot(data['Date'], data['Water_Level'])
plt.title('Water Level Over Time')
plt.xlabel('Date')
plt.ylabel('Water Level')
plt.show()
from statsmodels.tsa.seasonal import seasonal_decompose
decomposition = seasonal_decompose(data['Water_Level'], model='additive', period=12)
decomposition.plot()
plt.show()
from scipy import stats
z_scores = stats.zscore(data['Water_Level'])
anomalies = data[(z_scores > 3) | (z_scores < -3)]
print(anomalies)
Related Tasks:
Hydrological Modeling Assistance
Example Prompt:
Example Response:
import numpy as np
import matplotlib.pyplot as plt
# Parameters
rainfall_intensity = 50 # mm/hr
area = 1000 # area of the watershed in square meters
runoff_coefficient = 0.3 # dimensionless (0 < C < 1)
# Calculate peak runoff (Q) using the Rational Method
# Q = C * I * A
# where Q = peak runoff (m^3/s), C = runoff coefficient, I = rainfall intensity (m/s), A = area (m^2)
# Convert rainfall intensity from mm/hr to m/s
rainfall_intensity_m_s = rainfall_intensity / 3600 / 1000
# Calculate peak runoff
peak_runoff = runoff_coefficient * rainfall_intensity_m_s * area
# Print the result
print(f'Peak Runoff: {peak_runoff:.2f} m^3/s')
# Optional: Visualize the relationship between rainfall intensity and peak runoff
intensities = np.linspace(0, 100, 100) # Rainfall intensities from 0 to 100 mm/hr
peak_runoffs = runoff_coefficient * (intensities / 3600 / 1000) * area
plt.plot(intensities, peak_runoffs)
plt.title('Rainfall Intensity vs. Peak Runoff')
plt.xlabel('Rainfall Intensity (mm/hr)')
plt.ylabel('Peak Runoff (m^3/s)')
plt.grid()
plt.show()
Related Tasks:
Report Generation
Example Prompt:
Example Response:
Related Tasks:
Public Communication Strategy
Example Prompt:
Example Response:
Related Tasks: