[ncl-install] Using ncl_convert2nc

Mary Haley haley at ucar.edu
Mon Dec 12 08:13:03 MST 2011


Hi Tom,

You don't have the NCARG_ROOT environment variable set.

Please see:

http://www.ncl.ucar.edu/Download/cygwin.shtml#SetUpEnvironment


--Mary

On Dec 12, 2011, at 3:36 AM, Tom Mot wrote:

> Hello,
> 
> I want to work with "ncl_convert2nc" under WindowsXP.
> 
> I have installed cygwin and so on. Cygwin is running well and NCL displays its version 6.0.0 successfully.
> 
> Now I want to convert a grib file to netcdf with your program "ncl_convert2nc".
> 
> I have placed the grib file in /cygwin/usr/local/bin/_work/baro_00h.grib.
> 
> Now I type the following command:
> 
> myUserName at computerName /usr/local
> $ ncl_convert2nc /bin/_work/baro_00h.grib
> 
> But it fails like this:
> 
> Processing file: baro_00h.grib...
>  Copyright (C) 1995-2011 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.0.0
>  The use of this software is governed by a License Agreement.
>  See http://www.ncl.ucar.edu/ for more details.
> warning:Unable to Get System Resource File Name?
> warning:Unable to load System Resource File (null)
> fatal:GetSysAppDir:Unable to get a default value for the system App Resource directory
> warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL
> fatal:GetSysAppDir:Unable to get a default value for the system App Resource directory
> warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL
> warning:Unable to Get System Resource File Name?
> warning:WorkstationClassInitialize:Unable to access rgb color database - named colors unsupported:[errno=2]
> NDV_COLORMAP_PATH environment variable not set:
>         defaulting to .:$NCARG_ROOT/lib/ncarg/colormaps
> warning:["Palette.c":1527]:NhlLoadColormapFiles: Invalid directory encountered in colormap path specification
> fatal:_NclFileCreate: Requested file does not exist as (/bin/_work/baro_00h.grib) or as (/bin/_work/baro_00h), can't add file
> fatal:getfilevarnames: file does not exist
> fatal:Execute: Error occurred at or near line 227 in file /tmp/tmp292.ncl
> 
>  
> What is the reason?
> What is my mistake?
> 
> Sincerely,
> Thomas Brenz
> 
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20111212/b1a6b613/attachment.html 


More information about the ncl-install mailing list