Re: Error in running NCL

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu May 26 2011 - 14:11:21 MDT

Dear Min,

Did you open an X/Cygwin window? You can't execute this command if you are just running from a Cygwin window. You should see a big "X" icon if you are running X/Cygwin.

Secondly, I recommend not setting DISPLAY, and let the X/Cygwin application set it for you. It should do this every time you run X/Cygwin.

If you are having trouble running X/Cygwin, sometimes I open a Cygwin window, and then type "startxwin" from that window.

--Mary

On May 25, 2011, at 8:28 AM, min chen wrote:

> Hello
>
> I am installing NCL on a Windows 7 (64bit) machine under Cygwin/X.
> After following the steps on http://www.ncl.ucar.edu/Download/cygwin.shtml , I found I am not able to run the script xy04n.ncl, which is copied from the installing directory without any revision. The error message is like:
>
> $ ncl xy04n.ncl
> Copyright (C) 1995-2010 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 5.2.1
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> warning:GKS:GOPWK: --X driver error: error opening display
> warning:GKS: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: Error occurred at or near line 158 in file xy04n.ncl
>
> Looks it is a FAQ of "error opening display". I "printenv DISPLAY" and get :0.0 , which looks reasonable.
>
> I face some problems when I was following the steps in the instruction. The first thing was I was not able to find X-startup-scripts package in Category X11 when I was installing Cygwin/X. Another problem is I didn't find the file ".cshrc" under my home/xxx directory (as discussed in the Set up your envrionment to run NCL section). Do these matter?
>
> Thank you very much for your help!
>
> Best regards,
> --
> Min Chen
> _______________________________________________
> 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 Thu May 26 14:11:28 2011

This archive was generated by hypermail 2.1.8 : Mon Jun 13 2011 - 09:43:16 MDT