Public Member Functions | |
LSDPorewaterParams () | |
The default constructor. Does nothing. More... | |
LSDPorewaterParams (string paramfile_path, string paramfile_name) | |
Create a SoilHydroRaster by copying an LSDRaster. More... | |
vector< float > | get_Depths () const |
float | get_alpha () const |
float | get_D_0 () const |
float | get_K_sat () const |
float | get_D_hat () const |
float | get_d () const |
float | get_friction_angle () const |
float | get_cohesion () const |
float | get_weight_of_water () const |
float | get_weight_of_soil () const |
void | calculate_beta () |
void | calculate_D_hat () |
This calculates dimensionless diffusivity. More... | |
vector< float > | weeks_to_seconds (vector< float > weeks) |
converts weeks to seconds More... | |
float | weeks_to_seconds (float weeks) |
converts weeks to seconds More... | |
vector< float > | days_to_seconds (vector< float > days) |
converts days to seconds More... | |
float | days_to_seconds (float days) |
converts days to seconds More... | |
vector< float > | seconds_to_weeks (vector< float > seconds) |
converts seconds to weeks More... | |
float | seconds_to_weeks (float seconds) |
converts seconds to weeks More... | |
vector< float > | seconds_to_days (vector< float > seconds) |
converts seconds to days More... | |
float | seconds_to_days (float seconds) |
converts seconds to days More... | |
vector< float > | calculate_steady_psi () |
This calculates a steady state pressure profile. More... | |
void | parse_rainfall_file (string path, string filename, vector< float > &intensities) |
This function parses a rainfall file. It only captures the rainfall rates, which must have the csv header "rainfall_rate". More... | |
void | parse_MIDAS_rainfall_file (string path, string filename, vector< int > &days, vector< float > &intensities) |
This function parses a rainfall file derived from MIDAS. More... | |
void | parse_MIDAS_duration_intensities (vector< int > &days, vector< float > &intensities, vector< float > &durations) |
This function takes data vectors extracted from a parsed MIDAS file (using the parse_MIDAS.py script) and returns an intensity duration record. More... | |
void | print_parameters_to_screen () |
Thes function prints the parameters to screen. More... | |
Protected Attributes | |
vector< float > | Depths |
This holds the depths in metres. | |
float | alpha |
This holds the slope in radians. | |
float | D_0 |
The hydraulic diffusivity in m^2/s. | |
float | K_sat |
The saturated hydraulic conductivity in m/s. | |
float | D_hat |
The dimensionless hydraulic diffusivity. | |
float | d |
The depth to saturated water table at steady infiltration in metres. | |
float | beta |
A parameter that describes the stead state pressure profile. | |
float | Iz_over_K_steady |
The infiltration rate at steady state. | |
float | friction_angle |
The friction andgle. | |
float | cohesion |
The cohesion. | |
float | weight_of_water |
The weigth of water (density time gravity) | |
float | weight_of_soil |
The weight of soil (density times gravity) | |
|
inline |
The default constructor. Does nothing.
|
inline |
void LSDPorewaterParams::calculate_beta | ( | ) |
@ brief Calculates the beta parameter and sets that data member
void LSDPorewaterParams::calculate_D_hat | ( | ) |
This calculates dimensionless diffusivity.
vector< float > LSDPorewaterParams::calculate_steady_psi | ( | ) |
This calculates a steady state pressure profile.
vector< float > LSDPorewaterParams::days_to_seconds | ( | vector< float > | days | ) |
converts days to seconds
weeks | a vector of days |
float LSDPorewaterParams::days_to_seconds | ( | float | days | ) |
converts days to seconds
days |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void LSDPorewaterParams::parse_MIDAS_duration_intensities | ( | vector< int > & | days, |
vector< float > & | intensities, | ||
vector< float > & | durations | ||
) |
This function takes data vectors extracted from a parsed MIDAS file (using the parse_MIDAS.py script) and returns an intensity duration record.
days | a vector of the days in int format of the rainfall measurements |
intensities | the intensity measurements: for MIDAS this is mm/day |
durations | this is replaced with the durations in days of the records |
void LSDPorewaterParams::parse_MIDAS_rainfall_file | ( | string | path, |
string | filename, | ||
vector< int > & | days, | ||
vector< float > & | intensities | ||
) |
This function parses a rainfall file derived from MIDAS.
path | the path to the rainfall file |
filename | the name of the file including extension (but this needs to be a csv file) |
days | the days since 1900. |
intensities | a float vector holding rainfall intensities. |
void LSDPorewaterParams::parse_rainfall_file | ( | string | path, |
string | filename, | ||
vector< float > & | intensities | ||
) |
This function parses a rainfall file. It only captures the rainfall rates, which must have the csv header "rainfall_rate".
path | the path to the rainfall file |
filename | the name of the file including extension (but this needs to be a csv file) |
intensities | a float vector holding rainfall intensities. |
void LSDPorewaterParams::print_parameters_to_screen | ( | ) |
Thes function prints the parameters to screen.
vector< float > LSDPorewaterParams::seconds_to_days | ( | vector< float > | seconds | ) |
converts seconds to days
weeks | a vector of seconds |
float LSDPorewaterParams::seconds_to_days | ( | float | seconds | ) |
converts seconds to days
seconds |
vector< float > LSDPorewaterParams::seconds_to_weeks | ( | vector< float > | seconds | ) |
converts seconds to weeks
seconds | a vector of seconds |
float LSDPorewaterParams::seconds_to_weeks | ( | float | seconds | ) |
converts seconds to weeks
seconds |
vector< float > LSDPorewaterParams::weeks_to_seconds | ( | vector< float > | weeks | ) |
converts weeks to seconds
weeks | a vector of weeks |
float LSDPorewaterParams::weeks_to_seconds | ( | float | weeks | ) |
converts weeks to seconds
weeks | weeks |