Re: Problems with Ut_string

From: Carl Schreck <carl_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 03 2011 - 07:08:30 MDT

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-3140
carl@cicsnc.org
http://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
Received on Mon Oct 3 07:08:59 2011

This archive was generated by hypermail 2.1.8 : Sun Oct 09 2011 - 13:05:26 MDT