GRASS logo

NAME

m.swim.climate.py - Soil and Water Integrated Model (SWIM) climate input preprocessor

KEYWORDS

hydrological modelling, SWIM, climate interpolation

SYNOPSIS

m.swim.climate.py
m.swim.climate.py --help
m.swim.climate.py [-dkv] subbasins=name grid=name [res=float] [lon_column=column name] [lat_column=column name] [gridfilepath=path] [ncinfopath=path] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-d
Predefined grid, will be 'grown' onto subbasin area if smaller or the grid are points.
-k
Keep intermediate files (those named *__*)
-v
Show version and change/install date of this module and grass.
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

subbasins=name [required]
Subbasins raster
SWIM subbasins
grid=name [required]
(Output/input) Name of new or old grid vector
Resulting climate grid area vector with centroids and table or if -d existing vector with lon & lat columns
res=float
grid size in degrees
Default: 0.5
lon_column=column name
If grid is prescribed, use this column as lon value.
Default: lon
lat_column=column name
If grid is prescribed, use this column as lat value.
Default: lat
gridfilepath=path
path/name of the subbasin-grid file that will be written
ncinfopath=path
Deprecated, use gridfilepath

DESCRIPTION

This module creates the grid information needed for the SWIM netCDF climate input module for regular grids. The lon-lat grid size is set via the res argument (default is 0.5 degree). An arbitrary grid can be defined by parsing it to grid and the -d flag.

EXAMPLE

Write a subbasin-grid mapping for a regular, 0.5 degree grid:
m.swim.climate subbasins=subbasins grid=halfdg_grid res=0.5 gridfilepath=project/input/climate/halfdg_grid.dat

Use points to define the grid with custom lat/lon column names and write out grid file:
m.swim.climate subbasins=subbasins -d grid=grid_points lon_column=rlon lat_column=rlat gridfilepath=project/input/climate/halfdg_grid.dat

SEE ALSO

m.swim.subbasins, Documentation [external]: m.swim

AUTHORS

Michel Wortmann, Potsdam Institute for Climate Impact Research (wortmann@pik-potsdam.de)

Last updated (docs/code): Tue Jun 16 17:02:24 2020 +0200 / Wed Jan 19 23:04:38 2022 +0000