Skip to content

Commit

Permalink
Edited water use
Browse files Browse the repository at this point in the history
  • Loading branch information
SOloo15 committed Oct 31, 2023
1 parent dd39b62 commit 1e5059e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/water_requirement.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ water_requirement <- function(para,land_required){
kc_average = (kc_initial+kc_midseason+kc_late)/3,
kc_frac = fraction_of_land_required*kc_average,
ET = kc_frac*et,
water_use = ET*sum(area_feed),
water_use = ifelse(is.nan(ET*sum(area_feed)),0,ET*sum(area_feed)),
feed_water_use = ifelse(is.nan(water_use*(1-(area_non_feed/area_total))),0,
(water_use*(1-(area_non_feed/area_total)))),
non_feed_water_use = water_use-feed_water_use,
Expand Down
2 changes: 1 addition & 1 deletion man/compare_scenario.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e5059e

Please sign in to comment.