help needed with ascii output
M P Borkow
mpborkow at NCSU.EDU
Thu Sep 1 15:38:13 EDT 2005
Thanks for the response,
Your script as written didn't work for me. I had this same problem
yesterday when I tried to use the write command, I just get "Unknown
command: 0". Even if I don't get that working, I still am unsure of how
to rewrite it to include a 'd lat' and 'd lon' command.
-Matt
> Hi Matt
> I work extensively with grads writing text and have found that the
> following method, while not elegant is for me most effective, have a
> look at my old positing below and apply to your problem. essentially
> what I posted is an idiots' version of Jennifer's' script but is
> probably easier to understand.
> You will need to assign values to each variable then create the line
> before writing the file.
> Have a look at the script then give me some specifics and I'll give
> you a hand.
> Cheers
> JP
>
>
>
> Hi
> fwrite will produce a binary file, you need to write a script,
> somthing like the following for ascii, using the write command:
>
> function main(args)
> i = 1
> while i <= 249
> 'set t ' i
> 'd htsgwsfc'
> Val=subwrd(result,4)
> write (Valuedir.txt,Val, append)
> i = i + 1
> endwhile
>
>
> Good Luck
> Jean Pierre
>
More information about the gradsusr
mailing list