diff --git a/.github/workflows/rename_project.yml b/.github/workflows/rename_project.yml
index ae6d2eb..72e4ee9 100644
--- a/.github/workflows/rename_project.yml
+++ b/.github/workflows/rename_project.yml
@@ -35,7 +35,7 @@ jobs:
echo "Renaming the project with -a(author) ${{ env.REPOSITORY_OWNER }} -n(name) ${{ env.REPOSITORY_NAME }} -u(urlname) ${{ env.REPOSITORY_URLNAME }}"
.github/rename_project.sh -a ${{ env.REPOSITORY_OWNER }} -n ${{ env.REPOSITORY_NAME }} -u ${{ env.REPOSITORY_URLNAME }} -d "Awesome ${{ env.REPOSITORY_NAME }} created by ${{ env.REPOSITORY_OWNER }}"
- - uses: stefanzweifel/git-auto-commit-action@v4
+ - uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "✅ Ready to clone and code."
# commit_options: '--amend --no-edit'
diff --git a/README.md b/README.md
index 3721d10..8d178c4 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,11 @@ Create Georeferenced Rasters of Nighttime Lights from [NASA Black Marble data](h
* [Overview](#overview)
* [Installation](#installation)
* [Bearer token](#token)
-* [Functions](#function)
+* [Functions and arguments](#function-args)
+ * [Functions](#functions)
+ * [Required Arguments](#args-required)
+ * [Optional Arguments](#args-optional)
+ * [Argument only for `bm_extract`](#args-extract)
* [Quick start](#quickstart)
* [Setup](#quickstart-setup)
* [Nighttime Lights Raster](#quickstart-raster)
@@ -45,9 +49,9 @@ The function requires using a **Bearer Token**; to obtain a token, follow the be
3. Click "See wget Download Command" (bottom near top, in the middle)
4. After clicking, you will see text that can be used to download data. The "Bearer" token will be a long string in red.
-## Functions and arguments
+## Functions and arguments
-### Functions
+### Functions
The package provides two functions:
@@ -56,7 +60,7 @@ The package provides two functions:
Both functions take the following arguments:
-### Required arguments
+### Required arguments
* __roi_sf:__ Region of interest; geopandas dataframe. Must be in the [WGS 84 (epsg:4326)](https://epsg.io/4326) coordinate reference system. For `bm_extract`, aggregates nighttime lights within each polygon of `roi_sf`.
@@ -75,7 +79,7 @@ Both functions take the following arguments:
* __bearer:__ NASA bearer token. For instructions on how to create a token, see [here](https://github.com/ramarty/blackmarblepy#bearer-token-).
-### Optional arguments
+### Optional arguments
* __variable:__ Variable to used to create raster (default: `NULL`). For information on all variable choices, see [here](https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/archives/Document%20Archive/Science%20Data%20Product%20Documentation/VIIRS_Black_Marble_UG_v1.2_April_2021.pdf); for `VNP46A1`, see Table 3; for `VNP46A2` see Table 6; for `VNP46A3` and `VNP46A4`, see Table 9. If `NULL`, uses the following default variables:
@@ -109,7 +113,7 @@ If `output_location_type = "file"`, the following arguments can be used:
* __file_prefix:__ Prefix to add to the file to be saved. The file will be saved as the following: `[file_prefix][product_id]_t[date].[tif/csv]`
* __file_skip_if_exists:__ Whether the function should first check wither the file already exists, and to skip downloading or extracting data if the data for that date if the file already exists (default: `TRUE`). If the function is first run with `date = c(2018, 2019, 2020)`, then is later run with `date = c(2018, 2019, 2020, 2021)`, the function will only download/extract data for 2021. Skipping existing files can facilitate re-running the function at a later date to download only more recent data.
-### Argument for `bm_extract` only:
+### Argument for `bm_extract` only
* __aggregation_fun:__ A vector of functions to aggregate data (default: `"mean"`). The `zonal_stats` function from the `rasterstats` package is used for aggregations; this parameter is passed to `stats` argument in `zonal_stats`.