[ncl-talk] Computing daily minimum and maximum temperatures from WRF output

Zilore Mumba zmumba at gmail.com
Wed Jul 21 12:05:47 MDT 2021


Thanks a lot Dennis.  This is very useful and answers my needs.
I really appreciate.
Zilore Mumba

On Wed, Jul 21, 2021 at 5:01 PM Dennis Shea <shea at ucar.edu> wrote:

> *calculate_daily_values*
> <https://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_daily_values.shtml> will
> return the daily minimum of each day's input values.
> It should work for any grid. For 24 hourly values, it will return the min
> value.
>
>
> ===
> As noted in the function's documentation, the
>
> *Climate Data Operators (CDO)* <https://code.zmaw.de/projects/cdo>
> operators will process all variables on the file. For example:
>
>        *cdo daymean* foo_hourly.nc  foo_daily_mean.nc
>        *cdo daymin * foo_hourly.nc  foo_daily_min.nc
>        *cdo daymax * foo_hourly.nc  foo_daily_max.nc
>        *cdo daysum * foo_hourly.nc  foo_daily_sum.nc
>
> ===
> NCL also offers: *calculate_segment_values* <https://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_segment_values.shtml>
> Calculate segment (eg, pentad [5-day], weekly [7-day]) values from high frequency temporal values.
>
>
>
> On Tue, Jul 20, 2021 at 5:50 PM Rick Brownrigg via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hi Zilore,
>>
>> I don't have an easy solution to share, and I'm not certain what your
>> data looks like, but I would have to think the functions
>> dim_min_n/dim_max_n would do what you want:
>>
>>     http://ncl.ucar.edu/Document/Functions/Built-in/dim_min_n.shtml
>>
>> http://ncl.ucar.edu/Document/Functions/Contributed/dim_min_n_Wrap.shtml
>>
>> The "Wrap" version preserves metadata, if that's important to your
>> application. Perhaps someone else can suggest a better approach.
>>
>> Rick
>>
>>
>> On Tue, Jul 20, 2021 at 3:36 PM Zilore Mumba via ncl-talk <
>> ncl-talk at mailman.ucar.edu> wrote:
>>
>>> Dear all,
>>> I am wondering if someone could have a script to compute minimum and
>>> maximum temperatures from WRF output, which they could share.
>>> I am running WRFV4.0. I want to compute  surface  minimum and maximum
>>> temperatures at all grid points so that I can plot them, for day 1 to 5.
>>> The closest I came to getting help was the post here
>>> https://www.ncl.ucar.edu/Support/talk_archives/2010/0541.html, but I am
>>> still trying to adapt this to my needs. I am also not able to find any
>>> suggestion of such a computation on the ncl website.
>>> I will appreciate it if someone has an easy solution which they can
>>> share.
>>> Thanks
>>> Zilore Mumba
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at mailman.ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>> _______________________________________________
>> 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/20210721/dd4298de/attachment.html>


More information about the ncl-talk mailing list