[ncl-talk] Getting the grid point values of certain values in a masked array

Barry Lynn barry.h.lynn at gmail.com
Wed Sep 12 23:00:32 MDT 2018


Hi:

The where statement:

avo_masked  = where(avo_zoom.gt.0.006,0.006,avo_zoom at _FillValue)


will set every grid with a value of 0.006 or greater equal to 0.006.


Is that what you wanted to do?


Barry

On Thu, Sep 13, 2018 at 12:18 AM Ty Buckingham <
ty.buckingham at manchester.ac.uk> wrote:

> Hi all,
>
> I have a masked array and wish to get the grid points (or lat/lons) of all
> of the values that are above a certain threshold. I've been messing around
> with 'where' and 'if' statements but can't quite get it.
>
> I've attached my script.
>
> Any help?
>
> Thanks in advance!
> Ty
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


-- 
Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180913/fa260275/attachment.html>


More information about the ncl-talk mailing list