Skip to content

Commit

Permalink
Merge pull request #928 from CliMA/kd/topmodel_artifact
Browse files Browse the repository at this point in the history
topmodel artifact
  • Loading branch information
kmdeck authored Nov 22, 2024
2 parents 8e915fc + d7597fe commit 1ffffe2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 101 deletions.
7 changes: 7 additions & 0 deletions Artifacts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ git-tree-sha1 = "2fc70601badf6f83dee2b84ba9c386ad041de8e2"
[[fluxnet_sites.download]]
sha256 = "f05b4c01b57afe9c0f59095b39cea1c0cf46b20deecd5c7afb44f474d9cd9966"
url = "https://caltech.box.com/shared/static/otrr2y0rgjct7hqhmq214nb8qjsvqj5p.gz"

[topmodel]
git-tree-sha1 = "10855ff977cc948a92c7a83915895d27650649a1"

[[topmodel.download]]
sha256 = "03de8f42fedf3836c6792571f04b55fbaca321919ecd761b846286dc56bfa2e8"
url = "https://caltech.box.com/shared/static/bfjxp72vre6b5ncm7jqf9w8hyj4ab4yr.gz"
23 changes: 4 additions & 19 deletions src/Artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,33 +164,18 @@ end
topmodel_data_path(; context = nothing)
Returns the path to the file which contains the necessary information for the TOPMODEL
runoff parameterization at 2.5 degrees resolution.
runoff parameterization at 1.0 degrees resolution.
This file was created with
https://github.com/CliMA/ClimaLand.jl/blob/main/src/standalone/Soil/Runoff/preprocess_topographic_index_simple.jl
using the data provided by
This file was created using the data provided by
Marthews, T.R., Dadson, S.J., Lehner, B., Abele, S., Gedney, N. (2015). High-resolution global topographic index values. NERC Environmental Information Data Centre. (Dataset). https://doi.org/10.5285/6b0c4358-2bf3-4924-aa8f-793d468b92be
This resource is available under the Open Government Licence (OGL), and contains data supplied by Natural Environment Research Council.
This product, High-resolution global topographic index values, has been created with use of data from the HydroSHEDS database which is © World Wildlife Fund, Inc. (2006-2013) and has been used herein under license. The HydroSHEDS database and more information are available at http://www.hydrosheds.org.
Eventually, the script processing this data, and this data, will be added to ClimaArtifacts.
"""
function topmodel_data_path(; context = nothing)
dir = joinpath(@__DIR__, "../")
topmodel_dataset = ArtifactWrapper(
dir,
"processed_topographic_index 2.5 deg",
ArtifactFile[ArtifactFile(
url = "https://caltech.box.com/shared/static/dwa7g0uzhxd50a2z3thbx3a12n0r887s.nc",
filename = "means_2.5_new.nc",
),],
)
path = joinpath(get_data_folder(topmodel_dataset), "means_2.5_new.nc")
return path

dir = @clima_artifact("topmodel", context)
return joinpath(dir, "topographic_index_statistics_1.0x1.0.nc")
end

"""
Expand Down
82 changes: 0 additions & 82 deletions src/standalone/Soil/Runoff/preprocess_topographic_index_simple.jl

This file was deleted.

0 comments on commit 1ffffe2

Please sign in to comment.