Skip to content

Croparea update - #41

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

Croparea update#41
FelicitasBeier wants to merge 19 commits into
pik-piam:masterfrom
FelicitasBeier:cropareaUpdate

Conversation

@FelicitasBeier

Copy link
Copy Markdown
Contributor

Updated croparea to LandInG data

@bodirsky

This comment was marked as resolved.

FelicitasBeier and others added 10 commits August 7, 2026 11:31
lintr object_name_linter requires camelCase. Local variable in one function, both occurrences renamed; grep confirms none left and the name is not used across file boundaries. Addresses review finding m9.
The FAOValidYields branch was renamed to MadratLandInGFAOLUH, but three
strings still said FAO:

- the roxygen @PARAM, which had never documented this branch at all and
  then briefly named the intermediate spelling
- sourceName, which line 76 stamps into the output as the model name, so
  the published Tau series still claimed FAO provenance
- the description, which said "based on FAO yield trends" although the
  yields are FAO production over LandInG croparea

Also passes the datasource explicitly to calcValidYield and builds the
subscript from the same string, instead of hardcoding the model name in a
subscript that silently depended on a default in another file. That
coupling is what broke when the datasource was renamed.
@FelicitasBeier

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