June 2025 Release
This post outlines the recent updates to the FDM libraries: @svenvw/fdm-core, @svenvw/fdm-calculator, and @svenvw/fdm-data. This release focuses on expanding our fertilizer data ecosystem, refining the nitrogen balance calculations with ammonia emission tracking, and improving the overall developer experience.
Enhanced Fertilizer Management and Data
This release significantly enhances fertilizer management by introducing a new data catalogue and expanding the available parameters, providing users with more comprehensive and flexible data.
-
Introduction of the
baatFertilizer Catalogue (@svenvw/fdm-data,@svenvw/fdm-core):- A new fertilizer catalogue,
baat, has been added to@svenvw/fdm-data. This catalogue provides an alternative and supplementary source of standardized fertilizer data, giving users more options to choose from. - To support this,
@svenvw/fdm-corenow includes functionality to sync thebaatcatalogue, ensuring that the data is readily available within the FDM ecosystem.
- A new fertilizer catalogue,
-
Expanded Fertilizer Parameters (
@svenvw/fdm-core,@svenvw/fdm-data):- To allow for more precise nutrient management, the
fertilizerCataloguein@svenvw/fdm-coreand the SRM catalogue in@svenvw/fdm-datahave been updated to includep_no3_rt(nitrate content) andp_nh4_rt(ammonium content). - A new parameter,
p_ef_nh3, has been added to thefertilizerCataloguein@svenvw/fdm-coreto represent the ammonia emission factor of a fertilizer, which is crucial for the new emission calculation features.
- To allow for more precise nutrient management, the
-
Flexible Application Methods (
@svenvw/fdm-core,@svenvw/fdm-data):- The
fertilizerCataloguein@svenvw/fdm-corenow includes thep_app_method_optionsparameter, which defines the possible application methods for a given fertilizer. - This is complemented by the addition of
p_app_method_optionsto the Fertilizer Catalogue in@svenvw/fdm-data. - For developers, the
ApplicationMethodsunion type is now exported from@svenvw/fdm-data, simplifying the implementation of fertilizer application logic.
- The
Advanced Nitrogen Balance and Emissions Tracking
We have made significant strides in our nitrogen balance module, with a new focus on environmental impact through emissions tracking.
-
Ammonia Emission Calculation (
@svenvw/fdm-calculator):- The nitrogen balance calculation in
@svenvw/fdm-calculatorhas been enhanced to include the calculation of ammonia emissions. This provides a more complete picture of the farm's nitrogen cycle and its environmental footprint. - This is a critical feature for agronomists looking to improve nutrient use efficiency and for developers building sustainability-focused tools.
- The nitrogen balance calculation in
-
Expanded
calculateDoseOutput (@svenvw/fdm-calculator):- The
calculateDosefunction now provides a more detailed output. In addition to the existing nutrients, the calculation now includes doses for the macronutrients Calcium (Ca) and Sodium (Na), as well as the micronutrients Copper (Cu), Zinc (Zn), Cobalt (Co), Manganese (Mn), Molybdenum (Mo), and Boron (B). This allows for more granular analysis and planning of fertilizer applications. The output also includes the doses of individual applications.
- The
Improved Developer Experience and Tooling
This release includes several updates aimed at making the FDM libraries easier to use for developers.
-
Expanded Parameter Descriptions (
@svenvw/fdm-core):- A new utility function,
getFertilizerParametersDescription, has been added to@svenvw/fdm-core. This function provides detailed information about fertilizer parameters, improving the transparency and usability of the library.
- A new utility function,
-
Crop Rotation Data (
@svenvw/fdm-core):- The
getCultivationandgetCultivationsfunctions now includeb_lu_croprotationin their output, providing easier access to crop rotation information.
- The
Bug Fixes and Maintenance
p_cr_rtTypo (@svenvw/fdm-core): A typo in thep_cr_rtparameter in theaddFertilizerToCataloguefunction has been corrected.syncCatalogueBug (@svenvw/fdm-core): A bug in thesyncCataloguefunction has been fixed. Previously, when an item's hash had changed, its other properties were not being updated correctly.- Unit Conversion Fix (
@svenvw/fdm-calculator): An issue with unit conversion in the calculation of N supply by other fertilizers has been resolved. - Documentation Updates (
@svenvw/fdm-docs):- The documentation for database tables has been updated to align with the latest definitions in
fdm-core. - New documentation has been added to explain the ammonia-emission calculation in the nitrogen-balance section.
- The documentation for database tables has been updated to align with the latest definitions in
- Dependency Updates (
@svenvw/fdm-docs): The@svenvw/fdm-docspackage has been updated to use React 19.
These updates reflect our ongoing commitment to providing a robust and comprehensive platform for farm data management. We encourage you to explore these new features and welcome any feedback or contributions on our GitHub repository.
