Re: Plotting Colors for Missing Values

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 6 May 2009 15:29:15 -0600 (MDT)

Hi Melissa,

Thanks for the script and data.

The problem is that the missing value fill color setting was never
working, because you need to also set:

   res_at_cnMissingValFillPattern = "SolidFill"

(The default is "hollowfill".)

The "green" fill you were seeing is from map fill. It is green
because (as Adam stated earlier) the gsn_csm_xxx_map scripts try to
fill the land area in "gray", and if your colormap doesn't have
"gray", the next closest color will be used.

I believe V5.0.0 of NCL had a bug in it in that affected map
fill being used with the high-res database. That's why you were
seeing "white" when using 5.0.0.

So, the short of it is, you need to set:

   res_at_cnMissingValFillPattern = "SolidFill"
   res_at_cnMissingValFillColor = "white"

I will make sure the resource documentation is more clear on this.


> On May 6, 2009, at 2:00 PM, Mary Haley wrote:
>> Melissa,
>> We are puzzled. Can you provide us with a full script and
>> data so we can run it here?
>> Thanks,
>> --Mary
>> On Wed, 6 May 2009, Melissa A Richards wrote:
>>> Adam,
>>> Thank you for the suggestions. I have tried them without success. I have
>>> streamlined my code to the most relevant parts and attached it below. I
>>> ran this streamlined code on NCL 5.0.0 and NCL 5.1.0. The respective
>>> plots are below (the NCL version is in the title of the plot). You will
>>> see the difference in the colors for the missing values (the left side of
>>> the plot). I have tried using color tables that contain white and color
>>> tables that do not contain white. Ironically, I have problems when the
>>> color white IS included in the color table. If I use the color table
>>> "rainbow", I have no problems. Let me know if any other information would
>>> be helpful.
>>> Thank you!
>>> Melissa
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed May 06 2009 - 15:29:15 MDT

This archive was generated by hypermail 2.2.0 : Wed May 06 2009 - 16:48:59 MDT