

I could find little help online and only a very limited number of online articles specific to Mac installation.

Over many months and prior to posting these instructions, I ran into compilation errors repeatedly when. I’ve had little success in transferring the compiled program between Macs.

Since wgrib2 is dependent upon your Mac’s directory structure and other specific software dependencies, it must be compiled on and for your specific Mac. It has all the links on the subject, including installation instructions (but not enough detail for a Mac install.) Here is where you download the latest version of the wgrib2 file. Here’s the main pages with multiple links from NOAA about wgrib2. While there are several quick online guides for compiling and installing on Linux and Windows machines, I found that the online instructions for installing and compiling wgrib2 on Mac OS X were good, but not good enough for me to be successful. Most commonly, it’s used to extract specific weather parameters and to create grib2 files that cover small geographic areas. It is an essential command line-based C and fortran-based program used to view and manipulate weather data grib2 files. To work efficiently with very large weather GRIB2 data files, the wgrib2 utility was developed by several NOAA data scientists, especially Wesley Ebisuzaki. I have tested and installed the the new wgrib2 3.0.0 and the instructions below still work. I have not had the opportunity to try to install on an M1 Mac, but it looks like HomeBrew has an updated version of gcc that works on an M1.ġ2-05-20: As of September 2020, the wgrib2 utility has been updated to version 3.0.0. Have not tested on Apple Silicon M1 or M2ġ2-24-21: Wesley Ebisuzaki of NOAA has updated his README file at his WGRIB2 PAGE with valuable hints and infoĠ9-27-21: I can confirm that the information below works for wgrib2 v 3.02 on Mac OS X Monterey and Big Sur (Intel). Updates are highlighted.Ġ2-10-22 Updated to work with Monterey 12.2 Changes are highlighted below. I hope to have more info on this at a future time.Ġ3-15-23 Installed latest version of wgrib2 ( 3.1.2) on Ventura (Intel Mac) Added additional step to install cmake using HomeBrew.ġ0-04-22 I’ve updated some instructions for wgrib2 3.1.1. (Intel Macs) However, each version of MacOS will require a compatible install of gcc/gfortran using Homebrew and Xcode Command Line Tools.įor M1 Macs, I have be successful by making a copy of Terminal and using it in Rosetta mode.

These instructions work on El Capitan, High Sierra, Mojave, Catalina and Big Sur, Monterey, Ventura.
