[GRASS-user] Re: problems importing vector and raster data via
python script
Margherita Di Leo
diregola at gmail.com
Wed Jan 27 12:13:48 EST 2010
>I'm running a python script under windows/eclipse, where I try to import
>a shape and a raster file with v.in.ogr and r.in.gdal.
>grass.run_command("r.in.gdal",'-o',
>input='E:\pythoninput\mnyzeron5m.asc', output='dem5m', '-o')
Sonja,
the correct command would be:
grass.run_command("r.in.gdal", input='/path/to/file', output='file', flags='o')
To import ascii files you can use r.in.ascii.
Cheers
--
Eng. Margherita Di Leo
Ph.D. Candidate
Methods and Technologies for Environmental Monitoring
Department of Environmental Engineering and Physics (DIFA)
University of Basilicata
Campus Macchia Romana
85100 - Potenza
Italy
Office: +39-0971205363
Fax: +39-0971205160
More information about the grass-user
mailing list