How to setup ncgen?

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
duckweed

How to setup ncgen?

#1 Unread post by duckweed »

hi,
when i run ncgen,the error:
ncgen: Command not found.

when i run :
which ncdump
ncdump: Command not found.
which ncgen
ncgen: Command not found.

however my linux server has an netcdf library,and it has ncdump and ncgen files
how to solve it?
thanks a lot!

jacopo
Posts: 81
Joined: Fri Nov 21, 2003 9:30 pm
Location: CNR-ISMAR

Re: How to setup ncgen?

#2 Unread post by jacopo »

add the path where ncdump is in your ~home/.profile

duckweed

Re: How to setup ncgen?

#3 Unread post by duckweed »

Thank you very much!
I know yur mean. However, what's the command format? Can you tell me an example?
Thanks a lot!

jacopo
Posts: 81
Joined: Fri Nov 21, 2003 9:30 pm
Location: CNR-ISMAR

Re: How to setup ncgen?

#4 Unread post by jacopo »

Code: Select all

PATH=$PATH:home/thingumajig/netcdf_dir/bin         
export PATH
home/thingumajig/netcdf_dir/bin is the dir where your ncdump/ncgen are, so modify the name according to where you put netcdf.
Add these lines to your:

Code: Select all

$HOME/.profile
if you are a ksh or sh user

Code: Select all

$HOME/.bashrc
if you are a bash user
export PATH is probably already in there. In that case, just add the first line.
then from the command line

Code: Select all

source .profile (or .bashrc)
and try again with ncdump

User avatar
arango
Site Admin
Posts: 1350
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: How to setup ncgen?

#5 Unread post by arango »

ncdump and ncgen are programs from the NetCDF library and not ROMS :!: You need to find out where are those programs installed in you computer. There is plenty information in the wiki and in this forum about the NetCDF library.

:idea: You need to do some reading. You need to understand NetCDF pretty well before attempting to runs ROMS.

Post Reply