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  

|
October 10, 2019 07:27PM
... and here is a starter example:


#!/bin/tcsh

# make a list of dsets you want to view;  here, they are in a single directory
set all_dsets = ( DSET1 DSET2 DSET3 ...   )
set Ndset     = ${#all_dsets}

# have at least as many letters as $all_dsets
set all_letts = ( A B C D E F G H )
set Nlett     = ${#all_letts}

if ( ${Nlett} < ${Ndset} ) then
    echo "** Hey, going to need more than ${Nlett} for these ${Ndset} dsets!"
    exit 1
endif


# -----------------------------------------------------

set NPB = `afni -available_npb_quiet`
set x0  = 200

# open up the GUI
afni -npb ${NPB} -niml -yesplugouts -echo_edu  

# loop over datasets, move windows with each new dset opened
foreach ii ( `seq 1 1 ${Ndset}` )

    # pick out each dset, and a letter designation for the controller
    set dset = ${all_dsets[$ii]} 
    set ll   = ${all_letts[$ii]} 

    # open up each, moving a bit to the right with each new set
    plugout_drive -npb ${NPB}    -echo_edu                              \
       -com "OPEN_WINDOW ${ll}  geom=500x500+${x0}+5"                   \
       -com "OPEN_WINDOW ${ll}.axialimage geom=500x500+${x0}+200        \
             ifrac=0.8 opacity=9"                                       \
       -com "OPEN_WINDOW ${ll}.sagittalimage geom=500x500+${x0}+725     \
             ifrac=0.8 opacity=9"                                       \
       -com "SWITCH_UNDERLAY ${ll}.${dset}"                             \
       -quit

   @ x0 = $x0 + 510  
end
Subject Author Posted

Fast way to load multiple images at once

crjohnston October 10, 2019 05:17PM

Re: Fast way to load multiple images at once

ptaylor October 10, 2019 06:34PM

Re: Fast way to load multiple images at once

ptaylor October 10, 2019 07:27PM