GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - s-kganz/ForestLST: Modeling tree mortality with LST (and other things)

BranchesTags
Open more actions menu

Latest commit

 

History

374 Commits
374 Commits

Folders and files

NameName
Last commit message
Last commit date
data_in
data_in
 
 
notebooks
notebooks
 
 
scripts
scripts
 
 
util
util
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 
snakefile
snakefile
 
 

Repository files navigation

Predicting tree mortality in the western United States

As climate change continues, the evaporative demand on plant life also increases (Anderegg et al., 2019). This predisposes trees to die through a combination of processes (Choat et al., 2018):

  • Carbon starvation
  • Hydraulic failure
  • Attack by boring insects

Mortality events have been documented worldwide, but are particularly severe in the western US. This project has two goals:

  1. Improve annual predictions of the distribution of drought-induced tree mortality.
  2. Identify drivers of mortality over time to determine which mechanisms are most important.

Setup

First, clone the repository

git clone https://github.com/s-kganz/ForestLST
cd ForestLST

Then, create the environment. environment.yml is combination of the CryoCloud Python image and the Pangeo PyTorch image, plus a few libraries pip install'd on top.

conda env create -f environment.yml

If you want to use any of the scripts that work with earthaccess, you will have to set up a NASA Earthdata account. This is not necessary unless you want to recreate the steps we took to build the mortality datasets. Once you have done so, do the following:

  • Create a file named .netrc in your home directory. Add your earthaccess credentials to the file in the following format machine urs.earthdata.nasa.gov login <your_username> password <your_password> Now you should be able to authenticate with earthacess.login(strategy="netrc").

Datasets

If you don't care about recreating the model-ready datasets we used in this project, the netcdf files are available in the github release and on Zenodo under the data_working directory.

Recreating results

We provided a static, compressed version of the data_out directory at submission time on github/Zenodo. Inflating this and data_working in the project directory will let you recreate all the paper figures with notebooks/plots.ipynb. Other notebooks do the following:

  • download_[dem|terraclimate].ipynb: download relevant remote sensing data (not needed if you have data_working handy).
  • burn_ads.ipynb: rasterize the ADS mortality polygons (not needed if you have data_working handy).
  • coarsen_treemap.ipynb: summarize the TreeMap dataset in 3 km cells and crosswalk with hydraulic traits (not needed if you have data_working handy).
  • combine_data.ipynb: combine all the intermediate datasets into a model-ready .zarr archive.
  • gbm_[temporal_cv|shap].ipynb: fit gradient-boosted regression models to mortality data and derive shap values from predictions.
  • mort_convnet.ipynb: fit a convolutional neural network to mortality data.
  • variograms.ipynb: calculate Moran's $I$ and temporal autocorrelation at a variety of spatial and temporal lags.

License

See file LICENSE. This repo uses the MIT license to support collaboration, and I strongly encourage you to reach out to me if you want to work on this problem!

About

Modeling tree mortality with LST (and other things)

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.