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

Mohd Noor'Arifin Bin Hj Yussof arifin.yussof at met.gov.bn
Sat Jul 4 17:55:08 MDT 2020


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?

?

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

Helping you understand weather better
________________________________
From: Dave Allured - NOAA Affiliate <dave.allured at noaa.gov>
Sent: 05 July 2020 5:32 AM
To: Mohd Noor'Arifin Bin Hj Yussof
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] Change "Valid Time" on WRF NCL Plots

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<mailto: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



________________________________
Privileged/Confidential information may be contained in this message. If you are neither the intended recipient and have received this message in error, please delete this message and notify the sender immediately. Strict Prohibition: This message if received in error, whether in part or in whole, should not be reviewed, retained, copied, reused, disclosed, distributed or used for any purpose whatsoever. Such unauthorised use may be unlawful and may contain material protected by the Official Secrets Act (Cap 153) of the Laws of Brunei Darussalam. Disclaimer The Government of His Majesty the Sultan and Yang Di-Pertuan of Brunei Darussalam accepts no responsibility for loss or damage arising from the use of this message. This message shall not operate to bind to any order or contract unless pursuant to an explicit written agreement.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200704/8f9219eb/attachment.html>


More information about the ncl-talk mailing list