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  

|
February 15, 2005 09:19PM
At the moment, 3dhistog only does the #0 sub-brick (or the one indicated by the -dind option). I suppose that could be modified.

One solution without modification of the program would be to catenate all the sub-bricks together into one big sub-brick, 3dhistog THAT dataset, then delete it as being kind of useless by itself. Kind of klugy, but it works. Here is a csh script to do this on a sample dataset:

#!/bin/csh
set dset = v1_time+orig
@ n = `3dnvals $dset` - 1
set lll = ( $dset'[0]' )
foreach q ( `count -dig 1 1 $n` )
set lll = ( $lll:q $dset'['$q']' )
end
3dZcat -prefix hhh $lll:q
3dhistog -nbin 0 hhh+orig > hhh.out
/bin/rm -f hhh.out

The result is in file hhh.out, which you could plot with something like 1dplot 'hhh.out[1]'

Hope this helps -- it's not very efficient for longish datasets (the sample above has 68 sub-bricks, which was pretty fast, but if you had a 1000 sub-bricks, that would be a horse of a different color, which does not exist and has an infinite number of legs).

-- bob cox
Subject Author Posted

3dhistog for time series

Lee Friedman February 15, 2005 07:02PM

Re: 3dhistog for time series

Zorkon the Magnifimoose February 15, 2005 09:19PM

Re: 3dhistog for time series

Lee Friedman February 18, 2005 11:01AM

Re: 3dhistog for time series

rick reynolds February 18, 2005 12:19PM

Re: 3dhistog for time series

Robert Cox February 18, 2005 01:13PM

Re: 3dhistog for time series

Lee Friedman February 20, 2005 08:40AM