pygmi.test.test_raster#

These are tests. Run pytest on this file from within this directory to do the tests.

Functions#

test_gradients()

test directional derivative.

test_dratio()

test derivative ratio.

test_thgrad()

test total horizontal gradient.

test_vertical()

test vertical derivative.

test_viz()

test visibility.

test_check_dataid()

test check dataid.

test_trimraster()

test trim raster.

test_equation()

tests equation editor.

test_hmode()

tests hmode.

test_aspect()

tests aspect.

test_shader()

tests shader.

test_histcomp()

tests histogram compaction.

test_histeq()

tests histogram equalisation.

test_img2rgb()

tests img to RGB.

test_norm()

tests norm2.

test_norm255()

tests norm255.

test_corr2d()

tests corr2d.

smalldata()

Small test dataset.

test_io_rasterio(smalldata, ext, drv)

Tests IO for rasterio files.

test_io_ascii(smalldata)

Tests IO for ascii files.

test_io_xyz(smalldata)

Tests IO for xyz files.

test_normalisation()

Tests for normalisation.

test_smooth()

Tests for smoothing.

test_agc()

Tests for AGC.

Module Contents#

pygmi.test.test_raster.test_gradients()#

test directional derivative.

pygmi.test.test_raster.test_dratio()#

test derivative ratio.

pygmi.test.test_raster.test_thgrad()#

test total horizontal gradient.

pygmi.test.test_raster.test_vertical()#

test vertical derivative.

pygmi.test.test_raster.test_viz()#

test visibility.

pygmi.test.test_raster.test_check_dataid()#

test check dataid.

pygmi.test.test_raster.test_trimraster()#

test trim raster.

pygmi.test.test_raster.test_equation()#

tests equation editor.

pygmi.test.test_raster.test_hmode()#

tests hmode.

pygmi.test.test_raster.test_aspect()#

tests aspect.

pygmi.test.test_raster.test_shader()#

tests shader.

pygmi.test.test_raster.test_histcomp()#

tests histogram compaction.

pygmi.test.test_raster.test_histeq()#

tests histogram equalisation.

pygmi.test.test_raster.test_img2rgb()#

tests img to RGB.

pygmi.test.test_raster.test_norm()#

tests norm2.

pygmi.test.test_raster.test_norm255()#

tests norm255.

pygmi.test.test_raster.test_corr2d()#

tests corr2d.

pygmi.test.test_raster.smalldata()#

Small test dataset.

pygmi.test.test_raster.test_io_rasterio(smalldata, ext, drv)#

Tests IO for rasterio files.

pygmi.test.test_raster.test_io_ascii(smalldata)#

Tests IO for ascii files.

pygmi.test.test_raster.test_io_xyz(smalldata)#

Tests IO for xyz files.

pygmi.test.test_raster.test_normalisation()#

Tests for normalisation.

pygmi.test.test_raster.test_smooth()#

Tests for smoothing.

pygmi.test.test_raster.test_agc()#

Tests for AGC.