Skip to content

Commit

Permalink
Merge pull request #17 from dongqi-DQ/v1.2_gui_update
Browse files Browse the repository at this point in the history
correct LAI input variable name
  • Loading branch information
dongqi-DQ authored Dec 20, 2023
2 parents 1e8a828 + 1ae7e92 commit 948ce04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion JOBS/Berlin_DLR/INPUT/config.static-Berlin_DLR
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ pavement = "", "Berlin_pavement_type_2m_DLR.tif", "Berlin_pavement_type_2m_DLR.
street = "", "Berlin_street_type_2m_DLR.tif", "Berlin_street_type_2m_DLR.tif",

[plant]
tree_lad_max = 5.0, 5.0, 5.0,
tree_lai_max = 5.0, 5.0, 5.0,
lad_max_height = 0.4, 0.4, 0.4,
sfch = "","Berlin_vegetation_patch_height_2m_DLR.tif", "Berlin_vegetation_patch_height_2m_DLR.tif",
2 changes: 1 addition & 1 deletion JOBS/Chch_online/INPUT/config.static-Chch_online
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pavement = "", "osm", "osm",
street = "", "osm", "osm",

[plant]
tree_lad_max = 5.0, 5.0, 5.0,
tree_lai_max = 5.0, 5.0, 5.0,
lad_max_height = 0.4, 0.4, 0.4,
sfch = "","","", "",

6 changes: 3 additions & 3 deletions run_config_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
street = ast.literal_eval(config.get("urban", "street"))

## [tif files for plant canopy]
tree_lad_max = ast.literal_eval(config.get("plant", "tree_lad_max"))
tree_lai_max = ast.literal_eval(config.get("plant", "tree_lai_max"))
lad_max_height = ast.literal_eval(config.get("plant", "lad_max_height"))
sfch = ast.literal_eval(config.get("plant", "sfch"))

Expand Down Expand Up @@ -157,7 +157,7 @@
'ny': ny[i],
'nz': nz[i],
'z_origin': z_origin[i],
'tree_lad_max': tree_lad_max[i],
'tree_lai_max': tree_lai_max[i],
'lad_max_height': lad_max_height[i],
'water_temperature_file': water[i],
'water_temperature_default': water_temperature_default[i],
Expand Down Expand Up @@ -251,7 +251,7 @@
'ny': ny[i],
'nz': nz[i],
'z_origin': z_origin[i],
'tree_lad_max': tree_lad_max[i],
'tree_lai_max': tree_lai_max[i],
'lad_max_height': lad_max_height[i],
'water_temperature_file': water[i],
'water_temperature_default': water_temperature_default[i],
Expand Down
4 changes: 2 additions & 2 deletions util/create_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def generate_palm_static(case_name, tmp_path, idomain, config_proj, dom_dict):
lu_csv_file = dom_dict["lu_csv_file"]

### leaf area index parameters
tree_lad_max = dom_dict['tree_lad_max'] # default value 5.0
tree_lai_max = dom_dict['tree_lai_max'] # default value 5.0
lad_max_height = dom_dict['lad_max_height'] # default value 0.4

## water input file options
Expand Down Expand Up @@ -360,7 +360,7 @@ def generate_palm_static(case_name, tmp_path, idomain, config_proj, dom_dict):
continue
else:
# Calculate height of maximum LAD
tree_lai_scaled = tree_lad_max* tree_height[idy, idx]/scale_height
tree_lai_scaled = tree_lai_max* tree_height[idy, idx]/scale_height
z_lad_max = lad_max_height * tree_height[idy, idx]

# Calculate the maximum LAD after Lalic and Mihailovic (2004)
Expand Down

0 comments on commit 948ce04

Please sign in to comment.