[Thread Prev][Thread Next][Index]

RE: [ferret_users] grave accent and string problem



Another option might be to use "if then" logic in your go script to prepend zeros in front of characters that are being interpreted as number. This is generally safer and gives you the advantage of dealing with numbers which can aid further data analysis.
Regards,
Mark.

-----Original Message-----
From:	owner-ferret_users@xxxxxxxx on behalf of Steve Guimond
Sent:	Wed 6/11/2008 2:23 AM
To:	gunduz@xxxxxxxxxxxxxxx
Cc:	ferret_users@xxxxxxxx
Subject:	Re: [ferret_users] grave accent and string problem

Murat,
  I believe you need to put double quotes around 03 ("03") when giving an
arguement to a script if you want the zero in front.

Steve

=======================================================
Stephen R. Guimond
Graduate Research Assistant
Center for Ocean-Atmospheric Prediction Studies (COAPS)
=======================================================

On Tue, 10 Jun 2008 gunduz@xxxxxxxxxxxxxxx wrote:

>
>
> Hi ferret users,
>
> I am trying to generate a file name by giving arguments to a script,
> (i.e  go test.jnl  2007 11 03 126.1150 27.26800 00)
>
> =====  the test.jnl is like this,
> let yy = $1
> let mm = $2
> let dd = $3
> let lon = $4
> let lat = $5
> list/format=(f7.0,2f4.0,2f10.4)/file="test_`$1`$2`$3`$6_$4_$5.txt"/clobber/nohead
>  yy,mm,dd,lon,lat
>
> ========================================
>
> but it does not generate the txt file that I deserve,
> the third argument begin with zero (i.e 03),
> however the filename did not include this zero.
> (i.e test_200711300_126.1150_27.26800.txt)
>
> I tried the all combination of grave accent to include the zero of
> third argument with no success.
>
> How can I put the zero in the file name?
> did I miss something?
>
>
> Thank you very much in advance,
> Murat
>
>
>
>
>
>
>
>
>
>
>
>









[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement