Workflow to acquire Landsat Collection 2 Surface Reflectance and Surface Temperature products for lakes and reservoirs from point locations or lake polygons. The output of this workflow is stored in your Google Drive as tabular summaries of band data for your area of interest.
This repository is covered by the MIT use license. We request that all downstream uses of this work be available to the public when possible.
Primary repository contact: B Steele
This repository is powered by {targets}, an r-based workflow manager. In order
to use this workflow, you must have a Google Earth Engine account,
and you will need to download, install, and initialize gcloud.
For common issues with gcloud
, please
see the notes here.
Note, before any code that requires access to Google Earth Engine is run, you must execute the following command in your zsh terminal and follow the prompts in your browser:
earthengine authenticate
When complete, your terminal will read:
Successfully saved authorization token.
This token is valid for 7 days from the time of authentication.
Configuration of the config.yml file is necessary for this workflow to function.
[[this section to contain a bunch more info later]]
location file: must contain lat, lon, uniqueid
When your configuration file is complete and you have successfully authenticated your Earth Engine account, you are ready to run the {targets} pipeline! There are two steps to this:
-
update line 5 of the
_targets.R
file with the name of your config file -
run the
run_targets.Rmd
file
- _targets contains output of the _targets.R package and can be ignored.
- example_yml contains some example yml files for running this workflow, and the associated location data
- data_acquisition contains the sourced functions in the _targets.R workflow, as well as an
in
andout
folder which store end-user's data, though these files are not tracked (other than the WRS2 shapefile) by GitHub.