Re: an error when run NCL script

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 10 2011 - 10:13:29 MST

Dear Xu-Yan,

The error message is coming from trying to open a PostScript file to send the graphics to. The DISPLAY environment variable only comes into play here if you are sending the graphics to an X11 window.

There are a few reasons why NCL can't create the PS file:

        - you are trying to create the file where you don't have write permissions
        - you don't have enough disk space to create a file
        - you are trying to access a directory that doesn't exist
        - there's some problem with the file name you're using

Please check all of these things.

If everything looks okay and you're still having a problem, then try this as a test:

ng4ex xy01n -W ps

and let me know if "xy01n.ps" gets created, or if you get errors.

--Mary

> Hi,
> Sorry to bother you.There is a problem happening when i run the NCL script.
> ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> warning:GKS:GOPWK: --PostScript error: error opening output file
> fatal:Workstation with PID#8 is not open
> ERROR 3 IN NGSETI - value for WO must reference an open workstation.
> ERROR 1 IN NGSETI - Uncleared prior error
> ERROR 1 IN NGSETI - Uncleared prior error
> ERROR 1 IN NGSETI - Uncleared prior error
> ERROR 1 IN NGSETI - Uncleared prior error
> ERROR 1 IN NGSETI - Uncleared prior error
> fatal:Unable to open Workstation-Can't Create
> fatal:Unable to access object with id:-4
> fatal:NhlGetValues:PID #-4 is invalid
> fatal:Execute: Error occurred at or near line 3238 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
>
> fatal:Execute: Error occurred at or near line 3530 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
>
> fatal:Execute: Error occurred at or near line 140 in file WRF-CMAQ.ncl
> ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> I checked the DISPLAY and i typed:printenv DISPLAY,i got localhost:15.0.
> My object is making four plots(/2,2/).
> Please give me some suggestion!
> Thanks a lot,
> Xu-Yan
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 10 10:13:57 2011

This archive was generated by hypermail 2.1.8 : Thu Mar 10 2011 - 21:44:37 MST