Re: Multiple Fill Palettes and PDF/PS

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 23 2014 - 13:19:20 MDT

(Curious -- gsn_panel_return() seems to be undocumented!)

I'm guessing you are using NCL6.1.0? I can't tell for certain what is going on, but reading through the code and the reported line numbers, there is some PS/PDF-specific code getting invoked. In particular, there's some internal code that determines plot size and dimensioning details, and it uses the 1st plot in an array of plots to get "parent object" information.

In the code snippets you included, from line 499, that array of plots would be your array "plot2", and it looks like the 1st 3 elements of that are undefined (?), and I'm guessing this to be the source of the error.

This may be a bug in 6.1.0, as the docs (for gsn_panel(), a similar function) state: "If any of the plots are missing, then the location where the plot would normally be will be blank." It also looks like perhaps it has been fixed in NCL-6.2.0.

I hope that helps...
Rick

On Apr 23, 2014, at 12:00 PM, Jeremy Stephan Pal <jpal@MIT.EDU> wrote:

> Hello,
>
> I have a six panel plot that has two color scales: three with BlGrYeOrReVi200 and three with BlWhRe. Two generate the plot, I use two plot variables (plot1 and plot2) and gsn_panel_return twice:
>
> plot1 = new(6,graphic)
> plot2 = new(6,graphic)
> wks = gsn_open_wks("pdf",fname)
> …
> plot1(0) = gsn_csm_contour_map(wks,v0,res0)
> plot1(1) = gsn_csm_contour_map(wks,v1,res1)
> plot1(2) = gsn_csm_contour_map(wks,v2,res2)
> plot2(3) = gsn_csm_contour_map(wks,v21,res21)
> plot2(4) = gsn_csm_contour_map(wks,v10,res10)
> plot2(5) = gsn_csm_contour_map(wks,v20,res20)
> panelid1 = gsn_panel_return(wks,plot1,(/2,3/),resp)
> panelid2 = gsn_panel_return(wks,plot2,(/2,3/),resp)
>
> With X11 and PNG output everything works as desired. With PS and PDF, I receive the following error:
>
> fatal:Could not determine type class. Incorrect BasicType requested by builtin function
> fatal:Illegal right-hand side type for assignment
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 2720 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 3110 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 7042 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 499 in file ncl_plotFluxMaxLwn.ncl
>
> Line 499 is: panelid2 = gsn_panel_return(wks,plot2,(/2,3/),resp).
>
> Any suggestions on how to fix the problem?
>
>
> Thanks,
>
> Jeremy
> _______________________________________________
> 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 Apr 23 13:19:31 2014

This archive was generated by hypermail 2.1.8 : Tue Apr 29 2014 - 09:04:20 MDT