gribr: gribr: GRIB interface for R using the ECMWF ecCodes

gribrR Documentation

gribr: GRIB interface for R using the ECMWF ecCodes

Description

The gribr package provides a simple interface between R and GRIB 1/2 files. The package is designed so that data is kept in R's intuitive data structures and can be easily projected using your preferred plotting package.

Notice

This package depends on installing the ECMWF library called ecCodes. It is important to install the requisite libraries (e.g., jasper/openjpeg for GRIB2) prior to building ecCodes to ensure full functionality.

gribr Functions

The main functions that will be used in this package are those that can easily display the contents of a GRIB file (grib_list), those that import messages into R (grib_get_message, grib_select) and those that extract the projection information from the GRIB message (grib_proj4str). All other functions are essentially helper functions to aid in scripting with the main tools.

Extensions

gribr was designed to be simple and extensible. Because of the use of the ecCodes, this is possible. Using this package as a template of sort, one could create new functions that work to expand on the current capabilities. The ecCodes examples are good place to see the basic implementations in C. Beyond that, this package is hosted on GitHub where you will not only find the source for this package, but will be able to submit any of your own developments for inclusion in future releases.


nawendt/gribr documentation built on July 15, 2024, 10:51 a.m.