Lagged climatic drivers of spongy moth (Lymantria dispar dispar) outbreaks revealed by satellite-based defoliation mapping.
These codes are used to generate datasets and figures for our in preparation paper. Below to a complete guide on how to run the code and which scripts need to be run to generate each figure.
All python files are designed to be run from the command line. For javascript files, copy the code into the GEE code editor to run it. Figures are made in jupyter notebooks.
Most figures depend on the outputs from the basic pipeline. This can be run using the following sample commands:
python 0_maximum_separation.py --project=<project name> --state="New York" --submitpython 1_1_trends_theilsen.py --project=<project name> --state="New York" --submitpython 2_1_defoliation_theilsen.py --project=<project name> --state="New York" --submitpython 3_classify_denoise.py --project=<project name> --state="New York" --submit
This will generate defoliation maps for all of New York. In addition, for specific site (Mt. Pleasant, Arnot Forest, Allegheny Reservoir, and Turkey Hill), a few other pipelines need to be run for the method comparison.
python 1_2_trends_harmonic.py --project=<project name> --state="New York" --submitpython 2_2_defoliation_harmonic.py --project=<project name> --state="New York" --submitpython 2_3_defoliation_means.py --project=<project name> --state="New York" --submit
- study_site_images.js
- F1_SampleSiteShowcase.ipynb
- F2_FullMethodsGraphs.ipynb
- study_site_images.js
- F3_SampleSiteDefol.ipynb
- gridded_defoliation.js
- F4_YearlyExtent.ipynb
- gridded_defoliation.js
- gridded_precipitation.js
- gridded_temperature.js
- F5_LagCorrelations.ipynb
- calculate_ROC.js
- defoliated_area.js
- gridded_defoliation.js
- gridded_precipitation.js
- gridded_temperature.js
- T5_LagRegression.ipynb
- study_site_images.js
- FS1_LoggingShowcase.ipynb
- evaluate_defoliaiton.js
- FS2_ExampleClassification.ipynb
- aerial_survey_comp_maps.js
- FS3_2019Map.ipynb
- aerial_survey_comp_maps.js
- FS4_AerialSurveyStatewide.ipynb
- aerial_survey_comp_maps.js
- FS5_AerialSurveyStudySites.ipynb
- gridded_defoliation.py
- gridded_precipitation.py
- gridded_temperature.py
- T5_LagRegression.ipynb (to create predictions)
- FS6_LagMaps.ipynb
- calculate_ROC.js
- transition_matrix.py
- T5_LagRegression.py