To install Homebrew and install apps, issue the following commands in Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" brew install xquartz macfuse ncar-ncl gfortran gcc numpy scipy zmq pyqt szip gdal gawk ghostscript nedit ffmpeg graphicsmagick curl rsync sshfs gmt geographiclib sudo reboot export NCARG_ROOT="/usr/local/ncl-6.5.0" export PATH="${NCARG_ROOT}/bin:${PATH}"