Ejemplo n.º 1
0
                       canopy_data = "Canopy", 
                       vegDistMethod = "point", 
                       heatsource8 = "FALSE")

# imports the control file into input object
inputs.import_control_file()

# write blank inputs
inputs.setup(use_timestamp=False, overwrite=True)

# Paramaterize the lcdata and morph inputs directly 
# from nodes feature class. 
# NOTE this method currently requires use of arcpy and an active 
# ArcGIS Desktop license
inputs.parameterize_from_nodes_fc(input_file="lcdatafile", nodes_fc=nodes_fc,
                                  group_val="Example Model", grouping_field="STREAM_ID",
                                  cont_stream_km=False)

inputs.parameterize_from_nodes_fc(input_file="morphfile", nodes_fc=nodes_fc,
                                  group_val="Example Model", grouping_field="STREAM_ID",
                                  cont_stream_km=False

# Paramaterize the lccodes input 
lccodes = [('Active River Channel',100,0,0,0), 
           ('Barren - Clearcut',127,0,0,0), 
           ('Brush',128,1,0.4,0), 
           ('Dominate Coniferous',133,32,0.7,1.5), 
           ('Dominate Broadleaf (Riparian)',149,32,0.5,2), 
           ('Dominate Broadleaf (Upland)',150,32,0.5,2), 
           ('Road Unpaved',255,0,0,0)]