Hi Micah,
I'll take a stab at this. We do have various "DrawOrder" type
resources for controlling when portions of a plot are drawn, but
unfortunately there's no way to individually control the fill order of
the land and ocean with one of these (there's only a "mpFillDrawOrder"
resource).
However, one way to do this is to draw just a map first in which only
the oceans are filled and the lands are transparent, and then draw the
contours over a map in which the land is filled and the oceans are
transparent. By making an area transparent, this ensures that whatever
is underneath it will not get covered.
I've created a short example that illustrates this, called "micah.ncl".
You should be able to run it as is, and look at the comments for
further explanation of what's going on.
If anybody has a more elegant solution, feel free to post it!
--Mary
On Tue, 19 Jul 2005, Micah David Sklut wrote:
> NCL graphing question:
>
> I have a contour plot of wave heights that only cover the oceans (not the
> bays). The resolution of my wave heights data is 0.25 x 0.25, and because I
> want to zoom in very close, and tweaked the data file a bit to extend the
> values over the land to avoid missing data values right along the coast.
>
> Because the contours do not cover the bays, I applied an ocean color fill
> underneath the contours. Since the ocean color fill is underneath the
> contours, so is the land color fill allowing the wave height contours to go
> over top of the land (which I do not want).
>
> Is there a way to specify different color fill orders for the land and ocean
> separately?
> My desired outcome would be the ocean color fill on the bottom, contour in
> the middle, and land color fill on top.
>
> Thank you.
>
> Micah Sklut micahs@udel.edu
> Geography Department - University of Delaware
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Tue Jul 19 2005 - 19:24:34 MDT