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 21, 2018 03:50PM
Sorry, you're missing one key piece of information. The files that end in ".aff12.1D" should have 12 values per row. If you redirect from another file or otherwise create a text file with 3 rows of 4 values, you should not use the .aff12.1D extension. Just use the .1D extension instead. Here are some example of how to use cat_matvec with these matrices. I start by creating a 4x3 matrix manually on the command line and then swap between the two formats.

cat > test.1D
1 0 0 10
0 1 0 -10
0 0 1 20
^C
% cat_matvec test.1D
1 0 0 10
0 1 0 -10
0 0 1 20
% cat_matvec -ONELINE test.1D
1 0 0 10 0 1 0 -10 0 0 1 20
% cat_matvec -ONELINE test.1D > test.aff12.1D
% cat_matvec -ONELINE test.aff12.1D
1 0 0 10 0 1 0 -10 0 0 1 20
% cat_matvec test.aff12.1D
1 0 0 10
0 1 0 -10
0 0 1 20

% cp test.1D test2.aff12.1D
% cat_matvec test2.aff12.1D
** FATAL ERROR: File 'test2.aff12.1D' has 4 values per row, which isn't 12
** Program compile date = Nov 9 2017
Subject Author Posted

A question about transformation matrix

SarahChang February 21, 2018 10:17AM

Re: A question about transformation matrix

Daniel Glen February 21, 2018 12:05PM

Re: A question about transformation matrix

SarahChang February 21, 2018 02:37PM

Re: A question about transformation matrix

SarahChang February 21, 2018 03:12PM

Re: A question about transformation matrix

Daniel Glen February 21, 2018 03:50PM