@@ -123,7 +123,7 @@ function loadSPAC(folder::String, prefix::String;
123
123
" LAI" in names (input_meteoveg) && " SAI" in names (input_meteoveg))
124
124
_to_use_canopy_evolution = input_meteoveg[:, [:days , :DENSEF , :HEIGHT , :LAI , :SAI ]] # store DataFrame in SPAC
125
125
# Assert validity of vegetation values
126
- @assert all (_to_use_canopy_evolution. LAI .> 0 ) " Error in vegetation parameters: LAI must be above 0%."
126
+ @assert all (_to_use_canopy_evolution. LAI .>= 0 ) " Error in vegetation parameters: LAI must be above 0%."
127
127
else
128
128
error ("""
129
129
Input_meteoveg is expected to contain one or multiple of the columns: :DENSEF, :HEIGHT, :LAI, or :SAI.
@@ -145,8 +145,8 @@ function loadSPAC(folder::String, prefix::String;
145
145
146
146
_to_use_canopy_evolution = canopy_evolution # store parameter arguments in SPAC
147
147
# Assert validity of vegetation values
148
- @assert all (_to_use_canopy_evolution. LAI. LAI_perc_BtoC > 0 ) " Error in vegetation parameters: LAI must be above 0%."
149
- @assert all (_to_use_canopy_evolution. LAI. LAI_perc_CtoB > 0 ) " Error in vegetation parameters: LAI must be above 0%."
148
+ @assert all (_to_use_canopy_evolution. LAI. LAI_perc_BtoC >= 0 ) " Error in vegetation parameters: LAI must be above 0%."
149
+ @assert all (_to_use_canopy_evolution. LAI. LAI_perc_CtoB >= 0 ) " Error in vegetation parameters: LAI must be above 0%."
150
150
end
151
151
152
152
# Assert validity of vegetation values
@@ -850,10 +850,9 @@ function read_path_soil_horizons(path_soil_horizons)
850
850
ClappHornberger_expected_column_names =
851
851
[" HorizonNr" ," Upper_m" ," Lower_m" ," thsat_volFrac" ," thetaf_volFrac" ," psif_kPa" ," bexp_" ," kf_mmDay" ," wtinf_" ," gravel_volFrac" ]
852
852
853
-
854
- if String .(propertynames (File (path_soil_horizons))) == MualVanGen_expected_column_names
853
+ if strip .(String .(propertynames (File (path_soil_horizons)))) == MualVanGen_expected_column_names
855
854
FLAG_MualVanGen = 1
856
- elseif String .(propertynames (File (path_soil_horizons))) == ClappHornberger_expected_column_names
855
+ elseif strip .( String .(propertynames (File (path_soil_horizons) ))) == ClappHornberger_expected_column_names
857
856
FLAG_MualVanGen = 0
858
857
else
859
858
error ("""
0 commit comments