gdal.RasterBand
A single raster band (or channel).
Table of Contents
- Methods
- Attributes
Methods
computeStatistics
		- 
						allow_approximation
Computes image statistics.
Returns the minimum, maximum, mean and standard deviation of all pixel values
in this band. If approximate statistics are sufficient, the
allow_approximation argument can be set to true in which case overviews,
or a subset of image tiles may be used in computing the statistics.
Parameters:
- 
						allow_approximationBooleanIf truestatistics may be computed based on overviews or a subset of all tiles.
Returns:
Statistics containing "min", "max", "mean",
"std_dev" properties.
createMaskBand
		- 
						flags
Adds a mask band to the current band.
Parameters:
- 
						flagsIntegerMask flags 
fill
		- 
						real_value
- 
						imaginary_value
Fill this band with a constant value.
Parameters:
- 
						real_valueNumber
- 
						[imaginary_value]Number optional
flush
		()
	Saves changes to disk.
Return the mask band associated with the band.
Returns:
getMaskFlags
		()
		
			Integer
		
	Return the status flags of the mask band associated with the band.
The result will be a bitwise OR-ed set of status flags with the following available definitions that may be extended in the future:
- GMF_ALL_VALID(- 0x01): There are no invalid pixels, all mask values will be 255. When used this will normally be the only flag set.
- GMF_PER_DATASET(- 0x02): The mask band is shared between all bands on the dataset.
- GMF_ALPHA(- 0x04): The mask band is actually an alpha band and may have values other than 0 and 255.
- GMF_NODATA(- 0x08): Indicates the mask is actually being generated from nodata values. (mutually exclusive of- GMF_ALPHA)
Returns:
Mask flags
getMetadata
		- 
						domain
Returns band metadata
Parameters:
- 
						[domain]String optional
getStatistics
		- 
						allow_approximation
- 
						force
Fetch image statistics.
Returns the minimum, maximum, mean and standard deviation of all pixel values
in this band. If approximate statistics are sufficient, the
allow_approximation argument can be set to true in which case overviews,
or a subset of image tiles may be used in computing the statistics.
Parameters:
- 
						allow_approximationBooleanIf truestatistics may be computed based on overviews or a subset of all tiles.
- 
						forceBooleanIf falsestatistics will only be returned if it can be done without rescanning the image.
Returns:
Statistics containing "min", "max", "mean",
"std_dev" properties.
setStatistics
		- 
						min
- 
						max
- 
						mean
- 
						std_dev
Set statistics on the band. This method can be used to store min/max/mean/standard deviation statistics.
Parameters:
- 
						minNumber
- 
						maxNumber
- 
						meanNumber
- 
						std_devNumber
Attributes
hasArbitraryOverviews
    Boolean
        readonly
    
    An indicator if the underlying datastore can compute arbitrary overviews
efficiently, such as is the case with OGDI over a network. Datastores with
arbitrary overviews don't generally have any fixed overviews, but GDAL's
RasterIO() method can be used in downsampling mode to get overview
data efficiently.
 node-gdal-next
            node-gdal-next