Web Content Display

Web Content Display (CoastWatch User Forum)

The NOAA CoastWatch Forum provides information in several categories.  The information is relevant to CoastWatch products and software (https://coastwatch.noaa.gov)  and vary in technical details.  For questions and issues not addressed here,  start a thread in the appropriate category or contact the CoastWatch HelpDesk (coastwatch.info@noaa.gov).  Please note our Privacy Policy (https://www.noaa.gov/privacy.html) and that this is a public forum.  All information is voluntarily and anonymous submissions are accepted pending review prior to posting. 

Forums

Back

RE: How can I add CW Utilities into PATH on Mac?

JJ
Jordan James, modified 3 Years ago.

How can I add CW Utilities into PATH on Mac?

Youngling Posts: 1 Join Date: 5/12/20 Recent Posts

After downloading CW Utilities, I have attempted to use tools like cwregister2 in Terminal, but my computer does not recognize the tool unless I manually import cwregister2 each time I open a new Terminal window by typing /Applications/CoastWatch\ Utilities/bin/cwregister2. I tried to reroute PATH to include the CW Utilities bin, but the command is still not found. Is there a way to add CW Utilities into PATH so I don't have to manually import tools before each use?

cwregister2 cw utilities mac path
PH
Peter Hollemans, modified 3 Years ago.

RE: How can I add CW Utilities into PATH on Mac?

Youngling Posts: 2 Join Date: 9/30/20 Recent Posts

Take a look in the User's Guide in the Introduction, Section 1.2 Installation Notes, under Installing on Unix, which includes macOS.  What you'll find is that you can set the $PATH variable in your macOS user account in your ~/.profile file, something like this:

export PATH=${PATH}:"/Applications/CoastWatch Utilities/bin"

I also like to add to the $MANPATH variable like this:

export MANPATH=${MANPATH}:"/Applications/CoastWatch Utilities/doc/man"

so that I can type "man cwrender" for example, and get a formatted man page.  For these settings to take effect, just start a new Terminal window.