extractR will extract mean pixel values from dates, determined from
quality assessed jpegs, of Landsat raster imagery, from locations as
provided by shape files. Common usage is for extracting vegetation indices
from field work or calibration sites. When run it will:
Copy the appropriate shape files to the appropriate quality assessed jpeg folders based on attribute id.
Looks in each jpeg folder to determine appropriate image dates i.e. stores the dates of the remaining jpegs after quality assessment.
Based on user input, extracts mean band or vegetation index value per site from the shape file.
Writes mean values to a .csv file and stores each in appropriate jpeg folder.
On completion it will join all extracted value data sets into one .csv file.
extractR(wdir, imdir, option, attrb)
Character string filepath to the working directory where the original shape files are located. This working directory must contain a folder named "site_vectors" which contains the individual shape files for extraction.
Character string filepath to the path/row level for imagery.
A character string indicating one of the following "i35", "ndvi", "b1", "b2", "b3", "b4", "b5", "b6".
A character string of the name of field in the attribute column of the shape file that contains the unique identifier for the location. This must be the same as was used to create the jpegs and is usually the site ID.
Creates individual .csv files for extracted values per shape file and another that collates them all.
Bart Huntley, [email protected]
For more details see https://rspaw.github.io/RSSApkg/index.html the RSSApkg website
1 2 3 4
## Not run: extractR(wdir = "z:/working", imdir = "W:/usgs/115078", option = "i35", attrb = "ID") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.