fwrite, decimal places

Balachandrudu Narapusetty bnarapus at GMU.EDU
Tue Feb 6 14:09:20 EST 2007


Hi,

You might want to use "prnopts" command.

You can find a quick usage of that command at
http://grads.iges.org/grads/gadoc/gadocindex.html

hope that helps,
bala


----- Original Message -----
From: Meredith Croke <mcroke at AIRDAT.COM>
Date: Tuesday, February 6, 2007 2:02 pm
Subject: fwrite, decimal places

> Hi,
>
> I am trying to write a grads script that outputs a .dat file, the
> problem I
> am running into is I can't seem to figure out how to tell grads
how
> manydecimal places I want to use.  I tried 'set dignum 2' but this
> didn't do
> anything.  My write line is as follows:
> f=write(test.dat,ds' 'hs' 'df' 'hf' 0'fff' 'TF' 'TF1' 'TF2' 'TF3'
> 'TF4''TF5' 'TF6' 'TF7' 'TF8' 'TF9,append)
>
> Is there anyway I can set the T's to REAL and declare how many
numbers
> beyond the decimal point I want?
>
> Thanks,
>
> Meredith
>



More information about the gradsusr mailing list