README.md

hackWRF

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.

Installation

System dependencies

To Ubuntu

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

To Fedora

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

To Windows

No additional steps for windows installation.

Detailed instructions can be found at netcdf, libudunits2-dev and sf developers page.

To conda (miniconda / anaconda)

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

Package installation

with devtools:

# install.packages("devtools")
devtools::install_github("schuch666/hackWRF")

or remotes:

# install.packages("remotes")
remotes::install_github("schuch666/hackWRF")

Some examples:

Licence

Creative Commons Attribution 4.0 International License Licensed under a Creative Commons Attribution 4.0 International License (CC BY).



Schuch666/hackWRF documentation built on June 9, 2025, 1:46 p.m.