Skip to content

Croparea update - #67

Draft
FelicitasBeier wants to merge 24 commits into
pik-piam:masterfrom
FelicitasBeier:cropareaUpdate
Draft

Croparea update#67
FelicitasBeier wants to merge 24 commits into
pik-piam:masterfrom
FelicitasBeier:cropareaUpdate

Conversation

@FelicitasBeier

Copy link
Copy Markdown
Contributor

Croparea update to LandInG and replacing LUH3 calls with LandUseInitialisation.

bodirsky and others added 19 commits April 10, 2026 14:00
Merge branch 'master' into cropareaUpdate

# Conflicts:
#	.buildlibrary
#	CITATION.cff
#	DESCRIPTION
#	README.md
Merge branch 'master' into cropareaUpdate

# Conflicts:
#	.buildlibrary
#	CITATION.cff
#	DESCRIPTION
#	README.md
Merge branch 'master' into cropareaUpdate

# Conflicts:
#	.buildlibrary
#	CITATION.cff
#	DESCRIPTION
#	README.md
@bodirsky

This comment was marked as resolved.

bodirsky and others added 4 commits August 7, 2026 12:10
The aggregationlevel == "iso" branch called toolAggregate() as a bare
expression and discarded the result, leaving out undefined. Since "iso" is
the default, calcOutput("AreaActuallyIrrigated") failed with
"object 'out' not found"; only the else branch ever returned.

Assign the aggregation to out, matching the else branch and the documented
return value.

Addresses review finding m4.
Merge branch 'master' into cropareaUpdate

# Conflicts:
#	.buildlibrary
#	CITATION.cff
#	DESCRIPTION
#	README.md
Changes values, not just tidying: reported irrigated area goes down.

Irrigated fallow area was being summed into the irrigated total. Because
mrlandcore calcCroparea imputes fallow's irrigation split from each cell's
overall irrigation share, every cell with fallow land and any irrigated
cropland contributed, so the reduction is broad rather than rare. Per the
author's decision, AreaActuallyIrrigated should not include fallow.

Also drops round = 6, which perturbs the last decimals on top of that.

Unquantified - madrat was not run. The check that would settle it is to
compare dimSums(calcOutput("AreaActuallyIrrigated", aggregate = FALSE),
dim = 1) per year, before and after.

Addresses review finding m3.
@FelicitasBeier

FelicitasBeier commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

All issues raised by AI reviewer have been addressed. I will mark the comment as "resolved" to not confuse human reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants