Re: Using ncl_convert2nc

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 12 2011 - 08:13:03 MST

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@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

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Mon Dec 12 08:13:22 2011

This archive was generated by hypermail 2.1.8 : Wed Dec 21 2011 - 10:45:42 MST