Skip to content

Commit 41f90ba

Browse files
bors[bot]Yujie-W
andauthored
Merge #52
52: add tutorial to README r=Yujie-W a=Yujie-W Co-authored-by: Yujie Wang <jesiner@gmail.com>
2 parents 00b1e98 + fb598be commit 41f90ba

File tree

1 file changed

+100
-2
lines changed

1 file changed

+100
-2
lines changed

README.md

Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CLIMA-Land
22

3+
4+
## About
5+
36
Note that CliMA Land is being refactored. During this process, no new feature will be added and only bug fix is allowed. We wish to present the refactored CliMA Land in the near future, please wait for the new version v0.2.
47

58
This project is supposed to be a community effort, leveraging all the work that has been done in Land Surface Modeling from various groups around the world. The ultimate goal here is to build a Soil-Plant-Atmosphere continuum (SPAC) bio-physical model that represents the state of the art and can be coupled to the Climate-Machine, i.e. Caltech's CLIMA initiative. The model will include multi-layer soil and canopy properties and models "observables" that can be used as constraint, e.g. Solar Induced Chlorophyll Fluorescence (SIF) on the leaf-level propagated through the canopy, reflectance in various bands as measured from space, soil and vegetation moisture content. A specific focus will be on water-carbon feedbacks by testing recent developments in stomatal optimization theories as well as plant hydraulics. We will try to adhere to some [coding structure](https://github.com/gbonan/CLM-ml_v0) developed by Gordan Bonan but implement parts from other programs, such as [SCOPE](https://github.com/Christiaanvandertol/SCOPE).
@@ -9,8 +12,6 @@ The entire model will be written in [Julia](https://docs.julialang.org/en/v1/) (
912
![Fluorescence from Space](pics/world_sif.jpg?raw=true "SIF from Space")
1013

1114

12-
13-
1415
## Land model
1516
|||
1617
|:-------------------|:--------------------------------------------|
@@ -35,6 +36,83 @@ The entire model will be written in [Julia](https://docs.julialang.org/en/v1/) (
3536
[bors-img]: https://bors.tech/images/badge_small.svg
3637
[bors-url]: https://app.bors.tech/repositories/24777
3738

39+
40+
## Examples
41+
42+
### Run CliMA Land for a single site (v0.1)
43+
44+
1. cd into a folder to start with, for example
45+
```shell
46+
$ mkdir Test-CliMA-Land
47+
$ cd Test-CliMA-Land
48+
```
49+
50+
2. install packages from CliMA Land with version control, we recommend to download our preconfigurated and tested Project.toml
51+
```toml
52+
[deps]
53+
CanopyLayers = "677f5362-5107-42e4-8e81-51d9c4a1f96c"
54+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
55+
GriddingMachine = "f20cf718-bf4d-4727-bc8f-485b1f283ac6"
56+
LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
57+
Photosynthesis = "537ec7c9-aaee-45d0-8af0-4b77892958a6"
58+
PkgUtility = "0d262f2c-28e9-492c-8e19-d7a5c4f11611"
59+
PlantHydraulics = "d6acb6ec-f7e4-548d-b108-f8a3d9a6ce13"
60+
SoilPlantAirContinuum = "2d76e174-5bec-4df2-b5ea-844408736dc2"
61+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
62+
StomataModels = "5fa394f2-99ce-4e3a-9704-be7b3526889d"
63+
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
64+
WaterPhysics = "20dd5ee6-61da-454b-ac5d-c09c2977e03a"
65+
66+
[compat]
67+
CanopyLayers = "0.1.15"
68+
DataFrames = "1.3.2"
69+
GriddingMachine = "0.1.8"
70+
Photosynthesis = "0.2.0"
71+
PkgUtility = "=0.1.13"
72+
PlantHydraulics = "0.2.13"
73+
SoilPlantAirContinuum = "0.1.15"
74+
StomataModels = "0.1.11"
75+
UnPack = "1.0.2"
76+
julia = "1.6"
77+
```
78+
79+
Alternatively, you may download it directly from our FTP
80+
```shell
81+
$ wget ftp://fluo.gps.caltech.edu/data/CliMA/tutorial-v0.1/Project.toml
82+
```
83+
84+
3. initialize the Julia environment
85+
```shell
86+
$ julia --project -e "using Pkg; Pkg.instantiate();"
87+
```
88+
89+
4. download the wrapper functions and file we prepare
90+
```shell
91+
$ wget ftp://fluo.gps.caltech.edu/data/CliMA/tutorial-v0.1/clima-land.jl
92+
$ wget ftp://fluo.gps.caltech.edu/data/CliMA/tutorial-v0.1/era5_2019_117_296_1X.csv
93+
```
94+
95+
5. Make sure you have these files in the folder before heading to next step
96+
- `Project.toml`
97+
- `Manifest.toml`
98+
- `clima-land.jl`
99+
- `era5_2019_55_329_1X.csv`
100+
101+
6. run the model for a site at 26.5N 115.5E for the year 2019
102+
```shell
103+
$ julia --project
104+
```
105+
```julia
106+
julia> include("clima-land.jl");
107+
julia> params = query_data(26.5, 115.5, 2019);
108+
julia> clima_land!(params...);
109+
```
110+
111+
7. you should get a file named `era5_2019_117_296_1X.simulation.hs.csv` after a few minutes
112+
113+
You will need to edit the functions we provided if you need to change more parameters, or output more results. Feel free to contact us through email or Github Issues (if this tutorial does not work).
114+
115+
38116
## References
39117

40118
Please cite the following when you use the CliMA Land (v0.1)
@@ -79,3 +157,23 @@ Remote Sensing of Environment. 261: 112497.
79157
pages = {112497}
80158
}
81159
```
160+
161+
### Canopy complexity
162+
Y. Wang, C. Frankenberg. 2022.
163+
On the impact of canopy model complexity on simulated carbon, water, and solar-induced chlorophyll fluorescence fluxes.
164+
Biogeosciences. 19(1): 29-45.
165+
[DOI](https://doi.org/10.5194/bg-19-29-2022)
166+
[PDF](https://github.com/Yujie-WANG/Published-Codes-Yujie-WANG/raw/master/publications/wang2022impact.pdf)
167+
[CODE](https://github.com/Yujie-WANG/Published-Codes-Yujie-WANG)
168+
169+
```
170+
@article{wang2022impact,
171+
author = {Wang, Y. and Frankenberg, C.},
172+
year = {2022},
173+
title = {On the impact of canopy model complexity on simulated carbon, water, and solar-induced chlorophyll fluorescence fluxes},
174+
journal = {Biogeosciences},
175+
volume = {19},
176+
number = {1},
177+
pages = {29--45}
178+
}
179+
```

0 commit comments

Comments
 (0)