AquaBEHER 1.4.0
CRAN release: 2024-09-24
π Added
-
π Parameter Validation: An improved and more robust version of the parameter validation checks, along with additional data quality and validation checks for the
seasFcstQBRfunction.π Input Validation: Checks added for
hisYearStart,hisYearEnd, and the structure ofseasRainandhisWSCvar.β Null and Missing Checks: Added
is.nullandis.nachecks forrainTercand key data columns.β Unrealistic Data Warning: Warnings for unrealistic
hisWSCvarvalues (e.g., values outside 0-365 days) and negative rainfall values.π Year Filtering: Ensures
seasRainandhisWSCmatch on years after filtering.
π§ͺ Testing Structure: Established testing structure using
testthatfor theseasFcstQBRfunction.π Documentation: Added a Seasonal Forecast section to the vignette.
AquaBEHER 1.2.0
π Added
π Citation Information: Citation details are now included in
inst/CITATION, enabling proper referencing.π CRAN Downloads Badge: A badge displaying CRAN downloads has been added to the
READMEto track package usage.β Data Quality Control: New data validation checks have been introduced to ensure the integrity of inputs for water balance calculations. These include realistic value checks and error handling.
π§ͺ Testing Structure: Established comprehensive unit tests for the
calcWatBalandcalcSeasCalfunctions usingtestthat, ensuring better test coverage and reliability.-
β Parameter Validation: Enhanced validation mechanisms in the
calcSeasCalfunction to ensure accurate input. Improvements include:π Consistency Checks: Ensures that date-related columns (Year, Month, Day) are complete and contain no missing values.
π Date Validation: Ensures
onsetWind.start,onsetWind.end, andcessaWind.endare valid dates usinglubridate::is.Date().π Range Validation: Confirms that
R-indexvalues fall between 0 and 1, whileSoil Moisturevalues remain non-negative.π Length Consistency: Ensures
R-indexandSoil Moisturearrays match the length of the Year column.π± soilWHC Validation: Verifies that
soilWHCis a positive numeric value for accurate soil water holding capacity calculations.
π Changed
π¦ Package Imports: Transitioned from
rastertoterrafor more efficient spatial data processing.-
π βcalcWatBalβ Function: Now returns a list that includes:
- A dataframe with results.
- A list of warnings for unrealistic or adjusted values in the input data, making error tracing easier.
π Wet Season Calendar (WSC) Parameters: Improved logic and criteria for characterizing the onset and cessation of the wet season, ensuring more accurate agroclimatic analysis.
AquaBEHER 1.0.0
π Added
π Error Handling: Enhanced error management for missing or unrealistic values, making the package more robust and user-friendly.
β Consistency Checks: Implemented validation to ensure that maximum temperature is always greater than minimum temperature, avoiding input errors.
π Documentation: Significantly improved package documentation for better clarity and completeness, including examples and usage guidance.
π§ͺ Testing: Introduced unit testing for the
calcEtofunction, further improving the reliability of core calculations.
