diff --git a/src/core/financial.jl b/src/core/financial.jl index 273b84e15..3ef32ba3f 100644 --- a/src/core/financial.jl +++ b/src/core/financial.jl @@ -249,6 +249,9 @@ function easiur_costs(latitude::Real, longitude::Real, grid_or_onsite::String) EASIUR_data = nothing try EASIUR_data = get_EASIUR2005(type, pop_year=2020, income_year=2020, dollar_year=2010) + if type == "p150" + print("\nEASIUR_data['NOX_Annual']: ", EASIUR_data["NOX_Annual"][10,10], "\n") + end catch e @warn "Could not look up EASIUR health costs from point ($latitude,$longitude). {$e}" return nothing @@ -264,9 +267,9 @@ function easiur_costs(latitude::Real, longitude::Real, grid_or_onsite::String) USD_2010_to_2020 = 1.246 try costs_per_tonne = Dict( - "NOx" => EASIUR_data["NOX_Annual"][x - 1, y - 1] .* USD_2010_to_2020, - "SO2" => EASIUR_data["SO2_Annual"][x - 1, y - 1] .* USD_2010_to_2020, - "PM25" => EASIUR_data["PEC_Annual"][x - 1, y - 1] .* USD_2010_to_2020 + "NOx" => EASIUR_data["NOX_Annual"][x, y] .* USD_2010_to_2020, + "SO2" => EASIUR_data["SO2_Annual"][x, y] .* USD_2010_to_2020, + "PM25" => EASIUR_data["PEC_Annual"][x, y] .* USD_2010_to_2020 ) return costs_per_tonne catch @@ -506,3 +509,5 @@ function easiur_data(; latitude::Real, longitude::Real, inflation::Real) end return response_dict end + +print("\nTEST!!!: ", easiur_data(;latitude=30.2672,longitude=-97.7431,inflation=0.025)["NOx_grid_cost_per_tonne"]) \ No newline at end of file