[ncl-talk] Filter dates

Lyndz olagueralyndonmark429 at gmail.com
Tue Sep 1 11:44:29 MDT 2020


Dear Sir Dennis,

OMG.haha..Got this.
I figured out the correct subsetting:  u_region = u(:,0,{latS:latN},{lonL})
I Forgot that there is 1 level, not removed in the NetCDF after
selecting 925hPa.

Thank you,



On Wed, Sep 2, 2020 at 1:25 AM Dennis Shea <shea at ucar.edu> wrote:

> What does printVarSummary(u_region) show?
>
> Likely, two dimensions:    u_region(time,lat)
>
> The following is not correct:
>
>    u_aave=*dim_avg_Wrap*
> <http://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml>
> (u_region,1.0,1.0,0)
>
> Did you look at the documentation?  There are two arguments ... not four.
>
>
> function dim_avg_n_Wrap (
> 		x        : numeric,
> 		dims [*] : integer
> 	)
>
> Maybe:
>     u_aave=*dim_avg_Wrap* <http://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml>(u_region,0)
>
>
> On Tue, Sep 1, 2020 at 11:06 AM Lyndz via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Dear NCL-experts,
>>
>> Reforwarding my previous email.
>>
>> *[Description]*
>> I would like to filter dates where the U component of winds is above 3
>> m/s between 12.5N-20N and 120E.
>>
>> *[What I have so far]*
>> Attached is the sample script.
>>
>> *[Problem]*
>>
>> My approach is to subset first the uwnd data between the said
>> latitudes and longitude, but I can't find examples on how to extract the
>> uwnd data at a specific longitude:
>>
>>   latS = 12.5
>>
>>   latN = 20.0
>>
>>   lonL = 120.0
>>
>>   u_region = u(:,{latS:latN},lonL)
>>
>>
>>
>> This part does not work.
>>
>> Then, apply the dim_avg_Wrap to get the average along the latitudes.
>>
>> I will then filter the dates with the average uwnd exceeding 3 m/s.
>>
>>
>>
>> I would like to ask for help on how to do this correctly in NCL or maybe
>> there is a better approach to do this.
>>
>>
>>
>> I'll appreciate any help.
>>
>>
>> Sincerely,
>>
>> Lyndz
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200902/82f9fd23/attachment.html>


More information about the ncl-talk mailing list