View source: R/lsat_summarize_growing_seasons.R
lsat_summarize_growing_seasons | R Documentation |
This function not only computes mean, median, and 90th percentile of a spectral index (SI) using observations for a user-specified "growing season," but also estimates the annual maximum SI and associated day of year using phenology modeling and growing season observations.
lsat_summarize_growing_seasons(dt, si, min.frac.of.max = 0.75)
dt |
Data.table generated by the function lsat_fit_phenological_curves(). |
si |
Character string specifying the spectral vegetation index to summarize (e.g., NDVI). |
min.frac.of.max |
Numeric threshold (0-1) that defines the "growing season" as the seasonal window when the phenological curves indicate the SI is within a specified fraction of the maximum SI. In other words, an observation is considered to be from the "growing season" when the SI is within a user-specified fraction of the curve-fit growing season maximum SI. |
Data.table summarizing annual growing season conditions based on a spectral index.
data(lsat.example.dt)
lsat.dt <- lsat_format_data(lsat.example.dt)
lsat.dt <- lsat_clean_data(lsat.dt)
lsat.dt <- lsat_calc_spectral_index(lsat.dt, 'ndvi')
# lsat.dt <- lsat_calibrate_rf(lsat.dt, band.or.si = 'ndvi', write.output = F)
lsat.pheno.dt <- lsat_fit_phenological_curves(lsat.dt, si = 'ndvi')
lsat.gs.dt <- lsat_summarize_growing_seasons(lsat.pheno.dt, si = 'ndvi')
lsat.gs.dt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.