External Email - Use Caution
Hello,
I was trying to convert nifti1 files (.hdr and .img) to nii files using the command: > mri_convert -i input.hdr -it nifti1 -ot nii -o output.nii.gz But this error pop-up: mri_convert.bin: unknown flag '-i input.hdr'
The same command was working on my unit a few months ago. Does anybody know wha's going on?
Thank you very much. Best, Jennifer
External Email - Use Caution
Dear Jennifer,
could it be that you are confusing `mri_convert` and `mris_convert` (note the 's')?
Best,
Tim
On May 16, 2019 at 10:58 AM jennifer sorinas jenny_8mzn@hotmail.com wrote: I was trying to convert nifti1 files (.hdr and .img) to nii files using the command: > mri_convert -i input.hdr -it nifti1 -ot nii -o output.nii.gz But this error pop-up: mri_convert.bin: unknown flag '-i input.hdr'
The same command was working on my unit a few months ago. Does anybody know wha's going on?
Thank you very much. Best, Jennifer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
-- Dr. Tim Schäfer Postdoc Computational Neuroimaging Department of Child and Adolescent Psychiatry, Psychosomatics and Psychotherapy University Hospital Frankfurt, Goethe University Frankfurt am Main, Germany
External Email - Use Caution
Dear Tim,
Thanks for your response. I'm sure that the command is mri-convert (I was using it few months ago without problems). Btw, we are experiencing problems also with the recon-all command at different computers. I don't know which is the error, any more ideas?
Best, Jennifer
________________________________ De: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu en nombre de Tim Schäfer ts+ml@rcmd.org Enviado: jueves, 16 de mayo de 2019 11:50 Para: Freesurfer support list Asunto: Re: [Freesurfer] mri_convert issues
External Email - Use Caution
Dear Jennifer,
could it be that you are confusing `mri_convert` and `mris_convert` (note the 's')?
Best,
Tim
On May 16, 2019 at 10:58 AM jennifer sorinas jenny_8mzn@hotmail.com wrote: I was trying to convert nifti1 files (.hdr and .img) to nii files using the command: > mri_convert -i input.hdr -it nifti1 -ot nii -o output.nii.gz But this error pop-up: mri_convert.bin: unknown flag '-i input.hdr'
The same command was working on my unit a few months ago. Does anybody know wha's going on?
Thank you very much. Best, Jennifer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
-- Dr. Tim Schäfer Postdoc Computational Neuroimaging Department of Child and Adolescent Psychiatry, Psychosomatics and Psychotherapy University Hospital Frankfurt, Goethe University Frankfurt am Main, Germany
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
External Email - Use Caution
Dear Jennifer,
if your nifti1 files are named 'brain_nii.hdr' and 'brain_nii.img', try the following:
mri_convert brain_nii --out_type nii brain2.nii
Best,
Tim
On May 16, 2019 at 12:38 PM jennifer sorinas jenny_8mzn@hotmail.com wrote:
External Email - Use CautionDear Tim,
Thanks for your response. I'm sure that the command is mri-convert (I was using it few months ago without problems). Btw, we are experiencing problems also with the recon-all command at different computers. I don't know which is the error, any more ideas?
Best, Jennifer
De: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu en nombre de Tim Schäfer ts+ml@rcmd.org Enviado: jueves, 16 de mayo de 2019 11:50 Para: Freesurfer support list Asunto: Re: [Freesurfer] mri_convert issues
External Email - Use CautionDear Jennifer,
could it be that you are confusing `mri_convert` and `mris_convert` (note the 's')?
Best,
Tim
On May 16, 2019 at 10:58 AM jennifer sorinas jenny_8mzn@hotmail.com wrote: I was trying to convert nifti1 files (.hdr and .img) to nii files using the command: > mri_convert -i input.hdr -it nifti1 -ot nii -o output.nii.gz But this error pop-up: mri_convert.bin: unknown flag '-i input.hdr'
The same command was working on my unit a few months ago. Does anybody know wha's going on?
Thank you very much. Best, Jennifer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
-- Dr. Tim Schäfer Postdoc Computational Neuroimaging Department of Child and Adolescent Psychiatry, Psychosomatics and Psychotherapy University Hospital Frankfurt, Goethe University Frankfurt am Main, Germany
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Liebe Grüße,
Tim
Hi Jennifer
try
mri_convert -it nifti1 input.img output.nii.gz
you might not need the "-it nifti1"
are you sure it's a nifti and not analyze? You need to be careful you have the correct direction cosines to make sure you know which is left and which is right. Definitely bring it up in freeview after conversion and make sure that the anatomical directions you see agree with what freeview thinks they are, but that won't help with left/right unless you have a fiducial in the image
cheers Bruce
On Thu, 16 May 2019, jennifer sorinas wrote:
External Email - Use Caution
Hello,
I was trying to convert nifti1 files (.hdr and .img) to nii files using the command: > mri_convert -i input.hdr -it nifti1 -ot nii -o output.nii.gz But this error pop-up: mri_convert.bin: unknown flag '-i input.hdr'
The same command was working on my unit a few months ago. Does anybody know wha's going on?
Thank you very much. Best, Jennifer
freesurfer@nmr.mgh.harvard.edu