Skip to content

Conversation

@codeZeilen
Copy link
Member

During working on the NAs in the weekly pipeline tests @georgsc and I found another issue related to the LUH3 update. calcGlobalSafetyNet results in NAs. The start of the computations that lead to the NAs is a negative Urban land area, resulting from (calcGlobalSafetyNetL57)

    landNoUrban <- setYears(landArea, "y2020") - setCells(urbanLand[, "y2020", "SSP2"], getCells(landArea))

This subtraction is actually somewhat bogus, as landArea contains land areas from 2015 (hence the setting of the years). This was valid up to the LUH3 update as urbanLand only included "real" data until 2015 and then held the value constant. So the 2020 value used in the subtraction is actually a 2015 value. With the LUH3 update calcUrbanLandFuture was updated and now contains "real" 2020 data, thus we deduct 2020 urban land area from 2015 land area, which in this case leads to a negative value.

…esulting from inconsistent LUH years being used after LUH3 update
@codeZeilen codeZeilen requested a review from pvjeetze October 13, 2025 13:38
@codeZeilen codeZeilen merged commit 5db7b0c into pik-piam:master Oct 13, 2025
1 check passed
@codeZeilen codeZeilen deleted the fix/nas-in-conservation-functions branch October 13, 2025 14:13
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.

1 participant