lp:streamflow

Created by Alex Chiang and last modified
Get this branch:
bzr branch lp:streamflow
Only Alex Chiang can upload to this branch. If you are Alex Chiang please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Alex Chiang
Project:
streamflow
Status:
Development

Recent revisions

4. By Alex Chiang

Fix metric calculations, properly taking "no data" days into account

We allow days with no stream flow into our data set. However, we must
properly handle them when calculating our metrics.

We can't add a python None data type to a floating point, so add a few
checks to ensure we won't blow up when we encounter a day without data.
Adjust the calculation for the average daily flow accordingly; a day
without data shouldn't be considered when calculating the average.

3. By Alex Chiang

Treat no data days differently from zero flow days

Previously, we were treating days without data as equivalent to days
with zero flow. This was incorrect; in fact we care very much about
days with zero flow.

Stop treating a "no data" day as a zero flow day.

Additionally, since we are interested in taking a yearly view of the data
we now throw away the years that have >= 5 days without data.

These changes make several of our other calculations easier. Since we
are interested in zero flow days, we allow 0.0 to be a valid value for
the annual minimum flow, and no longer have to do a silly dance when
calculating that metric.

2. By Alex Chiang

Calculate on water year boundary, not calendar year

Simple hack to ensure we calculate data based on water year.

1. By Alex Chiang

Initial commit

Analyze USGS gage data, looking for annual minimum flow, average daily
flow, and number of zero flow days.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers