[ncl-install] Installing NCL 6.2.1 on CentOS 6.5 with GCC 4.4.7

Mary Haley haley at ucar.edu
Sun Oct 19 15:01:38 MDT 2014


Cedric,

X11 is not required to use ncl_convert2nc.  X11 is only required if you run
an NCL script that creates graphics *and* you are using the "X11" window as
a workstation type.

If you use "ps", "png", "pdf", or some other workstation type, then you
don't need X11.

The X11 issue arising from the "ng4ex" command that you typed could be
because your DISPLAY is not set or is set incorrectly, or else you don't
have an X11 server running.

You can try the "ng4ex" command and force the output to go to a PDF file
instead:

   ng4ex xy01n -W pdf -clean

This will produce an "xy01n.pdf" file.

----

The issue you're having with ncl_convert2nc is that NCL can't handle your
GRIB file for some reason.  That conversation has been taken offline and we
will keep you posted on what the issue is.

--Mary

On Sat, Oct 18, 2014 at 3:05 PM, David, Cedric H (329C) <
Cedric.David at jpl.nasa.gov> wrote:

>  Hi Mary,
> Thank you for your answer.  Indeed, the issue arises when I use
> “ncl_convert2nc” (see below).  An example of the .grb files I’m dealing
> with is at:
>
> ftp://hydro1.sci.gsfc.nasa.gov/data/s4pa/NLDAS/NLDAS_VIC0125_H.002/2000/001/NLDAS_VIC0125_H.A20000101.0000.002.grb
>
> I’ve also tried “ng4ex xy01n -clean” but the problem I face there seems to
> be that X11 is not installed on my machine (see below).  Is X11 required to
> be able to use ncl_convert2nc?  This is almost the only tool I need for now
> in NCL.  As I’m converting multiple years of hourly files, this tool comes
> in extremely handy.  I had used it with NCL 6.2.0 on another machine and it
> worked fine with these .grb files.  Is there any other example NCL script
> that I can try to run that doesn’t use X11?
> Your thoughts are much appreciated!
> Thank you,
> Cedric
>
>
>
>   [chdavid at flashflood tmp]$ ncl_convert2nc
> NLDAS_VIC0125_H.A20000101.0000.002.grb
>
> Processing file: NLDAS_VIC0125_H.A20000101.0000.002.grb...
>
>  Copyright (C) 1995-2014 - All Rights Reserved
>
>  University Corporation for Atmospheric Research
>
>  NCAR Command Language Version 6.2.1
>
>  The use of this software is governed by a License Agreement.
>
>  See http://www.ncl.ucar.edu/ for more details.
>
> warning:NclGRIB: Unknown grib parameter number detected (139, center 7,
> table version 130 grib record 17), using default variable name (VAR_139)
>
> warning:NclGRIB: Unknown grib parameter number detected (250, center 7,
> table version 130 grib record 25), using default variable name (VAR_250)
>
> *** glibc detected *** ncl: corrupted double-linked list:
> 0x0000000007700360 ***
>
> ======= Backtrace: =========
>
> /lib64/libc.so.6[0x383bc75e76]
>
> /lib64/libc.so.6[0x383bc762fd]
>
> /lib64/libc.so.6[0x383bc79125]
>
> /lib64/libc.so.6(__libc_malloc+0x71)[0x383bc7a6b1]
>
> ncl(NclMalloc+0x10)[0x761f7b]
>
> ncl(_NclGetFileSymNames+0x21)[0x828e92]
>
> ncl(_NclFileCleanUp+0x10)[0x829eb2]
>
> ncl(_NclExit+0x8)[0x829f55]
>
> ncl(NclDriver+0xc61)[0x6e38af]
>
> ncl(main+0x9)[0x6dff2d]
>
> /lib64/libc.so.6(__libc_start_main+0xfd)[0x383bc1ed5d]
>
> ncl[0x6dfe69]
>
> ======= Memory map: ========
>
> 00400000-023f0000 r-xp 00000000 08:01 1709087
> /home/chdavid/installz/ncl-6.2.1/bin/ncl
>
> 025f0000-02835000 rw-p 01ff0000 08:01 1709087
> /home/chdavid/installz/ncl-6.2.1/bin/ncl
>
> 02835000-030df000 rw-p 00000000 00:00 0
>
> 03827000-07a6a000 rw-p 00000000 00:00 0
> [heap]
>
> 383b800000-383b820000 r-xp 00000000 08:01 1321949
> /lib64/ld-2.12.so
>
> 383ba1f000-383ba20000 r--p 0001f000 08:01 1321949
> /lib64/ld-2.12.so
>
> 383ba20000-383ba21000 rw-p 00020000 08:01 1321949
> /lib64/ld-2.12.so
>
> 383ba21000-383ba22000 rw-p 00000000 00:00 0
>
> 383bc00000-383bd8a000 r-xp 00000000 08:01 1321952
> /lib64/libc-2.12.so
>
> 383bd8a000-383bf8a000 ---p 0018a000 08:01 1321952
> /lib64/libc-2.12.so
>
> 383bf8a000-383bf8e000 r--p 0018a000 08:01 1321952
> /lib64/libc-2.12.so
>
> 383bf8e000-383bf8f000 rw-p 0018e000 08:01 1321952
> /lib64/libc-2.12.so
>
> 383bf8f000-383bf94000 rw-p 00000000 00:00 0
>
> 383c000000-383c017000 r-xp 00000000 08:01 1321953
> /lib64/libpthread-2.12.so
>
> 383c017000-383c217000 ---p 00017000 08:01 1321953
> /lib64/libpthread-2.12.so
>
> 383c217000-383c218000 r--p 00017000 08:01 1321953
> /lib64/libpthread-2.12.so
>
> 383c218000-383c219000 rw-p 00018000 08:01 1321953
> /lib64/libpthread-2.12.so
>
> 383c219000-383c21d000 rw-p 00000000 00:00 0
>
> 383c400000-383c402000 r-xp 00000000 08:01 1321962
> /lib64/libdl-2.12.so
>
> 383c402000-383c602000 ---p 00002000 08:01 1321962
> /lib64/libdl-2.12.so
>
> 383c602000-383c603000 r--p 00002000 08:01 1321962
> /lib64/libdl-2.12.so
>
> 383c603000-383c604000 rw-p 00003000 08:01 1321962
> /lib64/libdl-2.12.so
>
> 383c800000-383c815000 r-xp 00000000 08:01 1321964
> /lib64/libz.so.1.2.3
>
> 383c815000-383ca14000 ---p 00015000 08:01 1321964
> /lib64/libz.so.1.2.3
>
> 383ca14000-383ca15000 r--p 00014000 08:01 1321964
> /lib64/libz.so.1.2.3
>
> 383ca15000-383ca16000 rw-p 00015000 08:01 1321964
> /lib64/libz.so.1.2.3
>
> 383cc00000-383cc07000 r-xp 00000000 08:01 1321958
> /lib64/librt-2.12.so
>
> 383cc07000-383ce06000 ---p 00007000 08:01 1321958
> /lib64/librt-2.12.so
>
> 383ce06000-383ce07000 r--p 00006000 08:01 1321958
> /lib64/librt-2.12.so
>
> 383ce07000-383ce08000 rw-p 00007000 08:01 1321958
> /lib64/librt-2.12.so
>
> 383d000000-383d083000 r-xp 00000000 08:01 1321955
> /lib64/libm-2.12.so
>
> 383d083000-383d282000 ---p 00083000 08:01 1321955
> /lib64/libm-2.12.so
>
> 383d282000-383d283000 r--p 00082000 08:01 1321955
> /lib64/libm-2.12.so
>
> 383d283000-383d284000 rw-p 00083000 08:01 1321955
> /lib64/libm-2.12.so
>
> 383d400000-383d41d000 r-xp 00000000 08:01 1321965
> /lib64/libselinux.so.1
>
> 383d41d000-383d61c000 ---p 0001d000 08:01 1321965
> /lib64/libselinux.so.1
>
> 383d61c000-383d61d000 r--p 0001c000 08:01 1321965
> /lib64/libselinux.so.1
>
> 383d61d000-383d61e000 rw-p 0001d000 08:01 1321965
> /lib64/libselinux.so.1
>
> 383d61e000-383d61f000 rw-p 00000000 00:00 0
>
> 383dc00000-383dc16000 r-xp 00000000 08:01 1318675
> /lib64/libresolv-2.12.so
>
> 383dc16000-383de16000 ---p 00016000 08:01 1318675
> /lib64/libresolv-2.12.so
>
> 383de16000-383de17000 r--p 00016000 08:01 1318675
> /lib64/libresolv-2.12.so
>
> 383de17000-383de18000 rw-p 00017000 08:01 1318675
> /lib64/libresolv-2.12.so
>
> 383de18000-383de1a000 rw-p 00000000 00:00 0
>
> 383e000000-383e032000 r-xp 00000000 08:01 1311013
> /lib64/libidn.so.11.6.1
>
> 383e032000-383e231000 ---p 00032000 08:01 1311013
> /lib64/libidn.so.11.6.1
>
> 383e231000-383e232000 rw-p 00031000 08:01 1311013
> /lib64/libidn.so.11.6.1
>
> 383ec00000-383ec16000 r-xp 00000000 08:01 1321956
> /lib64/libgcc_s-4.4.7-20120601.so.1
>
> 383ec16000-383ee15000 ---p 00016000 08:01 1321956
> /lib64/libgcc_s-4.4.7-20120601.so.1
>
> 383ee15000-383ee16000 rw-p 00015000 08:01 1321956
> /lib64/libgcc_s-4.4.7-20120601.so.1
>
> 383f000000-383f0e8000 r-xp 00000000 08:01 791378
> /usr/lib64/libstdc++.so.6.0.13
>
> 383f0e8000-383f2e8000 ---p 000e8000 08:01 791378
> /usr/lib64/libstdc++.so.6.0.13
>
> 383f2e8000-383f2ef000 r--p 000e8000 08:01 791378
> /usr/lib64/libstdc++.so.6.0.13
>
> 383f2ef000-383f2f1000 rw-p 000ef000 08:01 791378
> /usr/lib64/libstdc++.so.6.0.13
>
> 383f2f1000-383f306000 rw-p 00000000 00:00 0
>
> 383f800000-383f898000 r-xp 00000000 08:01 787710
> /usr/lib64/libfreetype.so.6.3.22
>
> 383f898000-383fa97000 ---p 00098000 08:01 787710
> /usr/lib64/libfreetype.so.6.3.22
>
> 383fa97000-383fa9d000 rw-p 00097000 08:01 787710
> /usr/lib64/libfreetype.so.6.3.22
>
> 383fc00000-383fc34000 r-xp 00000000 08:01 785923
> /usr/lib64/libfontconfig.so.1.4.4
>
> 383fc34000-383fe34000 ---p 00034000 08:01 785923
> /usr/lib64/libfontconfig.so.1.4.4
>
> 383fe34000-383fe36000 rw-p 00034000 08:01 785923
> /usr/lib64/libfontconfig.so.1.4.4
>
> 3840400000-3840537000 r-xp 00000000 08:01 786097
> /usr/lib64/libX11.so.6.3.0
>
> 3840537000-3840737000 ---p 00137000 08:01 786097
> /usr/lib64/libX11.so.6.3.0
>
> 3840737000-384073d000 rw-p 00137000 08:01 786097
> /usr/lib64/libX11.so.6.3.0
>
> 3840c00000-3840c03000 r-xp 00000000 08:01 1321985
> /lib64/libcom_err.so.2.1
>
> 3840c03000-3840e02000 ---p 00003000 08:01 1321985
> /lib64/libcom_err.so.2.1
>
> 3840e02000-3840e03000 r--p 00002000 08:01 1321985
> /lib64/libcom_err.so.2.1
>
> 3840e03000-3840e04000 rw-p 00003000 08:01 1321985
> /lib64/libcom_err.so.2.1
>
> 3841000000-384101d000 r-xp 00000000 08:01 786000
> /usr/lib64/libxcb.so.1.1.0Abort (core dumped)
>
>
>  [chdavid at flashflood tmp]$
>
>
>   [chdavid at flashflood tmp]$ ng4ex xy01n -clean
>
>
>  NCAR Graphics NCL Example <xy01n>
>
>
>    Copying xy01n.ncl
>
>   Copying xy01.res
>
>
>  Running NCL...
>
>  Copyright (C) 1995-2014 - All Rights Reserved
>
>  University Corporation for Atmospheric Research
>
>  NCAR Command Language Version 6.2.1
>
>  The use of this software is governed by a License Agreement.
>
>  See http://www.ncl.ucar.edu/ for more details.
>
>  GKS ERROR NUMBER -208 ISSUED FROM SUBROUTINE GOPWK :
>
>  --X driver error: DISPLAY environment variable not set
>
>  GKS ERROR NUMBER   25 ISSUED FROM SUBROUTINE GESC  :
>
>  --SPECIFIED WORKSTATION IS NOT OPEN
>
> fatal:Workstation with PID#8 is not open
>
> fatal:Unable to open Workstation-Can't Create
>
> fatal:Unable to access object with id:-4
>
> fatal:_NhlCreate:Invalid Parent id #-4
>
> fatal:NhlDraw: Invalid Layer Id: -4
>
> fatal:Unable to update Workstation with PID#-4
>
> fatal:Unable to clear Workstation with PID#-4
>
> fatal:["Execute.c":8576]:Execute: Error occurred at or near line 137
>
>
>
>  Finished running 'ncl < xy01n'...
>
>
>  [chdavid at flashflood tmp]$
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20141019/5b7cfd1f/attachment-0001.html 


More information about the ncl-install mailing list