Releases: nmi-agro/Open-Bodem-Index-Calculator
Releases · nmi-agro/Open-Bodem-Index-Calculator
v4.2.3
v4.2.2
Version 4.2.1
Added
- Adds GitHub action to check the package on R-hub
Fixed
- Fixes external link at
obic_water_functions
Version 4.2.0
What's Changed
- Brp25 by @BrentWHR in #201
- Add option to include water functions in environmental score by @BrentWHR in #202
Added
- Function ind_gw_target() to modify I_H_GWR (renamed to I_E_GWR) with a correction factor based on
soiltype and groundwaterclass akin to the groundwaterrecharge score from BBWPC.
Changed
- Argument useClassicOBI is added to obi_field(), obi_field_dt(), and obi_farm().
This argument defaults to TRUE, when TRUE, only agronomic indicators are calculated
and aggregated. When FALSE, water-related indicators (groundwater recharge,
pesticide leaching, and nitrogen use efficiency in relation to groundwater
and surface water) are included in the environmental score and subsequently in
the total score. - When useClassicOBI = FALSE, indicators for water quality and quantity (
I_E_GW_NLEA, I_E_SW_NLEA, I_E_PEST, and I_E_GWR) are included in the
calculation of S_E_OBI_A. - B_DRAIN no longer has a default value and must be supplied when useClassicOBI = FALSE
- M_GREEN is set to TRUE for potato and maize on sandy soils by
add_management(). This
means that M_GREEN is overwritten for such cultivations when using one of the wrapper
functions. - renamed I_H_NGW to I_E_GW_NLEA
- renamed I_H_NSW to I_E_SW_NLEA
- renamed I_H_PEST to I_E_PEST
- renamed I_H_GWR to I_E_GWR
- renamed I_E_NGW to I_E_GW_NRET, I_E_NGW is still part of the obic_field() and
obic_farm() outputs but its use is deprecated, switch over to I_E_GW_NRET - renamed I_E_NSW to I_E_SW_NRET, I_E_NSW is still part of the obic_field() and
obic_farm() outputs but its use is deprecated, switch over to I_E_SW_NRET calc_psp()no longer changes makkink factors for specific months in a rotation.
Instead, makkink factors are adjusted within a single year. For example, if in 2015
potato is grown followed by a green manure and grassland in 2016, the makkink factors
in 2015 for months 1,2 3, 10, 11, and 12 are set to 0.6 (even tough the green manure
partially grows in 2016). One can now indicate in which months a green manure is
grown, default is from 10 up to and including 3. Lastly, the makkink factor for green
manure is only set to 0.6, and only when this is higher than the non-green manure
factor. The makkink factor for month 10 used to be 0.74- Introduced argument B_AREA_DROUGHT for
obic_field()and as possible column in
obic_field_dt()andobic_farm(). This argument is passed on toind_gw_recharge()
which is only called when useClassicOBI == FALSE. When B_AREA_DROUGHT is missing
but required, it is assigned a value in byobic_field()based on B_SOILTYPE_AGR
and B_AER_CBS whilst raising a warning.
Fixed
- B_FERT_NORM_FR and B_DRAIN can now be supplied when using
obic_field_dt()or
obic_farm(). The value is set to 1 when not supplied.
OBIC 4.1.0 2025-08-04
Added
- BRP crop codes for 2025: 7137, 7138, 7135, 7134
Version 4.0.0
What's Changed
- Obi 31 by @KeesDoolNMI in #199
- Bbwp 150 by @BrentWHR in #200
BREAKING CHANGES
Changed
- the format of groundwater class values (B_GWL_CLASS) that are accepted by OBIC
functions and recorded in OBIC tables. Acceptable input values for B_GWL_CLASS are now:
"I", "Ia", "Ic", "II", "IIa", "IIb", "IIc", "III", "IIIa", "IIIb", "IV",
"IVc", "IVu", "sV", "sVb", "V", "Va", "Vad", "Vao", "Vb", "Vbd", "Vbo", "VI",
"VId", "VII", "VIId", "VIII", "VIIId", "VIIIo", "VIIo", "VIo". - OBIC no longer supports B_GWL_CLASS value "-". For fields with groundwater class "-", the user is advised to use expert judgment on
what the most suitable groundwater class is. Fields with "-" are typically found
in locations with very variable or very deep groundwater levels such as flood plains
or hills. - In the table nleach_table, column B_GT is renamed B_GWL_CLASS for consistency.
The values in this column have also been modified to no longer have the prefix "Gt"
to align with the rest of the package. - In the table waterstress.obic, column gt is renamed B_GWL_CLASS for consistency.
The values in this column have also been modified to no longer have the prefix "Gt"
to align with the rest of the package.
Added
- The table waterstress.obic now supports more groundwaterclasses. Classes such as
IIIb are now included in waterstress.obic$B_GWL_CLASS. The new classes with
prefixes and suffixes have the same values as rows with the same roman numeral.
So, with the same cropname and soilunit, III and IIIb have the same values for
the different stresses. - additional B_GWL_CLASS values to
nleach_table("Ia", "Ic", "IIa", "IIc", "IIIa",
"IVu", "IVc", "Va", "Vao", "Vad", "Vbo", "Vbd", "sV", "sVb", "VIo", "VId", "VIIo", "VIId", "VIIIo", "VIIId")
Removed
- function
format_gwt(). OBIC now supports groundwater classes with prefixes and suffixes.
For fields with groundwater class "-", the user is advised to use expert judgment on
what the most suitable groundwater class is. Fields with "-" are typically found
in locations with very variable or very deep groundwater levels such as flood plains
or hills.
Version 3.0.3
OBIC 3.0.3 2024-08-12
Added
- Adds the new cultivations from 2024 [PL-33]
Version 3.0.2
Fixed
- Fixes error in validation of B_LU_BRP by enabling calculations with brp codes of 2023 [OBI-28]
- Fixes classification of grasland met/zonder herinzaai in
crops.obic
Changed
B_LU_WATERSTRESS_OBICof 265 (grasland blijvend), 331, and 3718 from 'grasland met herinzaai' to 'grasland zonder herinzaai' incrops.obic
Removed
- Removes urls to bodemconsult.nl due to invalid SSL certificate, which is not accepted by CRAN
Version 2.0.4
Fixed
- Fixes calculation of
field capacityatcalc_waterretention
Version 2.0.3
Fixed
Fixes plotting of regime curve in workability vignette #149
Version 2.0.1
Changed
- The function
ind_sulpheris renamed toind_sulfurin documentation
Added
- all functions are extended with
examplesandreturn
Changed
- standardize output variables of pedotransfer parameters Wosten
Fixed
- Fixes many spelling errors in the documentation
- Set title in
decriptionto title case - Fix links to external websites
- Fix duplicated indicator in recom.obic (in dev/ppr_maatregel.r), issue #164
- Fix setorder after merge in calc_n_effieciency
- Fix setorder after merge in calc_som_balance
Removed
- Removes
/docsas the documentation website is now automatically generated by GitHub Actions
Deprecated
- The function
ind_sulpheris deprecated due to renaming