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  

|
August 06, 2003 03:15PM
OK, I am still confused by this short/float... integers/fractions issue.

You say that short datasets may appear as integers only (say, when I look at the value of a particular time point in the afni viewer graph window), but that a scaling factor is stored within the file to preserve the precision of the measurement (i.e. a value may show up as 1234, but the fact that the actual number is 1234.1234 is still preserved by the scaling factor in the associated file).

So, presumably, I could do something like use 3dcalc to multiply a dataset by .2789 and store the output dataset in short format:
3dcalc –a TS+orig –expr “a*.2789” –datum short –prefix TS_2+orig

Then, I could take that short output file, do another 3dcalc operation on it (this time * 1), but this time, I will force it to be float:
3dcalc –a TS_2+orig –expr “a*1” –datum float –prefix TS_2_1+orig

Now, if the short file (TS_2+orig) has preserved at least some of the fractional parts created by multiplying by .2789, then I should be able to see some fractions now, in the TS_2_1+orig, b/c I’ve essentially just changed it from short to float (in order to reveal the decimal value that I crave), right?

When I actually do these calculations, I do NOT produce any visible fractional parts in the TS_2_1+orig file. What am I missing here? Please straighten me out.
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