swimpy.grassΒΆ

A module to interface SWIM and GRASS.

The main classes/plugins are interfaces to the m.swim GRASS modules and can execute them without ever starting GRASS if the following projects are given:

grass_dbstr path

The path to the GRASS database directory.

grass_locationstr

The location name.

grass_mapsetstr

The mapset name to execute the module in, i.e. new maps are created here.

The modules can either be execute as is by:

>>> subbasins.create()

Or with the GRASS_OVERWRITE environment variable set and followed by the postprocess method like this:

>>> subbasins.update()

Input arguments to the module can either be given as project settings, as class/plugin attributes or when calling the create or update methods.

Scroll To Top