Skip to content

Fix NK fertiliser high-pH NH3 EF using wrong list index (7=MAP → 8=NK)#9

Open
mklarmann wants to merge 1 commit into
agroscope-ch:mainfrom
mklarmann:fix/nk-nh3-ef-index
Open

Fix NK fertiliser high-pH NH3 EF using wrong list index (7=MAP → 8=NK)#9
mklarmann wants to merge 1 commit into
agroscope-ch:mainfrom
mklarmann:fix/nk-nh3-ef-index

Conversation

@mklarmann

Copy link
Copy Markdown

The fertiliser list is 0-indexed as 7=MAP, 8=NK. Every ef_* pair uses the same index on the low-pH and high-pH lists except NK, whose high-pH term used index 7 (MAP) while the low-pH term correctly used 8 (NK). For NK fertilisers at higher soil pH this took the high-pH contribution from MAP instead of NK. This uses index 8.

Fixes #4

The fertiliser list is 0-indexed as 7=MAP, 8=NK. Every ef_* pair uses the same
index on the low-pH and high-pH lists except NK, whose high-pH term used index 7
(MAP) while the low-pH term correctly used 8 (NK). For NK fertilisers at higher
soil pH this took the high-pH contribution from MAP instead of NK. Use index 8.

Fixes agroscope-ch#4
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.

NK-fertiliser high-pH NH3 EF uses wrong list index (7=MAP instead of 8=NK) (SALCAfield_field.py:829-830)

1 participant