Re: errors with AMWG diagnostic package

From: Mark Branson <mark_at_nyahnyahspammersnyahnyah>
Date: Wed, 8 Jul 2009 14:07:43 -0600

Hi Mary and Evelyn.

Thanks for you replies on this. I was out of town for an extended 4th
of July weekend. Turns out that I forgot that the AMWG script needs
to have the output file type set to postscript instead of pdf anyways
if you want to generate the web pages, which I do. I had just
neglected to change this in the new version of the main csh script in
the package.

Thanks again for your help!
Mark

>
> Mark,
>
> As far as I know, you've never been able to have multiple PDF files
> open at a time.
> I just tried my sample PDF script on version 5.0.0, 5.1.0, and
> 5.1.1, and had the same
> results with all of them - I got an error about multiple PDF
> workstations.
>
> If you can provide me with a script that shows the problem in
> V5.1.1, and not V5.0, then
> I will take a look.
>
> Meanwhile, what Dennis said below should help.
>
> Also, to be safe, you can add:
>
> delete(wks)
>
> before the "end do". This will force the current PDF file to be
> closed properly.
>
> --Mary
>
>
>
> On Jul 1, 2009, at 10:00 PM, Dennis Shea wrote:
>
>> I have not heard of any problems like that described.
>>
>> As noted at
>> http://www.ncl.ucar.edu/new_release.shtml
>>
>> There is no mention of any work station updates.
>> ----
>> Under the scenario below, specifically
>>
>> wks = gsn_open_wks(plot_type,...)
>>
>> The key is the "..." say "pltName"
>>
>> wks = gsn_open_wks(plot_type,pltName + i)
>>
>> where each iteration there is a new name ... should work.
>>
>> D
>>
>> Mark Branson wrote:
>>> Hi everyone.
>>>
>>> Most of the ncl routines that are called by the AMWG diagnostics
>>> package have a loop of this basic format:
>>>
>>> do i = 0, nvars-1
>>> .
>>> .
>>> wks = gsn_open_wks(plot_type,...)
>>> .
>>> (set a bunch of resources)
>>> .
>>> gsn_panel(wks,plot,(/2,1/),pan) ; panel plot
>>> .
>>> frame (wks)
>>> end do
>>>
>>> and plot_type is in fact set to pdf. Again, this worked
>>> splendidly in
>>> all versions of ncl 5.0 and before, but now it fails in 5.1. That
>>> seems strange to me.
>>>
>>> To my knowledge there is no gsn_close_wks command. Doesn't the
>>> frame
>>> command update and clear the workstation objects?
>>>
>>> Thanks!
>>> Mark
>>>
>>>> In fact you cannot have more than one PDF workstation open at a
>>>> time.
>>>> PDF files end with a pointer to a reference table that specifies
>>>> byte addresses
>>>> for PDF objects in the file. This table cannot be completed until
>>>> the file is
>>>> closed. I decided that the benefit/cost ratio was not high enough
>>>> to make
>>>> the necessary mods to keep in memory all of the necessary
>>>> pointers for
>>>> more than a single PDF output file, since I was thinking it would
>>>> be
>>>> rare
>>>> that someone would want that.
>>>>
>>>> This limitation is mentioned at:
>>>>
>>>> http://ncarg.ucar.edu/gks/pdf.html
>>>>
>>>> Fred Clare
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Jul 1, 2009, at 3:55 PM, Mark Branson wrote:
>>>>
>>>>> I can't remember when ncl v5.1 came out and was installed on my
>>>>> machine, but I'm pretty sure it happened in the last few months.
>>>>> Because I have a version of the AMWG diagnostic package that Rich
>>>>> Neale maintains, and back on April 27th it worked fine, but now
>>>>> I get
>>>>> errors like these:
>>>>>
>>>>> SET 3 ZONAL LINE PLOTS
>>>>> MAKING ANN PLOTS
>>>>> Copyright (C) 1995-2009 - All Rights Reserved
>>>>> University Corporation for Atmospheric Research
>>>>> NCAR Command Language Version 5.1.0
>>>>> The use of this software is governed by a License Agreement.
>>>>> See http://www.ncl.ucar.edu/ for more details.
>>>>> warning:GKS:GOPWK: -- Only one PDF workstation can be open at a
>>>>> time
>>>>> fatal:Workstation with PID#88 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 3178 in file
>>>>> $NCARG_ROOT/
>>>>> lib/ncarg/nclscripts/csm/gsn_code.ncl
>>>>>
>>>>> Perhaps I need to install v5.1.1????
>>>>>
>>>>> Thanks,
>>>>> Mark Branson
>>>>>
>>>>> _______________________________________________
>>>>> 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
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
Received on Wed Jul 08 2009 - 14:07:43 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 08 2009 - 14:48:16 MDT