An R-package with functions to work with WRF, NetCDF and model evaluation.
The functions include:
meta()
a function to read and write metadata on NetCDF files;export_serie()
andexport_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 theopenair::modStats()
with some customisation;ccbind()
andcrbind()
conditionalcbind()
and conditionalrbind()
;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.
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
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).