๐ Parameter Validation: An improved and more robust version of the
parameter validation checks, along with additional data quality and
validation checks for the seasFcstQBR
function.
๐ Input Validation: Checks added for hisYearStart
,
hisYearEnd
, and the structure of seasRain
and hisWSCvar
.
โ Null and Missing Checks: Added is.null
and is.na
checks
for rainTerc
and key data columns.
โ Unrealistic Data Warning: Warnings for unrealistic hisWSCvar
values (e.g., values outside 0-365 days) and negative rainfall
values.
๐
Year Filtering: Ensures seasRain
and hisWSC
match on
years after filtering.
๐งช Testing Structure: Established testing structure using
testthat
for the seasFcstQBR
function.
๐ Documentation: Added a Seasonal Forecast section to the vignette.
๐ Documentation: Improved documentation for seasFcstQBR
.
๐ Function Name: Changed the function name from seasFcst
to
seasFcstQBR
.
๐ DESCRIPTION File: Edited the DESCRIPTION file as directed by CRAN.
๐ 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 README
to 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
calcWatBal
and calcSeasCal
functions using testthat
, ensuring
better test coverage and reliability.
โ Parameter Validation: Enhanced validation mechanisms in the
calcSeasCal
function 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
,
and cessaWind.end
are valid dates using lubridate::is.Date()
.
๐ Range Validation: Confirms that R-index
values fall between
0 and 1, while Soil Moisture
values remain non-negative.
๐ Length Consistency: Ensures R-index
and Soil Moisture
arrays match the length of the Year column.
๐ฑ soilWHC Validation: Verifies that soilWHC
is a positive
numeric value for accurate soil water holding capacity calculations.
๐ฆ Package Imports: Transitioned from raster
to terra
for more
efficient spatial data processing.
๐ 'calcWatBal' Function: Now returns a list that includes:
๐ Wet Season Calendar (WSC) Parameters: Improved logic and criteria for characterizing the onset and cessation of the wet season, ensuring more accurate agroclimatic analysis.
๐ 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 calcEto
function,
further improving the reliability of core calculations.