pik-piam / magpie4

R package | MAgPIE outputs R package for MAgPIE version 4.x
GNU Lesser General Public License v3.0
1 stars 23 forks source link

Inf in Productivity variables #70

Open orichters opened 3 days ago

orichters commented 3 days ago

Some runs are -Inf in Productivity|Land for Food Production for JPN. The reason seems to be this line in combination with yields being 0:

gdx <- "/p/tmp/oliverr/NGFS_v5/remind-3p3p1/magpie/output/C_h_cpol-mag-4/fulldata.gdx"
yield <- yields(gdx, level = "regglo", products = "kcr", product_aggr = FALSE, attributes = "dm", water_aggr = TRUE)

Maybe Inf can be replaced by NA? Tagging @tscheypidi as he may know who can have a look.