iota2.tests.unittests.tests_utils.tests_utils_rasters
This module offers some tools for writing tests
Functions
|
IN: parameter consistency are not tested here (done in otb's applications) every value could be string |
|
usage : from an array of a list of array, create a raster |
|
compute brightness from a vector of values |
|
Ensure that a named directory exists; if it does not, attempt to create it. |
|
arrays use in unit tests |
|
generate a fake Sen2Cor data TODO : replace this function by downloading a Sen2Cor data from PEPS. |
|
generate a fake classification raster |
|
|
|
|
|
|
|
generate a mono-band raster |
|
|
|
|
|
generate fake s2_s2c data |
|
|
|
generate a raster with borned values |
|
double all rasters's pixels rename must be a tuple |
|
convert a raster to an array |
|
Launch a system command and raise an execption if fail |
|
test if a raster contains an unique value |
Classes
|
The class serviceCompareImageFile provides methods to compare two images file with gdal Code inspired from gdalCompare.py |