GribApi.XP is a friendly fork of the ECMWF's GRIB API. It makes a few changes to improve cross-platform (hence the XP
) parity of features and packages. At the moment, that mostly means improving support for Windows, but changes for all platforms are welcome.
To install the GRIB tools from Chocolatey, run
C:\> choco install grib-tools
- PNG compression support
- OMP multi-threading enabled by default
grib_exit
andgrib_assert
hooks for custom handling of fatal errors (details coming soon)
You can build directly with Visual Studio using ./build/Grib.Api.Master.sln
.
To build x86 and x64 libs together, you can run build\build_gribapi.cmd [re|build] [vs tools version] [Debug|Release] [opt: package version]
, e.g.
C:\> build\build_gribapi.cmd rebuild 14 Debug
Not scripted yet, sorry :(
- Delete everything in
root/grib_api
. - Download the latest version from https://software.ecmwf.int/wiki/display/GRIB/Download
- As administrator (ensures symbolic links are created), extract the files files to
root/grib_api
directory. - Commit the vanilla changes to the local repo.
- Now you need to update the
vcproj
files. This is the tricky bit. There are 2 ways to do this. The second is hacky, but much easier.
Open a VS Developer Command Prompt.
> powershell
PS > cd root/grib_api/windows
PS > dir -Recurse *.vcproj | ForEach-Object { devenv /upgrade /q $_.FullName}
Copy the preproccors, output directories, etc from the previous GribApi.XP project files to the new ones.
Do not open the VS Developer Command Prompt. Instead, open the vcproj
in grib_api/windows
in a text editor. Copy/paste the list of files from the vcproj files into GribApi.XP's vcprojx
files.