[ncl-talk] Extracting temperature from specific grids where LU_INDEX = 2

Barry Lynn barry.h.lynn at gmail.com
Tue Mar 14 01:49:44 MDT 2017


Hi:

I think the mask command will help:

Here is an example of how I used it.

  range_only  = snowh_rate_dom
  range_only  = mask(snowh_rate_dom,(snowh_rate_dom.ge.0.1),True)


On Tue, Mar 14, 2017 at 5:38 AM, Imran Hosen <hosen.imran09 at gmail.com>
wrote:

> Dear NCL users,
>
> Good day!
>
> I'm a new user of NCL. I want to extract temperature (T2) from wrfout file
> for the specific grid points where the LU_INDEX = 2.
>
> For example,
> f = addfile("./wrfout.nc)
> T2 = f->T2(:,:,:)
>
> It will extract temperature for whole domain for all time steps. In my
> case, I only want to extract temperature for all time steps but for the
> specific grids which grids represent LU_INDEX = 2.
>
> Could you please suggest how to do it. I would grateful to you if anyone
> please share a script.
>
> Thanks in advance.
>
> Kind regards,
> Imran
>
>
> _______________________________________________
> 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 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
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170314/a364a3b0/attachment.html 


More information about the ncl-talk mailing list