cuwalid.storm package
Submodules
cuwalid.storm.checks_ module
cuwalid.storm.main_storm module
cuwalid.storm.parameters module
Parameters in this block define the type, (temporal) extend, and a couple of climatic/meterological conditions of the desired RUN. The parameters set up here will be the default input of STORM. You can either modify/tweak them here (thus avoiding passing them again when running STORM from the command line) or passing/defining them righ from the command line whe running STORM. For an ‘in-prompt’ help (on these parameters) type:
“python storm.py -h” (from your CONDA environment or Terminal) “%%python storm.py -h” (from your Python console)
- cuwalid.storm.parameters.DATE_ORIGIN = '1970-01-01'
SEASONS_MONTHS = [[6,10], None] (equal to Z_CUTS) corresponds to the period (and season!) for which all the parametric functions found in ‘…/ProbabilityDensityFunctions.csv’ were computed. Hence, when you modify this variable (for whatever your needs), please carry out all the respective (stochastic) analyses correspond for the period you want to model.
- cuwalid.storm.parameters.MAX_DUR = 5760
MAX_DUR and MIN_DUR constraints the storm-duration of the sampled pairs from the intenstity-duration copula.
- cuwalid.storm.parameters.NREGIONS = 3
NREGIONS ==1 means no splitting at all!. The model still ‘splits’ the region into 1 big area equal to the catchment.
- cuwalid.storm.parameters.STORMINESS_SF = [0.0]
Parameters in this block define the input and output files (paths), and the spatio-temporal characteristics of the domain over which STORM will run. Unlike the parameters set up in the previous block, these parameters cannot be passed from the command line. Therefore, their modification/tweaking must carried out here.
- cuwalid.storm.parameters.Y_RES = 5000.0
BUFFER extends the catchment boundary (some given distance), thus delimiting the area for which the storm centres are generated (within). The extension (bounding-box) of this ‘buffer’ defines too the limits of the rainfall fields, namely, the Area Of Interest (aoi).
- cuwalid.storm.parameters.Z_CUTS = [300, 600, 1200]
Z_CUTS = [1350, 1500] are from the analysis carried out in the ‘pre_processing.py’ module. They imply 3 altitude-bands, namely, [0, 1350), [1350, 1500), [1500, 9999), for which the Intensity-Duration copulas were established. Hence, modyfing this variable without a copula (re-)analysis, for the desired/updated bands, will still yield results!; nevertheless, such results won’t be representative of the parametric functions/statistics found in ‘…/ProbabilityDensityFunctions.csv’.
cuwalid.storm.pdfs_ module
cuwalid.storm.rainfall module
cuwalid.storm.storm module
- To run this script type:
“python storm.py” (from your CONDA environment or Terminal) “%%python storm.py” (from your Python console)
- cuwalid.storm.storm.compute_storm(one, two)[source]
calls scripts in ‘rainfall.py’ so STORMS can be computed.
- Parameters:
one (argparse.Namespace; parameters read from the command prompt.)
two (list; simulation output-paths.)
- Returns:
None
- Return type:
produces nc.files.