From 4cab5b685e62e2e00f4a3ddb5d769e444c08d46c Mon Sep 17 00:00:00 2001 From: "Katherine M. Deck" Date: Thu, 5 Dec 2024 16:42:31 -0800 Subject: [PATCH] use low res version --- Artifacts.toml | 6 ++++++ src/Artifacts.jl | 15 ++++++++++++--- src/simulations/spatial_parameters.jl | 5 ++++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Artifacts.toml b/Artifacts.toml index cef870a11a..e054a3ad41 100644 --- a/Artifacts.toml +++ b/Artifacts.toml @@ -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" diff --git a/src/Artifacts.jl b/src/Artifacts.jl index a2cc8f64be..414b1ef6b0 100644 --- a/src/Artifacts.jl +++ b/src/Artifacts.jl @@ -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 """ diff --git a/src/simulations/spatial_parameters.jl b/src/simulations/spatial_parameters.jl index a0908fc258..a259329141 100644 --- a/src/simulations/spatial_parameters.jl +++ b/src/simulations/spatial_parameters.jl @@ -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,