[ncl-talk] Change "Valid Time" on WRF NCL Plots

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Sat Jul 4 19:50:39 MDT 2020


That would depend on the data type and attributes of that variable.  Please
show printVarSummary (times).  Also show printVarSummary for the actual
variable that you are plotting, if different than "times".


On Sat, Jul 4, 2020 at 5:55 PM Mohd Noor'Arifin Bin Hj Yussof <
arifin.yussof at met.gov.bn> wrote:

> Dear Dave,
>
>
> Thank you for the input.
>
>
> So for example, in my NCL Script I would have a code that reads in the
> time values like this:
>
> *times = wrf_user_getvar(f,"times",-1)  ; get all times in the file*
>
> How then would I add the 8 hours to the "*times*" which I have read into
> memory?
>
>
> *From:* Dave Allured - NOAA Affiliate <dave.allured at noaa.gov>
> *Sent:* 05 July 2020 5:32 AM
>
> It is better to not change your data files for something like this.  I do
> not think NCL has a function that can handle time zone translation. If
> anyone knows of such a function, please let us know.
>
> However, you can adjust Valid Time in your NCL plot program, after you
> read the WRF data into memory.  Simply add 8 hours.  The actual number to
> add must be scaled to the input time units, such as "days" or "hours".
>
> If Valid Time is string rather than numeric, you must translate it to
> numeric time coordinates before adding the offset.
>
>
> On Sat, Jul 4, 2020 at 9:04 AM Mohd Noor'Arifin Bin Hj Yussof via ncl-talk
> <ncl-talk at mailman.ucar.edu> wrote:
>
>> Dear NCL Experts,
>>
>>
>> How do I change the time on the "Valid Time" on WRF NCL Plots? The time
>> in the wrfout files are all in UTC and I want to change it to my local time
>> by adding +8 hours to it. How can I do this easily?
>>
>>
>> Thanks in advance!
>>
>>
>> Kind Regards,
>>
>> *Arifin Yussof*
>> *Meteorological Officer*
>> *Officer in Digital Product Support and Numerical Weather Prediction
>> (DSNP),*
>> *Strategy and **Development **Division,*
>> *Brunei Darussalam Meteorological Department, **Ministry of Transport
>> and Infocommunications*
>>
>> *Address: **Block B23, Anggerek Desa Flat , **Simpang 32-37, **Kampung
>> Anggerek Desa, **Brunei Darussalam BB3713*
>>
>> Telephone number: (+673) *2381342 ext 233* - Website:
>> http://www.met.gov.bn - Instagram/Facebook: *@bruneiweather *- Mobile
>> App: *Brunei WX*
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200704/69250280/attachment.html>


More information about the ncl-talk mailing list