'\" t -*- coding: UTF-8 -*- .if \n(.g .ds T< \\FC .if \n(.g .ds T> \\F[\n[.fam]] .de URL \\$2 \(la\\$1\(ra\\$3 .. .if \n(.g .mso www.tmac .TH pkstatprofile 1 "06 December 2020" "" "" .SH NAME pkstatprofile \- program to calculate statistics in temporal or spectral profile .SH SYNOPSIS 'nh .fi .ad l \fBpkstatprofile\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu \fB-i\fR \fIinput\fR \fB-o\fR \fIoutput\fR [\fB-f\fR \fIfunction\fR] [\fIoptions\fR] 'in \n(.iu-\nxu .ad b 'hy .SH DESCRIPTION \fBpkstatprofile\fR calculates statistics for a temporal (time series) or spectral profile. .PP .TS l l. T{ Function T} T{ Description T} .T& l l. T{ mean T} T{ calculate mean in window T} T{ median T} T{ perform a median filter in spatial (dx, dy) or spectral/temporal (dz) domain T} T{ var T} T{ calculate variance in window T} T{ stdev T} T{ calculate standard deviation in window T} T{ min T} T{ calculate minimum in window T} T{ max T} T{ calculate maximum in window T} T{ sum T} T{ calculate sum in window T} T{ mode T} T{ calculate mode of all values T} T{ ismin T} T{ 1 if value is minimum, else 0 T} T{ ismax T} T{ 1 if value is maximum, else 0 T} T{ per T} T{ calculate percentile in time series (provide percentage value as argument) T} T{ prop T} T{ calculate proportion T} T{ nvalid T} T{ report number of valid observations T} .TE .PP Calculate min and max NDVI in time series .nf \*(T< \fBpkstatprofile\fR \fB\-i\fR \fImodis_ndvi_2010.tif\fR \fB\-o\fR \fImodis_stats_2010.tif\fR \fB\-f\fR \fImin\fR \fB\-f\fR \fImax\fR \*(T> .fi .SH OPTIONS .TP \*(T<\fB\-i\fR\*(T> \fIfilename\fR, \*(T<\fB\-\-input\fR\*(T> \fIfilename\fR Input image file. .TP \*(T<\fB\-o\fR\*(T> \fIfilename\fR, \*(T<\fB\-\-output\fR\*(T> \fIfilename\fR Output image file .TP \*(T<\fB\-f\fR\*(T> \fIfunction\fR, \*(T<\fB\-\-function\fR\*(T> \fIfunction\fR Statistics function (mean, median, var, stdev, min, max, sum, mode (provide classes), ismin, ismax, proportion (provide classes), percentile, nvalid .TP \*(T<\fB\-perc\fR\*(T> \fIpercentile\fR, \*(T<\fB\-\-perc\fR\*(T> \fIpercentile\fR Percentile value(s) used for rule percentile .TP \*(T<\fB\-class\fR\*(T> \fIclass\fR, \*(T<\fB\-\-class\fR\*(T> \fIclass\fR class value(s) to use for mode, proportion .TP \*(T<\fB\-nodata\fR\*(T> \fIvalue\fR, \*(T<\fB\-\-nodata\fR\*(T> \fIvalue\fR Set nodata value(s) .TP \*(T<\fB\-ot\fR\*(T> \fItype\fR, \*(T<\fB\-\-otype\fR\*(T> \fItype\fR Data type for output image ({Byte / Int16 / UInt16 / UInt32 / Int32 / Float32 / Float64 / CInt16 / CInt32 / CFloat32 / CFloat64}). Empty string: inherit type from input image. .TP \*(T<\fB\-of\fR\*(T> \fIformat\fR, \*(T<\fB\-\-oformat\fR\*(T> \fIformat\fR Output image format (see also \fBgdal_translate\fR(1)). .TP \*(T<\fB\-ct\fR\*(T> \fIfilename\fR, \*(T<\fB\-\-ct\fR\*(T> \fIfilename\fR Color table (file with 5 columns: id R G B ALFA (0: transparent, 255: solid). Use none to omit color table. .TP \*(T<\fB\-co\fR\*(T> \fINAME=VALUE\fR, \*(T<\fB\-\-co\fR\*(T> \fINAME=VALUE\fR Creation option for output file. Multiple options can be specified. .TP \*(T<\fB\-d\fR\*(T> \fIvalue\fR, \*(T<\fB\-\-down\fR\*(T> \fIvalue\fR Down sampling factor. Use value 1 for no downsampling. Use value n>1 for downsampling (aggregation). .TP \*(T<\fB\-v\fR\*(T> \fIlevel\fR, \*(T<\fB\-\-verbose\fR\*(T> \fIlevel\fR Verbose mode if > 0