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

add wood production/harvest area #51

Closed pfuehrlich-pik closed 5 months ago

flohump commented 6 months ago

The new function woodHarvestArea is very similar to the existing function harvested_area_timber https://github.com/pik-piam/magpie4/blob/master/R/harvested_area_timber.R Is it possible to extend the functionality of `harvested_area_timber?

pfuehrlich-pik commented 6 months ago

I rewrote harvested_area_timber in a clean, backwards-compatible way, removing the ac_sub subsetting which was probably wrong as discussed with Florian. woodHarvestArea now simply uses harvested_area_timber and returns a magpie object with nicer format (e.g. dimnames). Please have another look @flohump