Skip to contents

The maximum length for labels in input files which point to entries in other input files are limited to 16 characters. SWATfarmR writes labels for landuses, plant communities, and managements by adding index values. They can result in labels longer than 16 characters. This routine fixes this issue.

Usage

update_landuse_labels(project_path)

Arguments

project_path

Path to the SWAT+ project folder (i.e. TxtInOut).

Value

Rewrites the input files hru-data.hru, landuse.lum, management.sch, and plant.ini with shorter labels.