Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/erdc-cm/RAPIDpy
Browse files Browse the repository at this point in the history
online merge
  • Loading branch information
snowman2 committed Mar 25, 2016
2 parents bd4f106 + e6045b1 commit 0b9ba1a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,21 @@ within a date range associated with the reach you are interested in
This example demonstrates how to get daily streamflow averages as an array
```python
river_id = 500
river_index - qout_nc.get_river_index(river_id)
#CF-Compliant
streamflow_array = qout_nc.get_daily_qout(river_id,
mode="mean", #(optional) default is mean, but max is another option
)
#Original RAPID Qout
streamflow_array = qout_nc.get_daily_qout(river_id,
mode="mean", #(optional) default is mean, but max is another option
steps_per_group=8, #average 8 timesteps together for 1 day
)
#OR if you know the index
river_index = qout_nc.get_river_index(river_id)
#CF-Compliant
streamflow_array = qout_nc.get_daily_qout_index(river_index)
#Original RAPID Qout
streamflow_array = qout_nc.get_daily_qout_index(river_indexd,
streamflow_array = qout_nc.get_daily_qout_index(river_index,
steps_per_group=8, #average 8 timesteps together for 1 day
)
```

0 comments on commit 0b9ba1a

Please sign in to comment.