About how to control the map show

From: Xuguang Sun <sunxg007_at_nyahnyahspammersnyahnyah>
Date: Wed, 16 Sep 2009 02:47:21 -0700 (PDT)

Dear Adam,

Thanks for your reply.

Let me to explain the questions by a simple example.

Suppose we have 500hPa geopotential height reanalysis data (whatever ECMWF or NCEP), and it is two dimentional, like h500(nlat,nlon), where, nlat=73, nlat=144.

after loading the necessary ncl scripts (gsn_code.ncl, gsn_csm.ncl, contributed.ncl and shea_util.ncl),


I can do the following operations,

res_at_mpCenterLonF = 180.0

then, we will have a contour display with land filled by "LightGray". But actually, I'm not very clear why the land is filled by "LightGray", because the default value for mpFillOn = False. This is the question 1.


On the other hand, if I redefine the colormap by


the is no map under the contour display, why? This is the question 2.


And then, as you said, I added the mpOutlineDrawOrder resources,


there is no difference from STEP 2. That means the resource mpOutlineDrawOrder doesn't work for this matter. Why? This is question 3.


Furthermore, if I changed res_at_cnFillOn = True, like the followings,

res_at_cnFillOn = True
res_at_gsnSpreadColors = True

I got a shaded contour with map outline underneath. Why? This is question 4.

In summary, I'm just confused about how to control the map by some settings. Hope to get your answer. Thanks.


Message: 1
Date: Tue, 15 Sep 2009 12:59:15 -0600
From: Adam Phillips <asphilli_at_ucar.edu>
Subject: Re: [ncl-talk] how can I remove "Reference Vector" in the
    vector label?
To: Rick Brownrigg <brownrig_at_ucar.edu>
Cc: ncl forum <ncl-talk_at_ucar.edu>
Message-ID: <4AAFE403.3090006_at_ucar.edu>
Content-Type: text/plain; charset=GB2312

Hi Xuguang,
As far as the cnFillOn question goes, I am not sure that I am totally
understanding what you are saying. Regardless, there are a slew of
"DrawOrder" resources that can be used to tell NCL when to draw things.

For instance, mpOutlineDrawOrder can be set to "PostDraw", to tell NCL
to draw the map outlines last, and therefore over, the contour field.


there's also cnFillDrawOrder:

as well as cnLineDrawOrder, cnLineLabelDrawOrder, etc...
Let us know if this doesn't help..

Rick Brownrigg wrote:
> Hi,
> Setting the resource "vcRefAnnoString2On" to "False" may solve the
> first issue. In general, there a lot of control over the labeling of
> reference vectors via the various vcRefAnno.... resources.
> I don't know about the behavior of "cnFillOn".
> Rick
> On Sep 15, 2009, at 10:27 AM, Xuguang Sun wrote:
>> Dear everyone,
>> I used gsn_csm_contour_map_ce() to draw the significant area first,
>> and then gsn_csm_vector to draw the vector, finally, by using
>> overlay (plotvc1,plotvc) and draw(plotvc1) to get the final plot.
>> However, the reference arrow label always has "Reference Vector" in
>> the vector label, how can I remove it? Thanks.
>> Question 2:
>> If I set cnFillOn = False, and then plot the two dimensional data by
>> gsn_csm_contour_map(), and get no map under the contour, why? but if
>> I set cnFillOn = True, the map comes out again.
>> Xuguang

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Sep 16 2009 - 03:47:21 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 16 2009 - 12:58:13 MDT