hackWRF is the predecessor of eva3dm R-package and include functions to work with WRF, NetCDF and model evaluation. This package is not in development anymore, most of the functionality is included in the new package available on CRAN and Github.
For more information and citation (for both packages):
[1] Schuch. (2025). eva3dm: A R-package for model evaluation of 3D weather and air quality models. Journal of Open Source Software, 10(108), 7797. https://doi.org/10.21105/joss.07797
The functions include:
- meta()
a function to read and write metadata on NetCDF files;
- export_serie()
and export_mean()
that export output for a data.table (.Rds) or NetCDF (.nc) files;
- evaluate()
a geral function to evaluate model results performing some tests and pairing the data;
- stats()
a custon wraper to the openair::modStats()
with some customisation;
- ccbind()
and crbind()
conditional cbind()
and conditional rbind()
;
- last()
but not least, a fnunctions to return the last member of a vector.
The following steps are required for installation on Ubuntu:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
sudo apt-get --yes --force-yes update -qq
# netcdf dependencies:
sudo apt-get install --yes libnetcdf-dev netcdf-bin
# units/udunits2 dependency:
sudo apt-get install --yes libudunits2-dev
# sf dependencies (without libudunits2-dev):
sudo apt-get install --yes libgdal-dev libgeos-dev libproj-dev
The following steps are required for installation on Fedora:
sudo dnf update
# netcdf dependencies:
sudo yum install netcdf-devel
# units/udunits2 dependency:
sudo yum install udunits2-devel
# sf dependencies (without libudunits2-dev):
sudo yum install gdal-devel proj-devel proj-epsg proj-nad geos-devel
No additional steps for windows installation.
Detailed instructions can be found at netcdf, libudunits2-dev and sf developers page.
First create a new environment called rspatial (or a better name):
conda create -n rspatial -y
conda activate rspatial
and to install some requisites:
conda install -c conda-forge r-sf r-rgdal r-lwgeom r-raster -y
with devtools:
# install.packages("devtools")
devtools::install_github("schuch666/hackWRF")
or remotes:
# install.packages("remotes")
remotes::install_github("schuch666/hackWRF")
Licensed under a Creative Commons Attribution 4.0 International License (CC BY).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.