Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/calculate_star_statistics.R
Calculates the statistics for the crosssections of a Star
1 2 | calculate_star_statistics(StarCrosssections, SubsetToUrban = F,
UrbanLayerName, NDVILayerName, SlopeLayerName, AspectLayerName)
|
StarCrosssections |
a list of crosssections, as created by |
SubsetToUrban |
a switch indicating if the statistics should only be calculated for urban segments. Requires |
UrbanLayerName |
name of the column which holds the urban density values |
NDVILayerName |
name of the column which holds the NDVI values |
SlopeLayerName |
name of the column which holds the slope values |
AspectLayerName |
name of the column which holds the aspect values |
The function calculates descriptive statistics for the distribution of the raster values extracted under a star.
If SubsetToUrban = T
the statistics will be calculated only for the urban segments if the input StarCrosssections
includes a logical column "IsUrban", as created by find_limit_star
.
An UrbanLayerName
is required and returns statistics for the building density distribution.
Optionally, passing NDVILayerName
, SlopeLayerName
and AspectLayerName
will return additional statistics.
All Statistics are calculated for each of the crosssections individually and then averaged over all crosssections, weighted by their length. The exception is MeanUrbanCentralOffset, for which all crosssections are equally weighted.
Calculated statistics include:
MeanUrbanMean, the weighted mean of the means of the building density
MeanUrbanSkew, the weighted mean of the skews of the building density
MeanUrbanKurtosis, the weighted mean of the kurtosis of the building density
MeanUrbanVariance, the weighted mean of the variances of the building density
MeanUrbanCentralOff, the mean number of segments by which the maximum of the curves differ from the centers of the building density distributions.
MeanGreenMean, the weighted mean of the means of the NDVI distributions
MeanUrbanGreenness, the weighted mean of the scalar products of the building density and the NDVI distributions.
MeanUrbanGreennessCor, the weighted mean of the correlations of the building density and the NDVI distributions
MeanUrbanSlope, the weighted mean of the scalar products of the building density and the slope distributions.
MeanSlopeMean, the weighted mean of the means of the slope
MeanUrbanAspect, the weighted mean of the means of the aspect
Dataframe
Johannes Mast
create_star_crosssections
,
find_limit
1 2 3 4 5 6 7 | calculate_star_statistics(
StarCrosssections = StarCross,
SubsetToUrban = F,
UrbanLayerName = "GUFNorm",
NDVILayerName = "NDVI",
SlopeLayerName = "slope",
AspectLayerName = "aspect")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.