Re: Shade land in oceanic plot

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Fri, 10 Apr 2009 11:34:06 -0600

Hi Vinit,
If the data over land = _FillValue, as I am guessing yours is, then all
areas set to _FillValue are color filled with the background color, in
most cases white.

You have two choices that I can think of:
1) If the resource applies, and you are not setting cnFillMode =
"RasterFill", then you can set cnMissingValFillColor = "transparent".
Make sure mpLandFillColor = "black"

2) Again, set mpLandFillColor = "black", and then set mpFillDrawOrder =
"PostDraw", which will fill the land last, covering up whatever data
color fill was present over land.

Others might have other suggestions..
Good luck,

Asher, Vinit Narendra wrote:
> Hello,
> I have a oceanic data file where I am trying to plot the ocean TEMPERATURE field
> The value of the field for regions where there is land is 9.97e+36
> However the displayed range of values for the variable (in ncview) shows -1.46 to 34
> Could you help me figure out how to color the land black in the plot
> Best Regards,
> Vinit Asher
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

Adam Phillips			   
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Apr 10 2009 - 11:34:06 MDT

This archive was generated by hypermail 2.2.0 : Sun Apr 12 2009 - 14:28:35 MDT