-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More test tools for IO pipeline + cleanups #617
Conversation
- Rotating GeoBoxes around center - Generate image pair that contains X,Y coords of image centers
Not sure why it was omitted, took me a while to figure out why VSCode wouldn't see these tests.
Codecov Report
@@ Coverage Diff @@
## develop #617 +/- ##
===========================================
+ Coverage 87.1% 87.55% +0.44%
===========================================
Files 94 93 -1
Lines 8385 8411 +26
===========================================
+ Hits 7304 7364 +60
+ Misses 1081 1047 -34
Continue to review full report at Codecov.
|
For generating test images such that you can reconstruct X,Y coordinate from pixel value. xy_norm takes output of xy_from_gbox and normalises it with a reversible transform such that values are in (0,1) range and gradient is not left/right, top/down but rather at an angle.
rotation when seen from the pixel plane depends on which axis are inverted, so mentioning that.
rather than returning dictionaries return `SimpleNamespace` from `rio_slurp` and `write_gtiff` functions in `testutils.io.` module.
Changes resolution of GeoBox covering the same region as original
If reading with shape change geobox for output is different than geobox for whole image.
2a4eccd
to
dda1185
Compare
Geobox when supplied takes precedence over resolution,offset,crs triplet
be consistent with normal read when dealing with multi-band files, i.e. reproject all bands not just first one.
Call to `denorm()` without arguments returns Affine matrix used to denormalise images.
dtype argument wasn't passed on/tested
Transform a bunch of points stored as x,y ndarrays from one projection to another.
- remove no longer used constants - remove python2 imports - remove unused imports - remove duplicate constants - remove some intermediate constants - convert old style type annotations to py3 - clean up of stale type annotations
python2 is no longer supported so removing more of the left overs
033df48
to
b2f3006
Compare
Mypy fixes in base libs - adding `# type: ignore` on overly dynamic things like memoized methods. - converting some of old-style type annotations to py3
b2f3006
to
f7ff0e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome cleanup work Kirill. It's nice to say goodbye to Python 2.
Thanks 👍
Reason for this pull request
compat.py
six
libraryDidn't get to start using these images for tests yet as PR grew big already.
Proposed changes
Use test images that encodex
,y
coordinates of pixel location to test that "correct enough" source pixels end up in the destination image.integration_tests
directory topytest
config file (not sure why it was omitted)