cwatm module

Note

Base module: run with settings file e.g. python cwatm.py settings.ini

-------------------------------------------------
######## ##          ##  ####  ######  ##    ##
##       ##          ## ##  ##   ##   ####  ####
##        ##        ##  ##  ##   ##   ## #### ##
##        ##   ##   ## ########  ##  ##   ##   ##
##         ## #### ##  ##    ##  ##  ##        ##
##         ####  #### ##      ## ## ##          ##
##########  ##    ##  ##      ## ## ##          ##

Community WATer Model

CWATM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

CWATM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details <http://www.gnu.org/licenses/>.

# ————————————————–

cwatm3.CWATMexe()[source]

Base subroutine of the CWATM model

  • parses the settings file

  • read the information for the netcdf files

  • check if dates are alright

  • check flags for screen output

  • runs the model

class cwatm3.CWATModel[source]

Bases: cwatm_initial.CWATModel_ini, cwatm_dynamic.CWATModel_dyn

Initial and dynamic part of the CWATM model

  • initial part takes care of all the non temporal initialiation procedures

  • dynamic part loops over time

dynamic()

Dynamic part of CWATM calls the dynamic part of the hydrological modules Looping through time and space

Note

if flags set the output on the screen can be changed e.g.

  • v: no output at all

  • l: time and first gauge discharge

  • t: timing of different processes at the end

i = 1
cwatm3.GNU()[source]

prints GNU General Public License information

cwatm3.headerinfo()[source]

Print the information on top of each run

this is collecting the last change of one of the source files in order to give more information of the settingsfile and the version of cwatm this information is put in the result files .tss and .nc

cwatm3.usage()[source]

Prints some lines describing how to use this program which arguments and parameters it accepts, etc

  • -q –quiet output progression given as .

  • -v –veryquiet no output progression is given

  • -l –loud output progression given as time step, date and discharge

  • -c –check input maps and stack maps are checked, output for each input map BUT no model run

  • -h –noheader .tss file have no header and start immediately with the time series

  • -t –printtime the computation time for hydrological modules are printed