AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
July 16, 2003 05:41PM
If you want to make sure you have floating point data values
with 3dcalc, you need to use the "-datum float" option. I'm
guessing that you used "-fscale", which does not guarentee
it.

It is often the default to create a new dataset to be of
type "short" (2 byte integers), along with a scaling factor.
This combination allows one to have numbers in basically
any range, but with only 15 bits of accuracy (plus the sign).

As an example, suppose you were to do a computation in 3dcalc
that produced a dataset with values between -10.0 and 8.4,
with the resulting dataset being of type short. Since the
maximum magnitude of the data is 10, your scale factor will
be 10.0/32768. This will allow you data values between -10
and 10, with a precision of 0.0003052.

The actual values in such a dataset would range between
-32768 and 26214 (corresponding to [-10,8]), and the scale
factor would be .0003052. A data value of 10000 would
correspond to the value 3.052 in afni.

So you are able to look at the data as integers. But in
afni and 3dcalc, etc, the data would be treated as floating
point numbers.

Basically, that is a way to half the size of the file, with
little loss of accuracy. It is uncommon for people to need
more than 5 digits of accuracy, and for those cases, the
true floating point dataset is available.

- rick

Subject Author Posted

integers only

Elizabeth Felix July 16, 2003 04:39PM

Re: integers only

Shantanu July 16, 2003 05:40PM

Re: integers only

rick reynolds July 16, 2003 05:48PM

Re: integers only

Shantanu July 17, 2003 10:00AM

Re: integers only

rick reynolds July 16, 2003 05:41PM

Re: integers only

bob cox July 18, 2003 01:26PM

Re: integers only

Elizabeth Felix July 18, 2003 01:38PM

Re: integers only

bob cox July 18, 2003 01:53PM

Re: integers only - help again!

Elizabeth Felix August 06, 2003 03:15PM

Re: integers only - help again!

rick reynolds August 06, 2003 03:30PM

Re: integers only - help again!

Elizabeth Felix August 06, 2003 03:57PM

Re: integers only - help again!

rick reynolds August 06, 2003 04:43PM