Skip to content

Commit eb5b1d4

Browse files
committed
Remove ClimaLandSimulations
Work in progress [skip ci][ci skip]
1 parent 5a89425 commit eb5b1d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+305
-3852
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ steps:
3131
- "julia --project=test -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.add(\"MPI\"); Pkg.add(\"CUDA\"); Pkg.instantiate(;verbose=true)'"
3232
- "julia --project=test -e 'using Pkg; Pkg.status()'"
3333

34-
- echo "--- Instantiate lib/ClimaLandSimulations"
35-
- "julia --project=lib/ClimaLandSimulations -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.instantiate(;verbose=true)'"
36-
- "julia --project=lib/ClimaLandSimulations -e 'using Pkg; Pkg.status()'"
37-
3834
agents:
3935
slurm_gpus: 1
4036
# Ensures that we have all the 8 tasks on the same node
@@ -135,12 +131,6 @@ steps:
135131
env:
136132
CLIMACOMMS_DEVICE: "CUDA"
137133

138-
- group: "ClimaLandSimulations"
139-
steps:
140-
- label: "Ozark figures Makie"
141-
command: "julia --color=yes --project=lib/ClimaLandSimulations lib/ClimaLandSimulations/experiments/ozark.jl"
142-
artifact_paths: "figures/*pdf"
143-
144134
- group: "CPU: global bucket"
145135
steps:
146136
- label: "Global Bucket on CPU (functional albedo)"

.github/workflows/ClimaLandSimulations.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/Manifest-v1.11.toml

Lines changed: 4 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.11.4"
44
manifest_format = "2.0"
5-
project_hash = "53eaaa3557cec5df76ee8d7b9a7b00e0b499fc9f"
5+
project_hash = "9e96085ac4562c94c905e8c0b530862c4de3e77b"
66

77
[[deps.ADTypes]]
88
git-tree-sha1 = "e2478490447631aedba0823d4d7a80b2cc8cdb32"
@@ -277,12 +277,6 @@ git-tree-sha1 = "535c80f1c0847a4c967ea945fca21becc9de1522"
277277
uuid = "0b7ba130-8d10-5ba8-a3d6-c5182647fed9"
278278
version = "1.21.7+0"
279279

280-
[[deps.Bonito]]
281-
deps = ["Base64", "CodecZlib", "Colors", "Dates", "Deno_jll", "HTTP", "Hyperscript", "LinearAlgebra", "Markdown", "MsgPack", "Observables", "RelocatableFolders", "SHA", "Sockets", "Tables", "ThreadPools", "URIs", "UUIDs", "WidgetsBase"]
282-
git-tree-sha1 = "d7635780a8cfe0cb43c075276fd358c5b166695e"
283-
uuid = "824d6782-a2ef-11e9-3a09-e5662e0c26f8"
284-
version = "3.2.4"
285-
286280
[[deps.Bzip2_jll]]
287281
deps = ["Artifacts", "JLLWrappers", "Libdl"]
288282
git-tree-sha1 = "1b96ea4a01afe0ea4090c5c8039690672dd13f2e"
@@ -392,9 +386,9 @@ version = "0.14.30"
392386

393387
[[deps.ClimaDiagnostics]]
394388
deps = ["Accessors", "ClimaComms", "ClimaCore", "ClimaUtilities", "Dates", "NCDatasets", "OrderedCollections", "SciMLBase"]
395-
git-tree-sha1 = "a67549b46bd3629a1af5739f161bc953914f9c5e"
389+
git-tree-sha1 = "ec2ee9e870e51a9d8b76decf941f6c9d3d3b1365"
396390
uuid = "1ecacbb8-0713-4841-9a07-eb5aa8a2d53f"
397-
version = "0.2.12"
391+
version = "0.2.13"
398392

399393
[[deps.ClimaLand]]
400394
deps = ["ClimaComms", "ClimaCore", "ClimaDiagnostics", "ClimaUtilities", "Dates", "DocStringExtensions", "Insolation", "Interpolations", "LazyArtifacts", "LinearAlgebra", "NCDatasets", "SciMLBase", "StaticArrays", "SurfaceFluxes", "Thermodynamics"]
@@ -408,10 +402,9 @@ weakdeps = ["BSON", "CSV", "ClimaParams", "DataFrames", "Flux", "HTTP", "StatsBa
408402
NeuralSnowExt = ["CSV", "DataFrames", "HTTP", "Flux", "StatsBase", "BSON"]
409403

410404
[[deps.ClimaLandSimulations]]
411-
deps = ["Bonito", "CairoMakie", "ClimaComms", "ClimaCore", "ClimaDiagnostics", "ClimaLand", "ClimaParams", "ClimaTimeSteppers", "ClimaUtilities", "DataFrames", "Dates", "DelimitedFiles", "Format", "HTTP", "Insolation", "Interpolations", "InverseFunctions", "JSON", "LaTeXStrings", "MutableArithmetics", "NLsolve", "PlotUtils", "RootSolvers", "SciMLBase", "StaticArrays", "Statistics", "StatsBase", "SurfaceFluxes", "Thermodynamics", "Unitful", "UnitfulMoles", "WGLMakie"]
412405
path = "../lib/ClimaLandSimulations"
413406
uuid = "348a0bd3-1299-4261-8002-d2cd97df6055"
414-
version = "0.1.0"
407+
version = "0.0.0"
415408

416409
[[deps.ClimaParams]]
417410
deps = ["TOML"]
@@ -660,12 +653,6 @@ git-tree-sha1 = "9e2f36d3c96a820c678f2f1f1782582fcf685bae"
660653
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
661654
version = "1.9.1"
662655

663-
[[deps.Deno_jll]]
664-
deps = ["Artifacts", "JLLWrappers", "Libdl"]
665-
git-tree-sha1 = "cd6756e833c377e0ce9cd63fb97689a255f12323"
666-
uuid = "04572ae6-984a-583e-9378-9577a1c2574d"
667-
version = "1.33.4+0"
668-
669656
[[deps.DiffEqBase]]
670657
deps = ["ArrayInterface", "ConcreteStructs", "DataStructures", "DocStringExtensions", "EnumX", "EnzymeCore", "FastBroadcast", "FastClosures", "FastPower", "FunctionWrappers", "FunctionWrappersWrappers", "LinearAlgebra", "Logging", "Markdown", "MuladdMacro", "Parameters", "PrecompileTools", "Printf", "RecursiveArrayTools", "Reexport", "SciMLBase", "SciMLOperators", "SciMLStructures", "Setfield", "Static", "StaticArraysCore", "Statistics", "TruncatedStacktraces"]
671658
git-tree-sha1 = "e384a2cf3bb402e6dc66b1503ade22c7c1471c4d"
@@ -770,17 +757,6 @@ git-tree-sha1 = "c814502a79baa48e35afef7596c98d0d59f9e0eb"
770757
uuid = "3c3547ce-8d99-4f5e-a174-61eb10b00ae3"
771758
version = "0.4.11"
772759

773-
[[deps.Distances]]
774-
deps = ["LinearAlgebra", "Statistics", "StatsAPI"]
775-
git-tree-sha1 = "c7e3a542b999843086e2f29dac96a618c105be1d"
776-
uuid = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
777-
version = "0.10.12"
778-
weakdeps = ["ChainRulesCore", "SparseArrays"]
779-
780-
[deps.Distances.extensions]
781-
DistancesChainRulesCoreExt = "ChainRulesCore"
782-
DistancesSparseArraysExt = "SparseArrays"
783-
784760
[[deps.Distributed]]
785761
deps = ["Random", "Serialization", "Sockets"]
786762
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
@@ -1288,12 +1264,6 @@ git-tree-sha1 = "68c173f4f449de5b438ee67ed0c9c748dc31a2ec"
12881264
uuid = "34004b35-14d8-5ef3-9330-4cdb6864b03a"
12891265
version = "0.3.28"
12901266

1291-
[[deps.Hyperscript]]
1292-
deps = ["Test"]
1293-
git-tree-sha1 = "179267cfa5e712760cd43dcae385d7ea90cc25a4"
1294-
uuid = "47d2ed2b-36de-50cf-bf87-49c2cf4b8b91"
1295-
version = "0.0.5"
1296-
12971267
[[deps.IOCapture]]
12981268
deps = ["Logging", "Random"]
12991269
git-tree-sha1 = "b6d6bfdd7ce25b0f9b2f6b3dd56b2673a66c8770"
@@ -1996,12 +1966,6 @@ version = "0.3.5"
19961966
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
19971967
version = "2023.12.12"
19981968

1999-
[[deps.MsgPack]]
2000-
deps = ["Serialization"]
2001-
git-tree-sha1 = "f5db02ae992c260e4826fe78c942954b48e1d9c2"
2002-
uuid = "99f44e22-a591-53d1-9472-aa23ef4bd671"
2003-
version = "1.2.1"
2004-
20051969
[[deps.MuladdMacro]]
20061970
git-tree-sha1 = "cac9cc5499c25554cba55cd3c30543cff5ca4fab"
20071971
uuid = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221"
@@ -2037,12 +2001,6 @@ git-tree-sha1 = "1f78293864c5e48ecf97269b0e23d7be28eb1958"
20372001
uuid = "d41bc354-129a-5804-8e4c-c37616107c6c"
20382002
version = "7.9.0"
20392003

2040-
[[deps.NLsolve]]
2041-
deps = ["Distances", "LineSearches", "LinearAlgebra", "NLSolversBase", "Printf", "Reexport"]
2042-
git-tree-sha1 = "019f12e9a1a7880459d0173c182e6a99365d7ac1"
2043-
uuid = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
2044-
version = "4.5.1"
2045-
20462004
[[deps.NNlib]]
20472005
deps = ["Adapt", "Atomix", "ChainRulesCore", "GPUArraysCore", "KernelAbstractions", "LinearAlgebra", "Random", "ScopedValues", "Statistics"]
20482006
git-tree-sha1 = "e8d4268b4a438bdad98937e4bca45881363b4767"
@@ -2986,12 +2944,6 @@ weakdeps = ["ClimaParams"]
29862944
[deps.Thermodynamics.extensions]
29872945
CreateParametersExt = "ClimaParams"
29882946

2989-
[[deps.ThreadPools]]
2990-
deps = ["Printf", "RecipesBase", "Statistics"]
2991-
git-tree-sha1 = "50cb5f85d5646bc1422aa0238aa5bfca99ca9ae7"
2992-
uuid = "b189fb0b-2eb5-4ed4-bc0c-d34c51242431"
2993-
version = "2.1.1"
2994-
29952947
[[deps.ThreadingUtilities]]
29962948
deps = ["ManualMemory"]
29972949
git-tree-sha1 = "eda08f7e9818eb53661b3deb74e3159460dfbc27"
@@ -3096,12 +3048,6 @@ git-tree-sha1 = "975c354fcd5f7e1ddcc1f1a23e6e091d99e99bc8"
30963048
uuid = "45397f5d-5981-4c77-b2b3-fc36d6e9b728"
30973049
version = "1.6.4"
30983050

3099-
[[deps.UnitfulMoles]]
3100-
deps = ["Unitful"]
3101-
git-tree-sha1 = "cf6ae3461c3408332de9ac1253dc81600348a994"
3102-
uuid = "999f2bd7-36bf-5ba7-9bc1-c9473aa75374"
3103-
version = "0.1.1"
3104-
31053051
[[deps.UnrolledUtilities]]
31063052
git-tree-sha1 = "a9ebeb4308eaacfe49f71594c0fe38c0c655734f"
31073053
uuid = "0fe1646c-419e-43be-ac14-22321958931b"
@@ -3137,12 +3083,6 @@ git-tree-sha1 = "2f0486047a07670caad3a81a075d2e518acc5c59"
31373083
uuid = "a44049a8-05dd-5a78-86c9-5fde0876e88c"
31383084
version = "1.3.243+0"
31393085

3140-
[[deps.WGLMakie]]
3141-
deps = ["Bonito", "Colors", "FileIO", "FreeTypeAbstraction", "GeometryBasics", "Hyperscript", "LinearAlgebra", "Makie", "Observables", "PNGFiles", "PrecompileTools", "RelocatableFolders", "ShaderAbstractions", "StaticArrays"]
3142-
git-tree-sha1 = "676bd14390033825be847e138108a1c53701407d"
3143-
uuid = "276b4fcb-3e11-5398-bf8b-a0c2d153d008"
3144-
version = "0.10.18"
3145-
31463086
[[deps.Wayland_jll]]
31473087
deps = ["Artifacts", "EpollShim_jll", "Expat_jll", "JLLWrappers", "Libdl", "Libffi_jll", "Pkg", "XML2_jll"]
31483088
git-tree-sha1 = "85c7811eddec9e7f22615371c3cc81a504c508ee"
@@ -3167,12 +3107,6 @@ git-tree-sha1 = "aa1ca3c47f119fbdae8770c29820e5e6119b83f2"
31673107
uuid = "e3aaa7dc-3e4b-44e0-be63-ffb868ccd7c1"
31683108
version = "0.1.3"
31693109

3170-
[[deps.WidgetsBase]]
3171-
deps = ["Observables"]
3172-
git-tree-sha1 = "30a1d631eb06e8c868c559599f915a62d55c2601"
3173-
uuid = "eead4739-05f7-45a1-878c-cee36b57321c"
3174-
version = "0.1.4"
3175-
31763110
[[deps.WoodburyMatrices]]
31773111
deps = ["LinearAlgebra", "SparseArrays"]
31783112
git-tree-sha1 = "c1a7aa6219628fcd757dede0ca95e245c5cd9511"

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
33
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"
44
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
55
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
6+
ClimaComms = "3a4d1b5c-c61d-41fd-a00a-5873ba7a1b0d"
67
ClimaCore = "d414da3d-4745-48bb-8d80-42e94e092884"
8+
ClimaDiagnostics = "1ecacbb8-0713-4841-9a07-eb5aa8a2d53f"
79
ClimaLand = "08f4d4ce-cf43-44bb-ad95-9d2d5f413532"
810
ClimaLandSimulations = "348a0bd3-1299-4261-8002-d2cd97df6055"
911
ClimaParams = "5c42b081-d73a-476f-9059-fd94b934656c"

docs/src/folderstructure.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
- experiments: contains simple runs of `ClimaLand` models. Most of these experiments is run as part of our CI.
77
- src: contains the code of `ClimaLand` models.
88
- ext: contains a package extension for Neural Snow and an extension with constructors for model parameters
9-
- lib: contains two packages that extend ClimaLand functionality: ClimaLandSimulations and ClimaLandDashboards
109
- test: contains [unit tests](https://en.wikipedia.org/wiki/Unit_testing), which are meant to ensure small pieces of ClimaLand source code work as intended before merging pull requests.
1110

1211
and 3 GitHub actions folders. GitHub actions are `.yml` files that define workflows that are run at each pull request.
@@ -84,20 +83,6 @@ As well as two files:
8483
- ClimaLand.jl: This file is the main Julia module of `ClimaLand.jl` repository. It contains all functions defined in `/src` in a nested way, for example `ClimaLand.X`, `ClimaLand.Soil.X`, `ClimaLand.Canopy.X`, etc. When a Julia user install and uses ClimaLand via `]add ClimaLand, using ClimaLand`, they are loading those functions, and are ready to use ClimaLand codebase.
8584
- Artifacts.jl: Contains functions that return the path of the given artifact name in the current context
8685

87-
## /lib folder
88-
89-
This folder contains a subfolder, `/ClimaLandSimulations`, which contains a library of methods
90-
to easily and conveniently run ClimaLand at a variety of sites and globally. There are 3 subfolders:
91-
92-
- experiments: This folder contains scripts to run ClimaLand at a fluxnet site using ClimaLandSimulations
93-
- src: Contains source code for the ClimaLandSimulations package. There are 3 subfolders and
94-
1 file.
95-
- Dashboards: Contains scripts to create dashboards for running simulations at fluxnet sites
96-
- Fluxnet: Contains scripts to setup a ClimaLand simulation at a fluxnet site
97-
- utilities: Contains utilities used in setup of ClimaLand simulation at a fluxnet sites
98-
99-
- test: Contains tests for the ClimaLandSimulations package
100-
10186
## /ext folder
10287
This folder has one subfolder, `/neural_snow`, which contains tools to create the neural network
10388
for snow and process its data. There are also two files
@@ -121,4 +106,4 @@ subfolders:
121106
- aqua.jl: Contains code quality assurance tests tha use Aqua.jl
122107
- Project.toml: Specifies dependencies needed for testing
123108
- runtests.jl: When `test` is ran from the package manager, this file is ran. It can also be
124-
manually ran using the `test` environment. This file runs all the other test scripts.
109+
manually ran using the `test` environment. This file runs all the other test scripts.

docs/src/standalone/apps.jl

Lines changed: 0 additions & 47 deletions
This file was deleted.

docs/tutorials/calibration/minimal_working_example.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import Random # to use the same seed each run in the tutorial, optional
2323
import Logging
2424
Logging.disable_logging(Logging.Warn); # hide julia warnings
2525

26+
include("run_fluxnet.jl")
27+
2628
# ## Write a function returning our model LHF output given the parameters to calibrate
2729
function Ozark_LatentHeatFlux(params) # params is a 2 element Array
2830
g1, g0 = params

docs/tutorials/calibration/minimal_working_example_obs.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
# 3. The prior distribution of these parameters.
1313

1414
# ## Load packages
15-
import ClimaLandSimulations.Fluxnet as CLS # to run the model
1615
import EnsembleKalmanProcesses as EKP # to perform the calibration
1716
import Random # to use the same seed each run in the tutorial, optional
1817
import Logging
1918
Logging.disable_logging(Logging.Warn); # hide julia warnings
2019

20+
include("run_fluxnet.jl")
21+
2122
# ## Write a function returning our model LHF output given the parameters to calibrate
2223
function Ozark_LHF(params) # params is a 2 element Array
2324
g1, sc, pc = params

0 commit comments

Comments
 (0)