[ncl-install] Library problem - a script in NCL

Orion Poplawski orion at cora.nwra.com
Wed Jul 22 08:44:23 MDT 2015


On 07/22/2015 12:39 AM, Negin Moghaddam wrote:
> Hi Orion,
> 
> After fixing the library for NCAR, I ran the following scritp after putting
> the plot_points.ans, *.csh, *.dat, and *.f in the working folder.
>  
> [neginm at civ-1215x Subsurface-Modelling-Monash]$ ncargf77 -o plot_points.x
> plot_points.f
> /usr/bin/gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o
> plot_points.x plot_points.f -L/usr/local/ncl-6.3.0/lib -L/usr/lib64 -lncarg
> -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype
> -lexpat -lpng -lz -lpthread -lXrender -lbz2
> [neginm at civ-1215x Subsurface-Modelling-Monash]$ ls
> plot_points.ans                
> plot_points.csh                
> plot_points.csh~              
> plot_points.dat               
> plot_points.f                   
> plot_points.x
> 
> Then I tried:
> [neginm at civ-1215x Subsurface-Modelling-Monash]$ chmod 755 plot_points.csh
> [neginm at civ-1215x Subsurface-Modelling-Monash]$ ls
> plot_points.csh               
> plot_points.csh~                
> plot_points.dat                 
> plot_points.f                   
> plot_points.x
> 
> However, when I run the code as :
> [neginm at civ-1215x Subsurface-Modelling-Monash]$ plot_points.csh
> bash: plot_points.csh: command not found
> 
> Or with
> 
> [neginm at civ-1215x Subsurface-Modelling-Monash]$ ./plot_points.csh
> ./plot_points.csh: line 1: plot_points.x: command not found

You need to have "." in your PATH for plot_points.x to be found.

> ctrans: Can't open metafile(plot_points.cgm) [ No such file or directory ]
> GPL Ghostscript 8.70 (2009-07-31)
> Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> 
> The pdf and ps files came out with no content.
> 
> 
> I checked the web and it said, the outcome of running ncargf77 should include
> *.cgm which I noticed in second line of your script is one of the inputs.
> 
> I used the test example for NCAR as :
> [neginm at civ-1215x ~]$ ncargex cpex08 -clean
> 
> NCAR Graphics Fortran  Example <cpex08>
> 
>   Copying cpex08.f
> 
>   Copying cpexcc.f
> 
> Compiling and linking...
> /usr/bin/gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o
> cpex08 cpexcc.f cpex08.f -L/usr/local/ncl-6.3.0/lib -L/usr/lib64 -lncarg
> -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype
> -lexpat -lpng -lz -lpthread -lXrender -lbz2
> 
> Executing <cpex08>...
>  PLOT TITLE WAS EXAMPLE 8
>  INTEGER WORKSPACE USED          120
>     REAL WORKSPACE USED          400
>     AREA MAP SPACE USED        93250
>  PLOT TITLE WAS EXAMPLE 8
>  INTEGER WORKSPACE USED          120
>     REAL WORKSPACE USED          400
>     AREA MAP SPACE USED       866064
> 
> Metafile file is named cpex08.ncgm. The ncgm meta data file was built, but
> nothing as a picture or graph came out.
> 
> Could you please let me know why ncgm file did not built for my script and how
> I can fix it?


Don't know anything about this.


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com


More information about the ncl-install mailing list