Re: How to mask out topography?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 12 Jun 2007 15:13:19 -0600

Andrea has posted one approach.
The following is not as sophisticated as Andrea's approach.
====
It seems to me you could also use the "mask" or "where" functions.

http://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml
http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml

====
If topog(ny,nx) and x(ny,nx) and y(ny) [ie, the "y" axis which
contains heights]

        y2d = conform(x,y,0)
        x = mask(x, topog.gt.y2d, True)

Wang, Yi wrote:
> Hi Folks:
>
> I have a 2-D plot with an idealized mountain. See my plot.
>
> I want to mask out those data which has been plotted underneath the
> mountain.
>
> What should I do?
>
> Thanks,
>
> Yi
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jun 12 2007 - 15:13:19 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 18 2007 - 10:46:11 MDT