-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #494 from CliMA/ar/climalandsimulations_allfigures
ClimaLandSimulations make all figures of experiments
- Loading branch information
Showing
19 changed files
with
532 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: ClimaLandSimulations CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
actions: write | ||
contents: read | ||
|
||
jobs: | ||
lib-climalandsimulations: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 45 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: '1.10' | ||
- uses: julia-actions/cache@v1 | ||
- name: Install Julia dependencies | ||
run: > | ||
julia --project= -e 'using Pkg; Pkg.develop(path="$(pwd())"); Pkg.develop(path="$(pwd())/lib/ClimaLandSimulations")' | ||
- name: Run the tests | ||
continue-on-error: true | ||
env: | ||
CI_OUTPUT_DIR: output | ||
run: > | ||
julia --project= -e 'using Pkg; Pkg.test("ClimaLandSimulations")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
# ClimaLandSimulations | ||
|
||
A library of methods to run ClimaLand: | ||
- at single sites, such as FLUXNET | ||
- at single sites | ||
- globally (WIP) | ||
|
||
## Installation | ||
|
||
```jl | ||
julia> ] # to go into pkg mode | ||
pkg> add https://github.com/CliMA/ClimaLand.jl/tree/main/lib/ClimaLandSimulations # because unregistered for now | ||
pkg> add https://github.com/CliMA/ClimaLand.jl:lib/ClimaLandSimulations # because unregistered for now | ||
pkg> *backspace* # press backspace button to go back into julia mode | ||
julia> using ClimaLandSimulations | ||
``` | ||
|
||
For examples, see the [experiments](https://github.com/CliMA/ClimaLand.jl/lib/ClimaLandSimulations/experiments) folder | ||
|
||
### Development of the `ClimaLandSimulations` subpackage | ||
|
||
cd ClimaCore/lib/ClimaLandSimulations | ||
|
||
# Add ClimaCore to subpackage environment | ||
julia --project -e 'using Pkg; Pkg.develop(path="../../")' | ||
|
||
# Instantiate ClimaCoreMakie project environment | ||
julia --project -e 'using Pkg; Pkg.instantiate()' | ||
julia --project -e 'using Pkg; Pkg.test()' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 24 additions & 7 deletions
31
lib/ClimaLandSimulations/src/Fluxnet/fluxnet_sites/US-Ha1/US-Ha1_config.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,36 @@ | ||
export harvard_default_configs | ||
|
||
""" | ||
harvard_default_configs = ( | ||
data_link = "https://caltech.box.com/shared/static/xixaod6511cutz51ag81k1mtvy05hbol.csv", | ||
local_to_UTC = 5, | ||
lat = FT(42.5378), # degree | ||
long = FT(-72.1715), # degree | ||
atmos_h = FT(30), | ||
function harvard_default_configs(; | ||
data_link = "https://caltech.box.com/shared/static/xixaod6511cutz51ag81k1mtvy05hbol.csv", | ||
local_to_UTC = 5, | ||
lat = FT(42.5378), # degree | ||
long = FT(-72.1715), # degree | ||
atmos_h = FT(30), | ||
) | ||
return ( | ||
data_link = data_link, | ||
local_to_UTC = local_to_UTC, | ||
atmos_h = atmos_h, | ||
lat = lat, | ||
long = long, | ||
) | ||
end | ||
Named Tuple containing default configurations for the Harvard site. | ||
""" | ||
harvard_default_configs = ( | ||
function harvard_default_configs(; | ||
data_link = "https://caltech.box.com/shared/static/xixaod6511cutz51ag81k1mtvy05hbol.csv", | ||
local_to_UTC = 5, | ||
lat = FT(42.5378), # degree | ||
long = FT(-72.1715), # degree | ||
atmos_h = FT(30), | ||
) | ||
return ( | ||
data_link = data_link, | ||
local_to_UTC = local_to_UTC, | ||
atmos_h = atmos_h, | ||
lat = lat, | ||
long = long, | ||
) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 24 additions & 8 deletions
32
lib/ClimaLandSimulations/src/Fluxnet/fluxnet_sites/US-MOz/US-MOz_config.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
export ozark_default_configs | ||
|
||
""" | ||
ozark_default_configs = ( | ||
data_link = "https://caltech.box.com/shared/static/7r0ci9pacsnwyo0o9c25mhhcjhsu6d72.csv", | ||
local_to_UTC = 7, | ||
atmos_h = FT(32), | ||
lat = FT(38.7441), | ||
long = FT(-92.2000) | ||
) | ||
function ozark_default_configs(; | ||
data_link = "https://caltech.box.com/shared/static/7r0ci9pacsnwyo0o9c25mhhcjhsu6d72.csv", | ||
local_to_UTC = 7, | ||
atmos_h = FT(32), | ||
lat = FT(38.7441), | ||
long = FT(-92.2000), | ||
) | ||
return ( | ||
data_link = data_link, | ||
local_to_UTC = local_to_UTC, | ||
atmos_h = atmos_h, | ||
lat = lat, | ||
long = long, | ||
) | ||
end | ||
Named Tuple containing default configurations for the Ozark site. | ||
""" | ||
ozark_default_configs = ( | ||
function ozark_default_configs(; | ||
data_link = "https://caltech.box.com/shared/static/7r0ci9pacsnwyo0o9c25mhhcjhsu6d72.csv", | ||
local_to_UTC = 7, | ||
atmos_h = FT(32), | ||
lat = FT(38.7441), | ||
long = FT(-92.2000), | ||
) | ||
return ( | ||
data_link = data_link, | ||
local_to_UTC = local_to_UTC, | ||
atmos_h = atmos_h, | ||
lat = lat, | ||
long = long, | ||
) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 24 additions & 8 deletions
32
lib/ClimaLandSimulations/src/Fluxnet/fluxnet_sites/US-NR1/US-NR1_config.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
export niwotridge_default_configs | ||
|
||
""" | ||
niwot_default_configs = ( | ||
data_link = "https://caltech.box.com/shared/static/r6gvldgabk3mvtx53gevnlaq1ztsk41i.csv", | ||
local_to_UTC = 7, | ||
lat = FT(40.0329), # degree, | ||
long = FT(-105.5464), # degree, | ||
atmos_h = FT(21.5), | ||
) | ||
function niwotridge_default_configs(; | ||
data_link = "https://caltech.box.com/shared/static/r6gvldgabk3mvtx53gevnlaq1ztsk41i.csv", | ||
local_to_UTC = 7, | ||
lat = FT(40.0329), # degree, | ||
long = FT(-105.5464), # degree, | ||
atmos_h = FT(21.5), | ||
) | ||
return ( | ||
data_link = data_link, | ||
local_to_UTC = local_to_UTC, | ||
atmos_h = atmos_h, | ||
lat = lat, | ||
long = long, | ||
) | ||
end | ||
Named Tuple containing default configurations for the Niwot Ridge site. | ||
""" | ||
niwotridge_default_configs = ( | ||
function niwotridge_default_configs(; | ||
data_link = "https://caltech.box.com/shared/static/r6gvldgabk3mvtx53gevnlaq1ztsk41i.csv", | ||
local_to_UTC = 7, | ||
lat = FT(40.0329), # degree, | ||
long = FT(-105.5464), # degree, | ||
atmos_h = FT(21.5), | ||
) | ||
return ( | ||
data_link = data_link, | ||
local_to_UTC = local_to_UTC, | ||
atmos_h = atmos_h, | ||
lat = lat, | ||
long = long, | ||
) | ||
end |
Oops, something went wrong.