Explanation of entries in the initialization file, thresh_in.txt, for the program thresh

Descriptor and sample entry Variable name Type Range Explanation
Number_Of_Stations,4 numStations Integer 1–99 Number of rainfall stations to be analyzed, a separate input data file for each station must be listed at the end of the initialization file
Number_Of_Data_Lines, 9600 maxLines Integer >1 Maximum number of lines of data appearing in any of the data files. Used to set array lengths
Readings_Per_Hour, 1 rph Integer 1–60 Number of times per hour that rainfall data are recorded. For example, enter 1 for hourly data and 4 for 15-minute data
Precipitation_Unit, in precipUnit Character (len=2) in, mm Units of precipitation in input data files
Recent_Hours, 72 Trecent Integer ≥0 Applies to the cumulative recent and antecedent (RA) precipitation threshold , determines the number of hours of data for computing the recent rainfall (24R, eq. 5)
Antecedent_Hours, 360 Tantecedent Integer ≥0 Determines the number of hours of data for computing the antecedent rainfall for the cumulative recent and antecedent precipitation threshold (24A hours, eq. 5); may be 0 (zero) for simple cumulative thresholds
Intensity_Hours, 0 Tintensity Real ≥0. Determines number of hours used in computing a running average intensity, such as a 6-hour average intensity; default value, 0, results in computing storm-average intensity
Hours_Between_Storms, 3 minTStormGap Real >0. Determines the number of hours of no rainfall needed to separate storms in computing the intensity duration threshold
Running_Ave_Intensity_Hours, 6 TavgIntensity Real >0. Number of hours used in computing a running average rainfall intensity
Gap_Length, 9000 maxDataGap Integer ≥0 Maximum length in number of lines of data for gaps in the data; if set to 0 (zero), program will set to a minimum value needed to ensure operation depending on other parameters.
Long_Plot_Window_Hours, 360 numPlotPoints Integer >1 Number of values saved to a text file formatted for use by plotting routines
Short_Plot_Window_Hours, 36 numPlotPoints2 Integer >1 Number of values saved to a second text file formatted for use by plotting routines
Slope_RA_Threshold, -0.67 slope Real ≤0 Slope used in defining the cumulative recent and antecedent precipitation (RA) threshold; may be negative or 0 (zero) for simple cumulative thresholds
Intercept_RA_Threshold, 3.5 intercept Real ≥0 Intercept used in defining the cumulative recent and antecedent precipitation (RA) threshold
Power_Law_Defined_Intensity_Duration, .TRUE. powerSwitch Logical .True., .False. Used to determine whether the power law will be chosen to calculate intensity-duration thresholds
Coeff_Int_Dur_Threshold, 3.257 powerCoeff Real >0 Coefficient used in defining a power function for the intensity duration threshold
Exponent_Int_Dur_Threshold, -1.13 powerExp Real <0 Exponent used in defining power function for the intensity duration threshold
Duration_Interval, 0,60 lowLim, upLim Real ≥0 Determines the lower and upper duration limits (hours) for intensity-duration thresholds (if the power law is used)
Polynomial_Defined_Intensity_Duration, .FALSE. polySwitch Logical .True., .False. Used to determine whether the intensity-duration thresholds will be defined by a fifth degree polynomial
5th_Deg_Polynom_Coefficients, 0.464559, -0.0373087, 0.00150227, -0.000032942, 0.000000375634, -0.000000000174586 polynomArr Real any real number Coefficients of the fifth degree polynomial used to represent rainfall intensity and duration thresholds that are not adequately modeled by a power function
Duration Interval, 0,60 lowLim, upLim Real ≥0 Determines the lower and upper limits for intensity-duration thresholds (if a polynomial is used)
Pointwise_Defined_Intensity_Duration, .FALSE. interSwitch Logical .True., .False. Used to determine whether the intensity-duration thresholds will be defined by linearly interpolating points
Number_Of_Interpolating_Intervals, 5 intervals Integer 0–100 The number of linearly interpolating intervals chosen by the user
Threshold_unit, in thresholdUnit Character (len=2) in, mm Precipitation depth units used to define the thresholds
Reset_antecedent_month_&_day, 0,0 resetAntMonth,resetAntDay Integer, integer 0–12, 0–31 The day and month to start annual antecedent rainfall running total
Seasonal_Antecedent_Threshold, 10,in seasonalAntThresh, SATunit Real, Character ≥0, in, mm The value chosen for the seasonal antecedent threshold and its length units (either inches, in, or millimeters, mm)
Run_Ave_Int_Threshold, 0.12 runningIntens Real ≥0 Value of a running average intensity threshold
AWI_Threshold, 0.02 AWIThresh Real >-1*(Field Capacity) Threshold value for antecedent water index (AWI) in same units as field capacity
Ant_Water_Index_Field_Cap, 0.18, mt fieldCap, fcUnit Real, character >0 ft, mt Field capacity of soil and length unit (ft=feet, or mt=meters) used in computing the AWI
AWI_drainage_Constant, 0.01 drainConst Real ≥0 Drainage constant, in units compatible with field capacity, used in computing the antecedent water index (AWI)
Hourly_Evap_Consts, 0.054, 0.11, 0.2, 0.43, 0.54, 0.68, 0.72, 0.71, 0.47, 0.17, 0.076, 0.045 evapConst Real array ≥0 Hourly evapotranspiration constants for each month of the year from January through December. Note that these must be in same units as raw precipitation input, either hundredth of an inch or tenth of a millimeter.
TimeZoneOffset,0 timezoneOffset Integer -23–23 Number of hours difference between the time zone of the computer performing computations (or Universal time) and the area of observation; may be 0 (zero) in statistics mode
year, 0 year Integer 0–9999 The current year or the year of the data being analyzed. Set to 0 (zero) if the input data file contains year information
Midnight=2400, 2 midnightVal Integer 1, 2 A flag used to compensate for differences in timestamps of different data collection systems. Set to 0 (zero) if midnight=0:00 or 2 if midnight = 24:00.
PlotFormat, gnp2 plotFormat Character (len=4) gnp1, gnp2, dgrs Plot file formats are ASCII text, the different options are suited to plotting routines in common use. The choices are "gnp1," "gnp2," and "dgrs." Option gnp1 is used for plotting current conditions in real-time mode. Option gnp2 is used for plotting time-series using gnuplot or the data can be imported to a spreadsheet program for plotting. Option dgrs is used for plotting timeseries using interactive graphing packages and spreadsheet programs.
Statistics?, .FALSE. stats Logical .True., .False. A logical variable used to switch statistical computations on (.true.) or off (.false.)
Forecast?, .FALSE. forecast Logical .True., .False. A logical variable used to determine if the data provided is a forecast or current. If "forecast" is true, then "statistics" must be set to false.
NameOfOutputFolder, 'C:\Users\user\Documents\thresh\data\' outputFolder Character (len=255) any valid path name Path name of the folder where output files are to be placed. Absolute or relative paths may be used, up to 255 characters long. Final character must be "/" (Unix/Linux) or "\" (Windows). For best results, put path name between quotes.
ListOfStationNumbers_Localities_InputFiles junk Character (len=31) -- Descriptive heading for list of station numbers, station names, and data input files that follow on succeeding lines
01, 'Seattle/Boeing Field', 'KBFI_t.txt'
02,'Everett/Paine Field','./KPAE_t.txt'
03,'Seattle-Tacoma Airport','./KSEA_t.txt'
04,'Tacoma Narrows','./KTIW_t.txt'
tempStatNum(), tempStatLoc(), tempDatLoc() Integer array, Character array (len=50), Character array (len=255) 00–99 Station number (tempStatNum), station name or location (tempStatLoc), and path name (tempDatLoc) of corresponding data file; this pattern is repeated on each succeeding line for the remaining rainfall stations. For National Weather Service stations, use the last two digits of the NWS Station number. Station numbers are not required to be in numerical order. The station name can be either a formal name or if none exists a descriptive name based on location. File path names can be either full or relative, depending on their relation to the present working directory.