Changes between Version 77 and Version 78 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
May 16, 2011, 11:19:02 AM (13 years ago)
Author:
Bborie Park
Comment:

ST_StdDev

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v77 v78  
    464464
    465465The mean returned in the coverage functions (has rastertable and rastercolumn arguments) is a weighted mean of the means of each raster tile.
     466
     467----
     468
     469'''ST_StdDev(raster, nband) -> double precision'''[[BR]]
     470This function calls ST_SummaryStats and only returns the standard deviation from that function.
     471
     4721. ST_StdDev(rast raster, nband int, hasnodata boolean) -> double precision
     473
     474  returns the standard deviation as a double precision
     475
     476  nband: index of band
     477
     478  hasnodata: if FALSE, any pixel who's value is nodata is ignored
     479
     480{{{
     481ST_StdDev(rast, 1, FALSE)
     482}}}
     483
     4842. ST_StdDev(rast raster, nband int) -> double precision
     485
     486  assumes hasnodata = FALSE
     487
     488{{{
     489ST_StdDev(rast, 2)
     490}}}
     491
     4923. ST_StdDev(rast raster, hasnodata boolean) -> double precision
     493
     494  assumes nband = 1
     495
     496{{{
     497ST_StdDev(rast, TRUE)
     498}}}
     499
     5004. ST_StdDev(rast raster) -> double precision
     501
     502  assumes nband = 1 and hasnodata = FALSE
     503
     504{{{
     505ST_StdDev(rast)
     506}}}
     507
     508The set of ST_ApproxStdDev functions are:
     509
     5101. ST_ApproxStdDev(rast raster, nband int, hasnodata boolean, sample_percent double precision) -> double precision
     511
     512  sample_percent: a value between 0 and 1 indicating the percentage of the raster band's pixels to consider
     513
     514{{{
     515ST_ApproxStdDev(rast, 3, FALSE, 0.1)
     516
     517ST_ApproxStdDev(rast, 1, TRUE, 0.5)
     518}}}
     519
     5202. ST_ApproxStdDev(rast raster, nband int, sample_percent double precision) -> double precision
     521
     522  assumes that nband = 1
     523
     524{{{
     525ST_ApproxStdDev(rast, 2 0.01)
     526
     527ST_ApproxStdDev(rast, 4, 0.025)
     528}}}
     529
     5303. ST_ApproxStdDev(rast raster, hasnodata boolean, sample_percent double precision) -> double precision
     531
     532  assumes that nband = 1
     533
     534{{{
     535ST_ApproxStdDev(rast, FALSE, 0.01)
     536
     537ST_ApproxStdDev(rast, TRUE, 0.025)
     538}}}
     539
     5404. ST_ApproxStdDev(rast raster, sample_percent double precision) -> double precision
     541
     542  assumes that nband = 1 and hasnodata = FALSE
     543
     544{{{
     545ST_ApproxStdDev(rast, 0.25)
     546}}}
     547
     5485. ST_ApproxStdDev(rast raster) -> double precision
     549
     550  assumes that nband = 1, hasnodata = FALSE and sample_percent = 0.1
     551
     552{{{
     553ST_ApproxStdDev(rast)
     554}}}
     555
     556The following functions are provided for coverage tables.
     557
     5581. ST_StdDev(rastertable text, rastercolumn text, nband int, hasnodata boolean) -> double precision
     559
     560  rastertable: name of table with raster column
     561
     562  rastercolumn: name of column of data type raster
     563
     564{{{
     565ST_StdDev('tmax_2010', 'rast', 1, FALSE)
     566
     567ST_StdDev('precip_2011', 'rast', 1, TRUE)
     568}}}
     569
     5702. ST_StdDev(rastertable text, rastercolumn text, nband int) -> double precision
     571
     572    hasnodata = FALSE
     573
     574{{{
     575ST_StdDev('tmax_2010', 'rast', 1)
     576}}}
     577
     5783. ST_StdDev(rastertable text, rastercolumn text, hasnodata boolean) -> double precision
     579
     580    nband = 1
     581
     582{{{
     583ST_StdDev('precip_2011', 'rast', TRUE)
     584}}}
     585
     5864. ST_StdDev(rastertable text, rastercolumn text) -> double precision
     587
     588    nband = 1 and hasnodata = FALSE
     589
     590{{{
     591ST_StdDev('tmin_2009', 'rast')
     592}}}
     593
     594Variations for ST_ApproxStdDev are:
     595
     5961. ST_ApproxStdDev(rastertable text, rastercolumn text, nband int, hasnodata boolean, sample_percent double precision) -> double precision
     597
     598{{{
     599ST_ApproxStdDev('tmax_2010', 'rast', 1, FALSE, 0.5)
     600
     601ST_ApproxStdDev('precip_2011', 'rast', 1, TRUE, 0.2)
     602}}}
     603
     6042. ST_ApproxStdDev(rastertable text, rastercolumn text, nband int, sample_percent double precision) -> double precision
     605
     606    hasnodata = FALSE
     607
     608{{{
     609ST_ApproxStdDev('tmax_2010', 'rast', 1, 0.5)
     610
     611ST_ApproxStdDev('precip_2011', 'rast', 1, 0.2)
     612}}}
     613
     6143. ST_ApproxStdDev(rastertable text, rastercolumn text, hasnodata boolean, sample_percent double precision) -> double precision
     615
     616    nband = 1
     617
     618{{{
     619ST_ApproxStdDev('tmax_2010', 'rast', FALSE, 0.5)
     620
     621ST_ApproxStdDev('precip_2011', 'rast', TRUE, 0.2)
     622}}}
     623
     6244. ST_ApproxStdDev(rastertable text, rastercolumn text, sample_percent double precision) -> double precision
     625
     626    nband = 1 and hasnodata = FALSE
     627
     628{{{
     629ST_ApproxStdDev('tmax_2010', 'rast', 0.5)
     630
     631ST_ApproxStdDev('precip_2011', 'rast', 0.2)
     632}}}
     633
     6345. ST_ApproxStdDev(rastertable text, rastercolumn text) -> double precision
     635
     636    nband = 1, hasnodata = FALSE and sample_percent = 0.1
     637
     638{{{
     639ST_ApproxStdDev('tmax_2010', 'rast')
     640
     641ST_ApproxStdDev('precip_2011', 'rast')
     642}}}
     643
     644The standard deviation returned in the coverage functions (has rastertable and rastercolumn arguments) is the cumulative standard deviation of all raster tiles.
    466645
    467646----