port install cdoIf you want to use GRIB2, szip compression and Magics++ graphic install it with
port install cdo +grib_api +magicspp +szip
In addition to standard features, this port provides support for GRIB2. Many thanks to Takeshi Enomoto for providing that port!
If you prefer homebrew, please check the extensive documentation under https://brew.sh. After successful installation, CDO can be installed as easy as
brew install cdo
Thx to Carlos for the hint