Great, good to know. My LANG is en_US.UTF-8, everything else is not set. On Thu, 7 Jul 2011, Franz Liem wrote:
> Dear Anastasia & all. > > I fixed it. > > The problem was my LOCALE setting which leads to different handling of > decimal separators by awk (for further details see > http://objectmix.com/awk/716715-awk-different-decimal-separator-different-linux-distros.html). > > My original setting was: > % locale > LANG="de_CH.UTF-8" > LC_COLLATE="de_CH.UTF-8" > LC_CTYPE="de_CH.UTF-8" > LC_MESSAGES="de_CH.UTF-8" > LC_MONETARY="de_CH.UTF-8" > LC_NUMERIC="de_CH.UTF-8" > LC_TIME="de_CH.UTF-8" > LC_ALL= > > Therefore awk used the comma as decimal separator. > > In order to change this I added the following line to the .tcshrc file: > setenv LC_ALL en_US > > resulting in: > % locale > LANG="de_CH.UTF-8" > LC_COLLATE="en_US" > LC_CTYPE="en_US" > LC_MESSAGES="en_US" > LC_MONETARY="en_US" > LC_NUMERIC="en_US" > LC_TIME="en_US" > LC_ALL="en_US" > > Now the bvec rotation and correction works fine. > > Is your setting en_US or another format (e.g. en_US.ISO8859-1, > en_US.ISO8859-15, en_US.US-ASCII, en_US.UTF-8)? > > > Anastasia and Priti, thank you for your time. > > Best, > Franz > > Am 06.07.2011 um 21:32 schrieb Anastasia Yendiki: > >> >> I'm attaching what I get when I run it. Only the trailing zeros are missing. >> >> On Wed, 6 Jul 2011, Franz Liem wrote: >> >>> If i flip4fsl my fake file the the numbers after the decimal point are >>> missing in the output (bvecs_bvecs_onezero3decpoint1_western_out). >>> >>> I have attached a fake bvecs fitting your tutorial data (70 lines). Would >>> you be so kind, as to run this. >>> >>> Thank you so much for your help, >>> Franz >>> >>> >> <new1.mghdti.bvecs>_______________________________________________ >> Freesurfer mailing list >> Freesurfer@nmr.mgh.harvard.edu >> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer >> >> >> The information in this e-mail is intended only for the person to whom it is >> addressed. If you believe this e-mail was sent to you in error and the e-mail >> contains patient information, please contact the Partners Compliance >> HelpLine at >> http://www.partners.org/complianceline . If the e-mail was sent to you in >> error >> but does not contain patient information, please contact the sender and >> properly >> dispose of the e-mail. > > > > _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer