Changelog
Source:NEWS.md
wcswatin 0.1.0
Package workflows and structure
- Reorganized R source files by logical domain, making the package structure match the main workflows more closely.
- Reorganized the test suite by the same logical domains and added shared test helpers for temporary files and directories.
- Added compact NetCDF example files to support runnable examples, metadata inspection, and raster workflow tests.
- Replaced the previous Makefile-based workflow with a
justfilefor common development tasks.
New features
- Added
raster_info()to summarize raster and NetCDF metadata, including variables, units, layer counts, spatial extent, CRS, and time range. - Added
ts_point_to_files()to savets_to_point()outputs as individual SWAT-style point files. - Added
value_at_hoursupport todaily_aggregation()for products whose daily value is stored at a specific hour. - Added
value_at_hour,date_shift_days, anddrop_first_layersupport todatacube_aggregation()so hourly raster cubes can be reduced before extraction. - Improved
tbl_from_references()so reference points can be supplied using the package’s standard table, vector, and path input patterns.
Breaking changes
- Standardized longitude column names to
LON. - Renamed the
take_out_first_recordargument indaily_aggregation()todrop_first_record. - Renamed the
negatif_numberargument in station/table preprocessing toneg_to_zero.
Bug fixes and validation
- Added reusable input validation helpers and clearer error messages across raster, table, station, and interpolation workflows.
- Ensured variable derivation helpers create output directories consistently.
- Removed a duplicate internal
file_name()implementation. - Removed the
vroomdependency from the main file-reading workflow. - Expanded test coverage for raster aggregation, cube extraction, metadata, reference extraction, station input, table aggregation, table I/O, variable derivation, and trend-surface interpolation.
Documentation
- Added a lightweight executable vignette using bundled example data.
- Added precomputed pkgdown articles for:
- ERA5-Land hourly data to SWAT inputs;
- station interpolation workflow;
- running a similar external case study.
- Updated README and pkgdown navigation to reflect the current package workflows.
wcswatin 0.0.1
First Release
Initial release of wcswatin (Weather & Climate SWAT INput) package for preparing weather and climate data for input in the Soil & Water Assessment Tool (SWAT).
Features
- Process NetCDF and GeoTIFF raster files from multiple climate data providers
- Temporal and spatial aggregation tools
- Gap filling and missing data handling
- Unit conversion utilities for weather variables
- Summary statistics and visualization functions
- File management and batch processing utilities
Infrastructure
- Comprehensive test suite with cross-platform support (Windows, macOS, Linux)
- CI/CD with GitHub Actions (R-CMD-check, test-coverage, pkgdown)
- Documentation website available at https://reginalexavier.github.io/wcswatin/