Home | Trees | Indices | Help |
|
---|
|
The sub-module stream_gauging is used to do all things stream gauging:
Probably it is easiest to go by an example which is located in the folder fieldpy/stream_gauging/example_stream_site_2010/. There look through the script in analyse_it.py which follows the layout below. If you like it, then the best way of using it is to copy the contents of the fieldpy/stream_gauging/template/ folder to where you have your data and edit it accordingly.
The stage measurements are done by the SR50 ultrasonic depth gauge.
Workflow stage measurements:
st = Stage([filenames_of_TOA5_file])
The conductivity measurements are done by Garry Clarke's home made conductivity sensor. Note that the sensor reading is not the actual conductivity but the ratio between measured and excitation voltage.
Workflow conductivity measurements:
ec = Conductivity([filenames_of_TOA5_file])
This is handled by the classes in calibration.
Workflow calibration:
#maw 1st Conductivity Calibration 13 July 2010 # # Calibration of the older conductivity sensor in the proglacial river of # GL1 on 13 July at 10:30. # # Note: Times in calibration are not accurate. # # Calibration was done by premixing 20g NaCl in 2L of water, to get a 10g/L solution. # This solution was then added into a 5000mL bucket of water, in the steps written below. # # Metadata: #metadata.experimenter = 'MAW + UM' #metadata.bucket_size = 5.0 #metadata.bucket_size_units = 'l' #metadata.calibaration_solution_concentration = 10.0 #metadata.calibaration_solution_concentration_units = 'g/l' #metadata.sensor = 'older Garry sensor' #metadata.reference_resistor = 10e3 #metadata.reference_resistor_units = 'Ohm' #metadata.note = 'Times in calibration are not accurate' # # Format: # time (UTC-7) [time_str], calibration_solution (ml) [float], sensor_readout () [float] "2010-07-13 10:30:00",0, 0.3030 "2010-07-13 10:31:00",1.25, 0.2965 "2010-07-13 10:32:00",2.5, 0.2890 "2010-07-13 10:33:00",3.75, 0.2815 "2010-07-13 10:34:00",5, 0.2730 "2010-07-13 10:35:00",7.5, 0.2595 "2010-07-13 10:36:00",10, 0.2500 "2010-07-13 10:37:00",15, 0.2320 "2010-07-13 10:38:00",20, 0.2175 "2010-07-13 10:39:00",25, 0.2055 "2010-07-13 10:40:00",30, 0.1945 "2010-07-13 10:41:00",35, 0.1860 "2010-07-13 10:42:00",40, 0.1760 "2010-07-13 10:43:00",45, 0.1685 "2010-07-13 10:44:00",50, 0.1620
ac = AllCalibartions(list_of_calibration_files)
The dilution gauging will consist of individual salt injections recorded as conductivity change of the water. This is translated into a concentration with the help of the calibration. Then the concentration is related to the discharge via:
M / ∫ c dt = Q
where M is the amount of injected salt, c is the concentration and Q is the discharge.
Workflow dilution gauging:
#maw Dilution gauging injections from 13 July 2010 # # Metadata: #metadata.experimenter = 'MAW + UM' #metadata.injection_point = "MAW's injection point" #metadata.sensor = 'older Garry sensor' # # Format: # time (UTC-7) [time_str], amount (kg) [float] "2010-07-13 09:07:00", 0.2 "2010-07-13 09:22:45", 0.4 "2010-07-13 11:17:00", 0.4 "2010-07-13 13:16:00", 0.4 "2010-07-13 13:16:00", 0.4
dilg = DilutionGauging(injections_maw_file, (0,150), ec, ac, st)
dilg.plot_all()
dilg.make_stage_discharge_relation(verbose_=True, order_of_poly=2)
With the dilution_gauging.DilutionGauging we created a stage-discharge relation for one day of dilution-gauging experiments. But presumably more than one day of dilution gauging was done, so these need to be combined to lead to a stage-discharge relation for the whole season. Which is done with the stage2discharge.Stage2Discharge class.
Workflow stage-discharge relation:
s2d = stage2discharge.Stage2Discharge(xxx)
s2d.plot_all()
Now, finally we are in a position to convert the stage records into a discharge time series.
Workflow discharge time series:
st.set_stage2discharge_method(s2d.stage2discharge)
note you can choose here from different methods (once implemented):
stage2discharge.Stage2Discharge.stage2dis_average
st.make_discharge()
|
|||
|
|
|||
__package__ = None
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Feb 18 11:49:14 2014 | http://epydoc.sourceforge.net |