plot package :Cross-section Plots problem

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

plot package :Cross-section Plots problem

#1 Unread post by slvester »

hello everyone.I donwload the roms plot package follow instruction:
svn checkout https://www.myroms.org/svn/src/plot roms_plot
after some change,I install it successful .
And there are ccnt,cnt,et al in the PLT_BINDIR.
But when I want to plot the upwelling output,follwing the Cross-section Plots :
slvester@Oceanstar:~/roms/myplot/example> csec < csec_upwelling.in
At line 736 of file csec.f90
Fortran runtime error: No such file or directory
I find At line 736 of file cses.f90 it is :OPEN(inpvid,file=fname(0),form='formatted',status='old').
Wtha't the matter?Can you help me

_set____________________________________________

In csec_upwelling:
~/roms/roms_plot/Data/varid.dat
~/roms/roms_plot/Palettes/natlan1.pal
default.cnt
~/roms/example/upwelling/output/ocean_avg.nc
~/roms/example/upwelling/output/ocean_his.nc
~/roms/example/upwelling/output/ocean_grd.nc
makefile:
PLT_DEBUG ?=
PLT_LARGE ?=
# USE_NETCDF4 ?=
FORT ?= gfortran
NCAR_VERSION ?= NCARG441
PLT_BINDIR ?= /dcfs2/users/slvester/roms/roms_plot/src/output

ROMS Rvison 408
Plotpackage Rvision 408


Any suggestion is appreciated!

robertson
Site Admin
Posts: 224
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: plot package :Cross-section Plots problem

#2 Unread post by robertson »

As you have realized, the plotting packages is telling you that one of the files listed in your csec_upwelling.in file is missing. Do you have a copy of default.cnt in the directory where you are executing the :

Code: Select all

csec < csec_upwelling.in
command? If not change that line in your csec_upwelling.in file so that it points to the correct location of your default.cnt. For Example:

Code: Select all

...
~/roms/roms_plot/Palettes/natlan1.pal
~/roms/roms_plot/Data/default.cnt
~/roms/example/upwelling/output/ocean_avg.nc
...
Since you're following the tutorial this is likely not the issue. I would suggest that you also try giving absolute paths instead of using the ~. If all of your paths are correct and you still get an error please attach your csec_upwelling.in to your reply.

slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

Re: plot package :Cross-section Plots problem

#3 Unread post by slvester »

Yes,Thank you roberston,you are right
robertson wrote:Do you have a copy of default.cnt in the directory where you are executing the :


Code:
csec < csec_upwelling.in
yes.
-------------------------------------------
I set the csec_upwelling.in
/dcfs2/users/slvester/roms/roms_plot/Data/varid.dat
/dcfs2/users/slvester/roms/roms_plot/Palettes/natlan1.pal
/dcfs2/users/slvester/roms/myplot/example/default.cnt
/dcfs2/users/slvester/roms/example/upwelling/output/ocean_avg.nc
/dcfs2/users/slvester/roms/example/upwelling/output/ocean_his.nc
/dcfs2/users/slvester/roms/example/upwelling/output/ocean_grd.nc
----------------------------------------------
Then
csec < csec_upwelling.in
And it is ok,it run successful
There also the gmeta
But
When I write: > idt gmeta &
[1] 14507
slvester@OceanStar:~/roms/myplot/example> Error: Can't open display:
Some new trouble is coming,i can't view the plot.
-----------------------
so I try:
slvester@OceanStar:~/roms/myplot/example> which csec
/dcfs2/users/slvester/bin/csec
slvester@OceanStar:~/roms/myplot/example> which idt
/usr/local/ncl/bin/idt
slvester@OceanStar:~/roms/myplot/example> printenv NCARG_ROOT
/usr/local/ncl
But I use the ncarg5.0.0 in :/dcfs2/users/slvester/bin/ncarg5.0.0
Is that mean the NCARG_ROOT I set is wrong?How can i change it,but i just find there are
NCARG_ROOT in the makefile,and i set it right.If there are other NCARG_ROOT i must to set?
Many thanks to you!

slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

Re: plot package :Cross-section Plots problem

#4 Unread post by slvester »

OK ,now it is ok,thank you robertson.

Post Reply