plot_timeseries: Plot a time series of averaged pixel values from MODIS...

View source: R/get_site_MODIS.R

plot_timeseriesR Documentation

Plot a time series of averaged pixel values from MODIS images.

Description

Create a time series of averaged pixel values from MODIS images cropped to site boundaries. Display a line plot and save to png. here.

Usage

plot_timeseries(deimsid, product, output_dir, output_proj = "3035")

Arguments

deimsid

A character. The DEIMS ID of the site from DEIMS-SDR website. DEIMS ID information here.

product

A character. The requested product. One of: "LST", VI". Default is "VI".

output_dir

a character, where MODIS images were saved This directory is returned by get_site_MODIS() The final graph as png image file will be saved here also.

output_proj

character: The EPSG code of output rasters

Details

Read all images in output_dir and prepare line plots of average pixel values over the site boundary for each band.

This function is not exported. It is called by get_site_MODIS()

Value

Full path to the saved png image.

Author(s)

Micha Silver, phD (2020) silverm@post.bgu.ac.il

Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it

References

\insertRef

sfRReLTER

\insertRef

terraRReLTER

Examples

 ## Not run: 
 # Example in Northern Negev LTER
deimsid <- "https://deims.org/871a90b2-e372-456a-93e3-518ad1e11239"
output_dir <- tempdir()
png_files <- ReLTER::plot_timeseries(deimsid, product = "VI",
    output_dir = output_dir, output_proj = "6991")
message("Output plots: ", png_files)

## End(Not run)

oggioniale/ReLTER documentation built on Jan. 4, 2024, 3:48 p.m.