Re: wk resources

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 17 2010 - 11:33:22 MDT

Hi Ben,
The wk resources are special, in that they need to be set in the
workstation creation. Try this:
type = "ps"
type@wkBackgroundColor = 0
type@wkFullBackground = True
type@wkColorModel = "cmyk"
wks = gsn_open_wks(type,"output")

Adam

On 03/17/2010 10:28 AM, Schwedler, Benjamin wrote:
> NCLers,
>
> I attempting to set the following resources
>
> res = True
> res@wkBackgroundColor = 0
> res@wkFullBackground = True
> res@wkColorModel = "cmyk"
>
> and producing a plot with
> plot = gsn_csm_contour_map(wks,refl,res)
>
> And receive the following errors
>
> warning:wkBackgroundColor is not a valid resource in test_contour at
> this time
> warning:wkColorModel is not a valid resource in test_contour at this time
> warning:wkFullBackground is not a valid resource in test_contour at this
> time
>
> Is this a problem with the plot type? I have tried using ps, eps, and
> pdf and receive the same error each time. I am also defining my own
> colormap. Could this be causing a problem?
> wks = gsn_open_wks("eps","refl")
> gsn_define_colormap(wks,"myradar")
>
> I have attached the entire file below in case more information is needed.
>
> Cheers,
>
> Ben
>
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 17 11:33:31 2010

This archive was generated by hypermail 2.1.8 : Wed Mar 17 2010 - 13:00:16 MDT