Skip to content

Commit

Permalink
use low res version
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Dec 6, 2024
1 parent 313d0d2 commit 4cab5b6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[soilgrids]
git-tree-sha1 = "f919da748cc973519fb136f4225cf343f5c3e41f"
[soilgrids_lowres]
git-tree-sha1 = "a8beb9dac37d1415ffe9698567c311620f2d4a81"

[[soilgrids_lowres.download]]
sha256 = "9ccc7404993a1760d0cbbeffee7b95fc8ad29a5eecdf665093ed875c9b985043"
url = "https://caltech.box.com/shared/static/99aw2gce2k65bdu0h8jkfxq4vin08gi2.gz"

[cesm2_albedo]
git-tree-sha1 = "316096635acaa8102477820f480ca02fe66eb828"
Expand Down
15 changes: 12 additions & 3 deletions src/Artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,22 @@ function soil_params_artifact_folder_path(; context = nothing)
end

"""
soil_grids_params_artifact_path(; context)
soil_grids_params_artifact_path(; lowres = true, context)
Return the path to the folder that contains the soil texture parameters
needed for the Balland and Arp (2005) thermal conductivity model.
Returns a ~1 degree version by default (lowres = true).
"""
function soil_grids_params_artifact_folder_path(; context = nothing)
return @clima_artifact("soilgrids", context)
function soil_grids_params_artifact_folder_path(;
context = nothing,
lowres = true,
)
if lowres
return @clima_artifact("soilgrids_lowres", context)
else
return @clima_artifact("soilgrids", context)
end
end

"""
Expand Down
5 changes: 4 additions & 1 deletion src/simulations/spatial_parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,10 @@ function default_spatially_varying_soil_parameters(
)

soilgrids_artifact_path =
ClimaLand.Artifacts.soil_grids_params_artifact_folder_path(; context)
ClimaLand.Artifacts.soil_grids_params_artifact_folder_path(;
lowres = true,
context,
)
ν_ss_om = SpaceVaryingInput(
joinpath(
soilgrids_artifact_path,
Expand Down

0 comments on commit 4cab5b6

Please sign in to comment.