Re: using different colormap in panel plot

From: [BE] Ufuk Utku Turuncoglu <turuncu_at_nyahnyahspammersnyahnyah>
Date: Thu, 29 Mar 2007 10:17:08 +0300


I think, the solution is not fit my problem. I have a panel plot which
has four figure and i want to use a one color map (for example
gui_default) for three of them and other color map (for example BlWhRe)
for forth one that has different cnMinLevelValF, cnMaxLevelValF,
cnLevelSpacingF parameters form panel plot.

An other question, is it possible to copy the content of the
Ngl.Resources instance. I try to copy the one resource to other but i
think that two of them is linked together and if i change one parameter
from resource it affects other one. I am using following sample commands,

res = Ngl.Resources()
res.sfMissingValueV = 1.E20
res.sfYArray = lat3[ymin:ymax]
res.sfXArray = lon3[xmin:xmax]
res.tfDoNDCOverlay = False

res2 = Ngl.Resources()
res2 = res
res.sfMissingValueV = 0

so, after that if i change any parameter in res2 it affects res1. is
there any easy way to copy content of the Resources instance to other?

Thanks for your help.
Best regards,

Ufuk Utku Turuncoglu

Mary Haley wrote:
> On Wed, 28 Mar 2007, [BE] Ufuk Utku Turuncoglu wrote:
>> Hi,
>> I want to use different color map in panel plot. I think it will be
>> possible in 1.2.0 version of the PyNGL using Ngl.define_colormap
>> command. But as you know, it has not released yet. How can i plot
>> this kind of figure. Any suggestion will be helpful.
>> best regards,
>> Ufuk Utku Turuncoglu
>> Istanbul Technical University
>> Informatics Institute
> Dear Ufuk,
> You can define a different color map using the "older" method, and
> that is by defining it as part of a resource list to the "open_wks"
> function:
> wkres = Ngl.Resources()
> wkres.wkColorMap = "rainbow"
> wks_type = "ps"
> wks = Ngl.open_wks(wks_type,"panel",wkres)
> We hope to release a new version of PyNGL and PyNIO once we get
> a version of NCL out the door. NCL is another related software
> project that we develop, and we are in the process of testing a new
> GRIB2 reader in it. When this is done, we will focus on PyNGL/PyNIO
> and get a GRIB2 reader released in PyNIO.
> --Mary
Received on Thu Mar 29 2007 - 01:17:08 MDT

This archive was generated by hypermail 2.2.0 : Sun Apr 01 2007 - 11:53:11 MDT