Hi
I would like to convert the date format from the standard one to
date -d "20111002 03 +2 hour" +"%A, %d/%m/%Y ore %H"
I write a little script
can someone help to go to the right way?
is better to use internal NCL function instead of Unix shell command?
Regards
Ugo
From: carl@cicsnc.org
Date: Mon, 3 Oct 2011 09:08:30 -0400
Subject: Re: Problems with Ut_string
To: ugomerlini@hotmail.com
CC: ncl-talk@ucar.edu
I believe you are missing some quotes on line 304. Try this:
date2 = systemfunc("date -d " + date + " +'%A %H'")
Previously, the date in parentheses was calling the unix command date, not your variable date. Hope this helps!
Carl
On Sun, Oct 2, 2011 at 1:37 PM, ugo merlini <ugomerlini@hotmail.com> wrote:
hi,
I'm trying to make a custom date format so I extract gfs timestamp and put it in a format readable from linux shel comand (lines 300 and 301) and I obtain the right format YYYYMMDD HH (line 304) as bah command line want
so i made (line 304)
date2 = systemfunc("date -d '(date)' +'%A %H'")
but the result is always Sunday 00
Why?
Regards
Ugo
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- Carl J. Schreck III, PhD Postdoctoral Research Associate Cooperative Institute for Climate and Satellites (CICS-NC) North Carolina State University and NOAA's National Climatic Data Center 151 Patton Avenue Asheville, NC 28801 Tel: 828-257-3140carl_at_cicsnc.orghttp://monitor.cicsnc.org/mjo/ http://www.atmos.albany.edu/student/carl/
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Sun Oct 09 2011 - 13:05:26 MDT