Hello,
I would like to be able to recover the output of the system command context.system(' AimsFileInfo' - v...) in a file .txt under Windows. Do you know how to do?
Thanks
Aurelie
Command AimsFileInfo
- Yann Cointepas
- Posts: 316
- Joined: Tue Jan 20, 2004 2:56 pm
- Location: Neurospin, Saint Aubin, France
- Contact:
You can also directly use the aimsFileInfo function that does what you want to do and returns a dictionary:
Code: Select all
import shfjGlobals
info = shfjGlobals.aimsFileInfo( '/data/image.ima' )
print info[ 'volume_dimension' ]