Agriculture-Within



In [1]:
include("../src/nui.jl");


WARNING: RCall is not installed, so some graphing will not work.  If you have R installed, install RCall with `Pkg.add("RCall")`.
WARNING: Method definition ==(Base.Nullable{S}, Base.Nullable{T}) in module Base at nullable.jl:238 overwritten in module NullableArrays at /Users/jrising/.julia/v0.6/NullableArrays/src/operators.jl:99.
WARNING: Error requiring Juno from Plots:
ArgumentError: Module Hiccup not found in current path.
Run `Pkg.add("Hiccup")` to install the Hiccup package.
┌──────────────────────────────────────────────────┐
    ▄▄    ▄▄      ▄▄    ▄▄       ▄▄▄▄    ▄▄    ▄▄ 
   ████   ██      ██   ████    ▄█▀▀▀▀█   ██    ██ 
   ████   ▀█▄  ▄█▀   ████    ██▄       ██    ██ 
  ██     ██ ██ ██     ██    ▀████▄   ████████ 
  ██████   ███▀▀███   ██████        ▀██  ██    ██ 
 ▄██  █▄  ███  ███  ▄█  ██▄  █▄▄▄▄▄█▀  ██    ██ 
 ▀▀    ▀▀  ▀▀▀  ▀▀▀  ▀▀    ▀▀   ▀▀▀▀▀    ▀▀    ▀▀ 
└──────────────────────────────────────────────────┘

Welcome to AWASH, the America's Water Model, version 0.9.


In [2]:
config = readconfig("../configs/complete.yml")
include("../src/world-minimal.jl")

In [3]:
include("../src/lib/agriculture-years.jl")


Out[3]:
getirrigationperdayarea

In [4]:
recorded = knowndf("exogenous-withdrawals")
irtotal = recorded[:IR_To] * 1383.


Out[4]:
3109-element Array{Float64,1}:
   4066.02     
  53881.7      
   3001.11     
    954.27     
    663.84     
    843.63     
    470.22     
   5656.47     
    276.6      
   1714.92     
   1590.45     
     41.49     
     96.81     
      ⋮        
      2.6241e5 
      2.15458e5
  93477.0      
      4.06146e5
      4.53347e5
      2.65674e5
      2.23603e5
 140900.0      
  34201.6      
      2.93514e5
      2.17076e5
  34395.2      

In [98]:
getirrigationperdayarea(irtotal)


Out[98]:
3109-element Array{Float64,1}:
   0.000622334
   0.00202498 
   0.00149495 
   0.000580986
   8.267e-5   
   0.000820197
   0.00266723 
   0.000987207
 Inf          
   0.000138282
   0.000378904
 Inf          
   5.30466e-5 
   ⋮          
   0.00931078 
   0.0193539  
   0.00809643 
   0.0164619  
   0.0282927  
   0.0106613  
   0.00777427 
   0.015596   
   0.0144158  
   0.0166836  
   0.0208681  
   0.00296658 

In [ ]: