Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added m to mm conversion in mm/d calculation #94

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rvic/core/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def __init__(self, time_ord, caseid, rvar, tape_num=0,
self._units_mult = grid_area[self._outlet_y_ind,
self._outlet_x_ind]
self._units_mult *= SECSPERDAY
self._units_mult /= WATERDENSITY
# divide by water density (1000 kg/m3) and multiply by
# 1000 mm/m gives 1 mm * m2 / kg
self._units_mult /= self._outlet_upstream_area
elif units in ['gal/day', 'gpd', 'gal d-1']:
self._units_mult = grid_area[self._outlet_y_ind,
Expand Down