[ncl-talk] About local time (UTC+9)

isakhar sakhar isakhar isakhar.inside13 at gmail.com
Mon Jan 23 20:07:33 MST 2017


Dear Mr.Dennis

I have a wrfout data and it is in UTC. I want to print in my local time
(UTC+9). I already have the file cd_inv_string.ncl and already load it in
my top of file. I also adjust as below to the my local time but I still
face the error.


time_numeric=cd_inv_string(ntimes,“%Y%N%D%H%M”)  ;; will return in hours
since 1800-01-01 unless specified otherwise
offset=-9    ; hours
time_numeric =time_numeric-offset
time=cd_string(time_numeric,“%Y%N%D%H%M” )


I got the error say: fatal:syntax error: line 34 in file script.ncl before
or near �
time_numeric=cd_inv_string(time,


My file in attachment.
Really appreciate for any help.


Big thanks
Soares
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170124/eaed47e1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script.ncl
Type: application/octet-stream
Size: 4200 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170124/eaed47e1/attachment.obj 


More information about the ncl-talk mailing list