Hi,
i want to mask a region by lat/lon.
i've tried this example from http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml
x = f->X ; 2d array
x_at_lat2d = f->latitude ; 2D coordinate arrays x_at_lon2d = f->longitude latMin = -20 latMax = 60 lonMin = 110 lonMax = 270 x = where((x_at_lat2d.ge.latMin .and. x_at_lat2d.le.latMax .and. \ x_at_lon2d.ge.lonMin .and. x_at_lon2d.le.lonMax), x, x@_FillValue)
But it does not work for me because my lat and my lon are 1d arrays (defined by fpan)
in this example lat and lon are 2d.
how can I do with lat(1d) and lon(1d) ?
Thanks in advance Yann.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 12 11:52:03 2013
This archive was generated by hypermail 2.1.8 : Wed Aug 14 2013 - 18:35:09 MDT