[ncl-talk] ncl-talk Digest, Vol 193, Issue 14

WIND 954051157 at qq.com
Sat Dec 14 02:49:04 MST 2019


Dear Shea,


Thanks very much for your help and the example program you sent before!
I couldn't load "first_occurence_ind" , so I put the two programs together.
But when I test the last day greater than 0 degree. I found the outcome confusing.
I found some "last day" is smaller than "first day".
Here are the three sentences I had changed.
                   t3= where(t3.ge.testValue, t3 at _FillValue, t3);
                   t3 = where(.not.ismissing(t3),testValue,t3)   
                   it3(nl,ml) = dim_maxind(t3,0)   
It would be so nice of you to see the attached program.

Thanks for reading again!


Sincerely,
Wind




------------------ Original ------------------
Message: 2
Date: Sat, 7 Dec 2019 10:34:04 -0700
From: Dennis Shea <shea at ucar.edu>
To: WIND <954051157 at qq.com>
Cc: ncl-talk <ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] confirm the first day greater than 0 degree
Message-ID:
	<CAOF1d_4HWTqhPxCpqwmkv-+0oMYKT4sMaTtKxDoUFM0K9em_Jg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

There is no existing NCL function for what you want. Still, *dim_minind*
<http://www.ncl.ucar.edu/Document/Functions/Contributed/dim_minind.shtml>
can be used if the
data array is pretreated [tricked].

See attached.

%> ncl tst.1st_occurence.ncl

On Thu, Dec 5, 2019 at 10:15 PM WIND via ncl-talk <ncl-talk at ucar.edu> wrote:

> Dear all,
>
> Thanks for reading, I'm dealing with the three-dimensional grid
> temperature data (ordered by time, lat, lon). I want to confirm the first
> day (position in the time dimension) in each lat/lon that the temperature
> is greater than 0. It's hard for me to think about how to write the "if"
> statement. Are there some relevant statistics function in NCL? It will be
> so nice that anyone would provide some advice.
> Any help would be appreciated!
>
> Sincerely,
> Wind

End of ncl-talk Digest, Vol 193, Issue 14
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191214/c7039a97/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testFirst&LastDay.ncl
Type: application/octet-stream
Size: 2836 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191214/c7039a97/attachment.obj>


More information about the ncl-talk mailing list