[pymvpa] Fwd: Data import with pynifti
Roberto Guidotti
robbenson18 at gmail.com
Tue Mar 29 16:23:30 UTC 2011
I'm so interested in the discussion, I hope you are not bored!! ;)
The output of line code you post is:
17.0 19.0
0.0 0.0
0.0 0.0
[and other couple of zeros!!]
So I open file as NiftiImage and append every *.img in a list and then load
into a NiftiDataset!!!
RG
2011/3/29 Yaroslav Halchenko <debian at onerussian.com>
>
> On Tue, 29 Mar 2011, Roberto Guidotti wrote:
> > I haven't only my images in Talairach space after basic preprocessing
> > steps (time, motion correction etc.), when I load my dataset I print
> > scl_* values
> from an image or from a dataset? how do you load them into a dataset?
> (as a list into a single dataset or as a list of datasets which you
> concatenate in 0.4.7 or vstack in 0.6)?
>
> what would be the output if you just run below command on your .img/.hdr
> files at question:
>
> for f in *.img; do python -c "import sys, nifti as n;
> h=n.NiftiImage(sys.argv[1]).header; print h['scl_slope'], h['scl_inter']"
> $f; done
>
> > and I have my first image with the values cited above,
> > and the rest with 0.0 value. After loading I have to zscore my images
> > and proceed with other mvpa steps. Am I wrong?
>
> you are doing everything correct -- I am just trying to infer if
> you were were affected before by 'absent scaling' issue
>
> > So, I have upgraded to 0.6 version!
>
> cool -- there you should be all safe. if you are still interested we
> could continue above discussion... or just forget -- up to you ;)
>
> --
> =------------------------------------------------------------------=
> Keep in touch www.onerussian.com
> Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
>
> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20110329/f0fb8d79/attachment.htm>
More information about the Pkg-ExpPsy-PyMVPA
mailing list