Greetings
I have two small questions regarding Python Scripting (that can be associated with GRASS):
1- is there any way or module that can be used to check if current machine is a 32b or 64b?
2- is there any way to check if a produced GRID ASCII was correctly built?
Thanks
Antonio
__________ Information from ESET NOD32 Antivirus, version of virus signature database 6270 (20110706) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
2011/7/6 António Rocha <antonio.rocha@deimos.com.pt>:
1- is there any way or module that can be used to check if current machine
is a 32b or 64b?
i think that you can use platform.architecture()
2- is there any way to check if a produced GRID ASCII was correctly built?
maybe you can create a function with python gdal, if it is possible to
read the file it's correct otherwise not
Thanks
Antonio
--
regards
Luca
http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
Hello Luca (and thanks)
platform.architecure() replies regarding Python Architecture/plaftorm not the system. In a 64b machine I got 32bits (in Windows).
Any other suggestion?
Thanks
Antonio
Luca Delucchi wrote:
2011/7/6 António Rocha <antonio.rocha@deimos.com.pt>:
1- is there any way or module that can be used to check if current machine
is a 32b or 64b?
i think that you can use platform.architecture()
2- is there any way to check if a produced GRID ASCII was correctly built?
maybe you can create a function with python gdal, if it is possible to
read the file it's correct otherwise not
Thanks
Antonio
__________ Information from ESET NOD32 Antivirus, version of virus signature database 6272 (20110707) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
2011/7/7 António Rocha <antonio.rocha@deimos.com.pt>:
Hello Luca (and thanks)
platform.architecure() replies regarding Python Architecture/plaftorm not
the system. In a 64b machine I got 32bits (in Windows).
Any other suggestion?
maybe a bug on windows? [0]
I try on GNU/Linux and it works correctly
Thanks
Antonio
[0] http://bugs.python.org/issue7860
--
best
Luca
http://gis.cri.fmach.it/delucchi/
www.lucadelu.org