Skip to main content

Tools for testing rasters

Project description

raster-tester
=============

|PyPI| |Circle CI| |codecov.io|

::

_______________ _______________
|_|_|_|_|_|_|_|_| |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| HIRU |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| DIFF |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| FROM |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| ===> |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| |_|_|_|_|_|_|_|_|

::

raster-tester [OPTIONS] COMMAND [ARGS]...

Options:
--help Show this message and exit.

Commands:
compare
crossesdateline
isaligned
isempty
istiled

``compare``
-----------

::

Usage: raster-tester compare [OPTIONS] INPUT_1 INPUT_2

Options:
-p, --pixel-threshold INTEGER Threshold for pixel diffs [default=0]
-d, --downsample INTEGER Downsample via decimated read for faster
comparison, and to handle variation in
compression artifacts [default=1]
-u, --upsample INTEGER Upsample to handle variation in compression
artifacts [default=1]
--compare-masked Only compare masks + unmasked areas of RGBA
rasters
--no-error Compare in non stderr mode: echos "(ok|not
ok) - <input_1> is (within|not within)
<pixel-threshold> pixels of <input 2>"
--debug Print ascii preview of errors
--flex-mode Allow comparison of masked RGB + RGBA
--help Show this message and exit.

``crossesdateline``
-------------------

::

Usage: raster-tester crossesdateline [OPTIONS] INPUT

Options:
--help Show this message and exit.

``isaligned``
-------------

::

Usage: raster-tester isaligned [OPTIONS] SOURCES...

Options:
--help Show this message and exit.

``isempty``
-----------

::

Usage: raster-tester isempty [OPTIONS] INPUT_1

Options:
-b, --bidx INTEGER Check one band
--randomize Iterate through windows in a psuedorandom fashion
--help Show this message and exit.

``istiled``
-----------

::

Usage: raster-tester istiled [OPTIONS] SOURCES...

Options:
--blocksize / --no-blocksize assert that sources are internally tiled
--help Show this message and exit.

.. |PyPI| image:: https://img.shields.io/pypi/v/raster-tester.svg
:target:
.. |Circle CI| image:: https://circleci.com/gh/mapbox/raster-tester.svg?style=shield&circle-token=b160fc4bebd1e032df32fe8c4aff4bbea685701d
:target: https://circleci.com/gh/mapbox/raster-tester
.. |codecov.io| image:: https://codecov.io/github/mapbox/raster-tester/coverage.svg?branch=master&token=Gz7rJmDH5d
:target: https://codecov.io/github/mapbox/raster-tester?branch=master

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raster-tester-0.10.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

raster_tester-0.10.0-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file raster-tester-0.10.0.tar.gz.

File metadata

File hashes

Hashes for raster-tester-0.10.0.tar.gz
Algorithm Hash digest
SHA256 f38f1aa4132f9177035089e0f205029c72f735d31b45f76ea7f2f27ddc4319f2
MD5 15319006bd1567059bdb90e94a0e0e3f
BLAKE2b-256 339e3f20e4b27487f11fcdd2c3bb76cd6dc7195ff543a47c6dabe2b8dd282775

See more details on using hashes here.

File details

Details for the file raster_tester-0.10.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for raster_tester-0.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5f930838c7489b0cc4a43b4104194de483166e1ec178c5dda6cb619cd2705a5e
MD5 2a74866b0c8f1423b64a925ab61825df
BLAKE2b-256 326e7fb928fbeb97d409a7c3408035fc38d7b51472741e0ea9fc9e0c67ab6aa5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page