How can I set the Grass Region in Python without already having a map in the Mapset? Basically I am looking for the equivalent to this window
Currently I am only able to extent an existing region, which leads in my case to very big regions.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
How about this:
import grass.script as grass grass.run_command('g.region', n=10, s=9, e=35, w=33, ewres=0.1, nsres=0.2, verbose=True, flags='p') projection: 3 (Latitude-Longitude) zone: 0 datum: wgs84 ellipsoid: wgs84 north: 10N south: 9N west: 33E east: 35E nsres: 0:12 ewres: 0:06 rows: 5 cols: 20 cells: 100