Test Report

Summary

39
36 passed 3 skipped

Warnings

WARNING
/root/mambaforge/envs/ci_env/lib/python3.10/site-packages/pyfftw/interfaces/__init__.py:266
The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
WARNING
/builds/danschef/arosics/arosics/CoReg.py:603
The target image needs to be resampled because it has a row/column rotation in its map info which is not handled by AROSICS.
WARNING
/root/mambaforge/envs/ci_env/lib/python3.10/site-packages/geoarray/baseclasses.py:1413
More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
WARNING
/builds/danschef/arosics/arosics/CoReg_local.py:717
This function is still under construction and may not work as expected!
WARNING
/builds/danschef/arosics/arosics/CoReg_local.py:388
The reference image needs to be resampled because it has a row/column rotation in its map info which is not handled by AROSICS.
WARNING
/builds/danschef/arosics/arosics/Tie_Point_Grid.py:735
The 'b' parameter of grid() has been renamed 'visible' since Matplotlib 3.5; support for the old name will be dropped two minor releases later.
WARNING
/builds/danschef/arosics/arosics/Tie_Point_Grid.py:890
Column names longer than 10 characters will be truncated when saved to ESRI Shapefile.
WARNING
/builds/danschef/arosics/arosics/Tie_Point_Grid.py:890
Column names longer than 10 characters will be truncated when saved to ESRI Shapefile.

Tests

tests/test_COREG.py 193 0:00:18.058673

PASSED COREG_GLOBAL_init::test_coreg_init_from_disk 0:00:00.421088

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 344720/5848485

Teardown

PASSED COREG_GLOBAL_init::test_coreg_init_from_inMem_GeoArray 0:00:00.418203

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 344720/5848485

Teardown

PASSED COREG_GLOBAL_init::test_empty_image 0:00:00.344906

Setup

Call

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_correct_shifts_with_resampling 0:00:01.271223

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 344720/5848485
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.4045723988393856/-0.23333798094904815
Calculated total shifts in fft pixel units (X/Y):         -0.5954276011606143/1.7666620190509519
Calculated total shifts in reference pixel units (X/Y):   -0.5954276011606143/1.7666620190509519
Calculated total shifts in target pixel units (X/Y):      -0.5954276011606143/1.7666620190509519
Calculated map shifts (X,Y):				  -5.954276011616457/-17.666620190255344
Calculated absolute shift vector length in map units:     18.64303815823078
Calculated angle of shift vector in degrees from North:   18.625636712373662
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335434.0457239884', '5866472.33337981', 10.0, 10.0, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.4548 => 0.6928
Estimated reliability of the calculated shifts:  84.1 %
Correcting geometric shifts...
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.
Captured stderr call

Warping progress     |--------------------------------------------------| 0.0% Complete  => 0:00:00
Warping progress     |===========---------------------------------------| 22.4% Complete  => 0:00:00
Warping progress     |===================-------------------------------| 37.1% Complete  => 0:00:00
Warping progress     |===================-------------------------------| 38.0% Complete  => 0:00:00
Warping progress     |====================------------------------------| 39.0% Complete  => 0:00:00
Warping progress     |====================------------------------------| 40.0% Complete  => 0:00:00
Warping progress     |=====================-----------------------------| 41.0% Complete  => 0:00:00
Warping progress     |=====================-----------------------------| 42.0% Complete  => 0:00:00
Warping progress     |======================----------------------------| 43.1% Complete  => 0:00:00
Warping progress     |======================----------------------------| 44.0% Complete  => 0:00:00
Warping progress     |=======================---------------------------| 45.0% Complete  => 0:00:00
Warping progress     |=======================---------------------------| 46.0% Complete  => 0:00:00
Warping progress     |========================--------------------------| 47.0% Complete  => 0:00:00
Warping progress     |========================--------------------------| 48.0% Complete  => 0:00:00
Warping progress     |=========================-------------------------| 49.0% Complete  => 0:00:00
Warping progress     |=========================-------------------------| 50.0% Complete  => 0:00:00
Warping progress     |==========================------------------------| 51.0% Complete  => 0:00:00
Warping progress     |==========================------------------------| 52.1% Complete  => 0:00:00
Warping progress     |===========================-----------------------| 53.0% Complete  => 0:00:00
Warping progress     |===========================-----------------------| 54.0% Complete  => 0:00:00
Warping progress     |============================----------------------| 55.0% Complete  => 0:00:00
Warping progress     |============================----------------------| 56.0% Complete  => 0:00:00
Warping progress     |=============================---------------------| 57.0% Complete  => 0:00:00
Warping progress     |=============================---------------------| 58.0% Complete  => 0:00:00
Warping progress     |==============================--------------------| 59.0% Complete  => 0:00:00
Warping progress     |==============================--------------------| 60.1% Complete  => 0:00:00
Warping progress     |===============================-------------------| 61.0% Complete  => 0:00:00
Warping progress     |===============================-------------------| 62.0% Complete  => 0:00:00
Warping progress     |================================------------------| 63.0% Complete  => 0:00:00
Warping progress     |================================------------------| 64.0% Complete  => 0:00:00
Warping progress     |=================================-----------------| 65.0% Complete  => 0:00:00
Warping progress     |=================================-----------------| 66.0% Complete  => 0:00:00
Warping progress     |==================================----------------| 67.0% Complete  => 0:00:00
Warping progress     |==================================----------------| 68.0% Complete  => 0:00:00
Warping progress     |===================================---------------| 69.0% Complete  => 0:00:00
Warping progress     |===================================---------------| 70.1% Complete  => 0:00:00
Warping progress     |====================================--------------| 71.0% Complete  => 0:00:00
Warping progress     |====================================--------------| 72.0% Complete  => 0:00:00
Warping progress     |=====================================-------------| 73.0% Complete  => 0:00:00
Warping progress     |=====================================-------------| 74.0% Complete  => 0:00:00
Warping progress     |======================================------------| 75.0% Complete  => 0:00:00
Warping progress     |======================================------------| 76.0% Complete  => 0:00:00
Warping progress     |=======================================-----------| 77.0% Complete  => 0:00:00
Warping progress     |=======================================-----------| 78.0% Complete  => 0:00:00
Warping progress     |========================================----------| 79.0% Complete  => 0:00:00
Warping progress     |========================================----------| 80.0% Complete  => 0:00:00
Warping progress     |=========================================---------| 81.0% Complete  => 0:00:00
Warping progress     |=========================================---------| 82.0% Complete  => 0:00:00
Warping progress     |==========================================--------| 83.0% Complete  => 0:00:00
Warping progress     |==========================================--------| 84.0% Complete  => 0:00:00
Warping progress     |===========================================-------| 85.0% Complete  => 0:00:00
Warping progress     |===========================================-------| 86.0% Complete  => 0:00:00
Warping progress     |============================================------| 87.0% Complete  => 0:00:00
Warping progress     |============================================------| 88.0% Complete  => 0:00:00
Warping progress     |=============================================-----| 89.0% Complete  => 0:00:00
Warping progress     |=============================================-----| 90.0% Complete  => 0:00:00
Warping progress     |==============================================----| 91.1% Complete  => 0:00:00
Warping progress     |==============================================----| 92.0% Complete  => 0:00:00
Warping progress     |===============================================---| 93.0% Complete  => 0:00:00
Warping progress     |===============================================---| 94.0% Complete  => 0:00:00
Warping progress     |================================================--| 95.0% Complete  => 0:00:00
Warping progress     |================================================--| 96.0% Complete  => 0:00:00
Warping progress     |=================================================-| 97.0% Complete  => 0:00:00
Warping progress     |=================================================-| 98.0% Complete  => 0:00:00
Warping progress     |==================================================| 99.0% Complete  => 0:00:00
Warping progress     |==================================================| 100.0% Complete  => 0:00:00

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_correct_shifts_without_resampling 0:00:00.542859

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 344720/5848485
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.40457241632265944/-0.23333803689136778
Calculated total shifts in fft pixel units (X/Y):         -0.5954275836773406/1.7666619631086322
Calculated total shifts in reference pixel units (X/Y):   -0.5954275836773406/1.7666619631086322
Calculated total shifts in target pixel units (X/Y):      -0.5954275836773406/1.7666619631086322
Calculated map shifts (X,Y):				  -5.954275836760644/-17.6666196314618
Calculated absolute shift vector length in map units:     18.643037572857676
Calculated angle of shift vector in degrees from North:   18.625636752309685
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335434.04572416324', '5866472.333380369', 10.0, 10.0, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.4548 => 0.6928
Estimated reliability of the calculated shifts:  84.1 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_plotting_after_shift_calculation 0:00:01.658967

Test plotting functionality.

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 344720/5848485
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.40457241632265944/-0.23333803689136778
Calculated total shifts in fft pixel units (X/Y):         -0.5954275836773406/1.7666619631086322
Calculated total shifts in reference pixel units (X/Y):   -0.5954275836773406/1.7666619631086322
Calculated total shifts in target pixel units (X/Y):      -0.5954275836773406/1.7666619631086322
Calculated map shifts (X,Y):				  -5.954275836760644/-17.6666196314618
Calculated absolute shift vector length in map units:     18.643037572857676
Calculated angle of shift vector in degrees from North:   18.625636752309685
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335434.04572416324', '5866472.333380369', 10.0, 10.0, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.4548 => 0.6928
Estimated reliability of the calculated shifts:  84.1 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

SKIPPED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_SSIMdecreases 0:00:00.001753

Skipped: Not yet implemented.

Setup

Call

('/builds/danschef/arosics/tests/test_COREG.py', 325, 'Skipped: Not yet implemented.')

Teardown

SKIPPED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_differentInputGrids 0:00:00.001375

Skipped: Not yet implemented.

Setup

Call

('/builds/danschef/arosics/tests/test_COREG.py', 315, 'Skipped: Not yet implemented.')

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_different_geographic_datum 0:00:00.371219

Test if shift computation properly raises a RunTimeError if the matching window is centered at a cloudy image position.

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_inmem_gAs_path_out_auto 0:00:00.029118

Test input parameter path_out='auto' in case input reference/ target image are in-memory GeoArrays.

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_noWGS84 0:00:00.888613

Test if shift computation properly raises a RunTimeError if the matching window is centered at a cloudy image position.

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 344720/5848485
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.40457241632265944/-0.23333803689136778
Calculated total shifts in fft pixel units (X/Y):         -0.5954275836773406/1.7666619631086322
Calculated total shifts in reference pixel units (X/Y):   -0.5954275836773406/1.7666619631086322
Calculated total shifts in target pixel units (X/Y):      -0.5954275836773406/1.7666619631086322
Calculated map shifts (X,Y):				  -5.954275836760644/-17.6666196314618
Calculated absolute shift vector length in map units:     18.643037572857676
Calculated angle of shift vector in degrees from North:   18.625636752309685
Original map info: ['Lambert Azimuthal Equal Area', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0]
Updated map info:  ['Lambert Azimuthal Equal Area', 1.0, 1.0, '335434.04572416324', '5866472.333380369', 10.0, 10.0]
Image similarity within the matching window (SSIM before/after correction): 0.4548 => 0.6928
Estimated reliability of the calculated shifts:  84.1 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_nonquadratic_pixels 0:00:01.326061

Test with default parameters - should compute X/Y shifts properly and write the de-shifted target image.

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(330777.90240001003, 5829680.0000001, 344143.68000001, 5862000.0000001)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0000001, 5834654.800000099, 347662.7042001, 5866490.0000001)
Matching window position (X,Y): 341500.0/5861440.0
Target window size (256, 256) not possible due to too small overlap area or window position too close to an image edge. New matching window size: (254, 181).
Detected integer shifts (X/Y):                            -2/0
Detected subpixel shifts (X/Y):                           0.27924327925967163/-0.3488336712476311
Calculated total shifts in fft pixel units (X/Y):         -1.7207567207403285/-0.3488336712476311
Calculated total shifts in reference pixel units (X/Y):   -1.7207567207403285/-0.3488336712476311
Calculated total shifts in target pixel units (X/Y):      -1.7207567207403285/-0.3488336712476311
Calculated map shifts (X,Y):				  -10.140935582341626/3.5232200799509883
Calculated absolute shift vector length in map units:     10.735532321080886
Calculated angle of shift vector in degrees from North:   101.45976406031821
Original map info: ['UTM', 1.0, 1.0, 335440.0000001, 5866490.0000001, 5.8933, 10.1, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335429.85906451766', '5866493.52322018', 5.8933, 10.1, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.2487 => 0.2489
Estimated reliability of the calculated shifts:  38.0 %
Correcting geometric shifts...
Writing GeoArray of size (3151, 2073) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_verboseMode 0:00:03.163048

Test the verbose mode - runs the functions of the plotting submodule.

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
resolutions:  10.0 10.0
77.35 percent of the image to be shifted is covered by the reference image.
Matching window position (X,Y): 344720/5848485
Original matching windows:
Matching windows with equalized spatial resolution:
xgsd_factor 1.0
ygsd_factor 1.0
imfft_xgsd_mapvalues 10.0
imfft_ygsd_mapvalues 10.0
final window size: 256/256 (X/Y)
forward FFTW: 0.16s
backward FFTW: 0.00s
final window size: 128/128 (X/Y)
forward FFTW: 0.16s
backward FFTW: 0.00s
Horizontal side maximum found right. value: 0.2407110298230658
Vertical side maximum found above. value: 0.10782272270894189
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.40457241632265944/-0.23333803689136778
Calculated total shifts in fft pixel units (X/Y):         -0.5954275836773406/1.7666619631086322
Calculated total shifts in reference pixel units (X/Y):   -0.5954275836773406/1.7666619631086322
Calculated total shifts in target pixel units (X/Y):      -0.5954275836773406/1.7666619631086322
Calculated map shifts (X,Y):				  -5.954275836760644/-17.6666196314618
Calculated absolute shift vector length in map units:     18.643037572857676
Calculated angle of shift vector in degrees from North:   18.625636752309685
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335434.04572416324', '5866472.333380369', 10.0, 10.0, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.4548 => 0.6928
Estimated reliability of the calculated shifts:  84.1 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.
Time for shift correction: 0.12s

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_windowAtClouds 0:00:00.690782

Test if shift computation properly raises a RunTimeError if the matching window is centered at a cloudy image position.

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 353308/5859404
Target window size (256, 256) not possible due to too small overlap area or window position too close to an image edge. New matching window size: (198, 256).

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_windowAtImageEdge 0:00:00.615222

Test shift detection in case the given matching window is close to an image edge without covering any nodata area.

Detected subpixel shifts (X/Y): 0.34361492307/-0.320197995758 Calculated map shifts (X,Y): -6.56385076931/-16.7980200425

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 353810/5840516
Target window size (256, 256) not possible due to too small overlap area or window position too close to an image edge. New matching window size: (147, 256).
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.34361489320266864/-0.32019794583454875
Calculated total shifts in fft pixel units (X/Y):         -0.6563851067973314/1.6798020541654513
Calculated total shifts in reference pixel units (X/Y):   -0.6563851067973314/1.6798020541654513
Calculated total shifts in target pixel units (X/Y):      -0.6563851067973314/1.6798020541654513
Calculated map shifts (X,Y):				  -6.5638510679709725/-16.79802054166794
Calculated absolute shift vector length in map units:     18.03490046994443
Calculated angle of shift vector in degrees from North:   21.343145466659507
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335433.436148932', '5866473.201979458', 10.0, 10.0, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.4827 => 0.7533
Estimated reliability of the calculated shifts:  86.2 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_windowCoveringNodata 0:00:00.542358

Test shift detection in case the given matching window (defined by 'wp' and 'ws' covers the nodata area

of an input image.

Detected subpixel shifts (X/Y): 0.280572488796/-0.11016529071 Calculated map shifts (X,Y): -7.19427511207/-18.8983470928

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 339611/5856426
Target window size (256, 256) not possible due to too small overlap area or window position too close to an image edge. New matching window size: (60, 60).
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.28057248990115435/-0.1101652781390041
Calculated total shifts in fft pixel units (X/Y):         -0.7194275100988456/1.8898347218609959
Calculated total shifts in reference pixel units (X/Y):   -0.7194275100988456/1.8898347218609959
Calculated total shifts in target pixel units (X/Y):      -0.7194275100988456/1.8898347218609959
Calculated map shifts (X,Y):				  -7.194275101006497/-18.89834721852094
Calculated absolute shift vector length in map units:     20.221402568089587
Calculated angle of shift vector in degrees from North:   20.84096679550566
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335432.805724899', '5866471.1016527815', 10.0, 10.0, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.2781 => 0.6127
Estimated reliability of the calculated shifts:  46.2 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_windowOutside 0:00:00.370552

Test if shift computation properly raises a ValueError if the given window position is outside of the image overlap.

Setup

Call

Captured stdout call
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_with_default_params 0:00:01.171330

Test with default parameters - should compute X/Y shifts properly and write the de-shifted target image.

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 344720/5848485
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.40457241632265944/-0.23333803689136778
Calculated total shifts in fft pixel units (X/Y):         -0.5954275836773406/1.7666619631086322
Calculated total shifts in reference pixel units (X/Y):   -0.5954275836773406/1.7666619631086322
Calculated total shifts in target pixel units (X/Y):      -0.5954275836773406/1.7666619631086322
Calculated map shifts (X,Y):				  -5.954275836760644/-17.6666196314618
Calculated absolute shift vector length in map units:     18.643037572857676
Calculated angle of shift vector in degrees from North:   18.625636752309685
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.0, 10.0, 10.0, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335434.04572416324', '5866472.333380369', 10.0, 10.0, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.4548 => 0.6928
Estimated reliability of the calculated shifts:  84.1 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_with_float_coords 0:00:01.293614

Test with default parameters - should compute X/Y shifts properly and write the de-shifted target image.

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331333.20000001, 5829680.0000001, 354240.00000001, 5862000.0000001)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0000001, 5834654.800000099, 356387.4000001, 5866490.0000001)
Matching window position (X,Y): 341500.0/5861440.0
Target window size (256, 256) not possible due to too small overlap area or window position too close to an image edge. New matching window size: (102, 104).
Detected integer shifts (X/Y):                            4/-2
Detected subpixel shifts (X/Y):                           0.4153876597917812/-0.30690975524376374
Calculated total shifts in fft pixel units (X/Y):         4.415387659791781/-2.3069097552437636
Calculated total shifts in reference pixel units (X/Y):   4.415387659791781/-2.3069097552437636
Calculated total shifts in target pixel units (X/Y):      4.415387659791781/-2.3069097552437636
Calculated map shifts (X,Y):				  44.59541536390316/23.299788528122008
Calculated absolute shift vector length in map units:     50.31531791546443
Calculated angle of shift vector in degrees from North:   242.41426052245174
Original map info: ['UTM', 1.0, 1.0, 335440.0000001, 5866490.0000001, 10.1, 10.1, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335484.5954154639', '5866513.299788628', 10.1, 10.1, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.2290 => 0.7789
Estimated reliability of the calculated shifts:  82.9 %
Correcting geometric shifts...
Writing GeoArray of size (3151, 2073) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_with_image_coords_only 0:00:01.256869

Test with default parameters - should compute X/Y shifts properly and write the de-shifted target image.

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(132.0, -3200.0, 2400.0, 0.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(0.0, -3152.0, 2074.0, 0.0)
Matching window position (X,Y): 1200/-1600
No clear match found yet. Jumping to iteration 2...
input shifts:  0 -11
No clear match found yet. Jumping to iteration 3...
input shifts:  0 35
No clear match found yet. Jumping to iteration 4...
input shifts:  0 34
Detected integer shifts (X/Y):                            0/0
Detected subpixel shifts (X/Y):                           -0.18604764441966684/0.12260702768818539
Calculated total shifts in fft pixel units (X/Y):         -0.18604764441966684/0.12260702768818539
Calculated total shifts in reference pixel units (X/Y):   -0.18604764441966684/0.12260702768818539
Calculated total shifts in target pixel units (X/Y):      -0.18604764441966684/0.12260702768818539
Calculated map shifts (X,Y):				  -0.18604764441966684/-0.12260702768818539
Calculated absolute shift vector length in map units:     0.22281429315158002
Calculated angle of shift vector in degrees from North:   56.614767864054606
Original map info: ['Arbitrary', 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0, 'North']
Updated map info:  ['Arbitrary', 1.0, 1.0, '-0.18604764441966684', '-0.12260702768818539', 1.0, 1.0, 0, 'North']
Image similarity within the matching window (SSIM before/after correction): 0.1975 => 0.1960
Estimated reliability of the calculated shifts:  0.0 %
Correcting geometric shifts...
NOTE: The detected shift is corrected by updating the map info of the target image only, i.e., without any resampling. Set the 'align_grids' parameter to True if you need the target and the reference coordinate grids to be aligned.
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_with_metaRotation 0:00:01.677810

Test with default parameters - should compute X/Y shifts properly and write the de-shifted target image.

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.020739984, 356180.00000001054, 5866490.02074)
Matching window position (X,Y): 341500.0/5861440.0
Target window size (256, 256) not possible due to too small overlap area or window position too close to an image edge. New matching window size: (110, 108).
Detected integer shifts (X/Y):                            -1/2
Detected subpixel shifts (X/Y):                           0.27296362695366877/-0.12190891843131602
Calculated total shifts in fft pixel units (X/Y):         -0.7270363730463312/1.878091081568684
Calculated total shifts in reference pixel units (X/Y):   -0.7270363730463312/1.878091081568684
Calculated total shifts in target pixel units (X/Y):      -0.7270363730463312/1.878091081568684
Calculated map shifts (X,Y):				  -7.270363730494864/-18.780910816043615
Calculated absolute shift vector length in map units:     20.139036716136133
Calculated angle of shift vector in degrees from North:   21.162145277413643
Original map info: ['UTM', 1.0, 1.0, 335440.0, 5866490.02074, 10.000000000005091, 10.000000000005091, 33, 'North', 'WGS-84']
Updated map info:  ['UTM', 1.0, 1.0, '335432.7296362695', '5866471.239829184', 10.000000000005091, 10.000000000005091, 33, 'North', 'WGS-84']
Image similarity within the matching window (SSIM before/after correction): 0.4715 => 0.8049
Estimated reliability of the calculated shifts:  80.3 %
Correcting geometric shifts...
Writing GeoArray of size (3151, 2073) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_global.bsq.
Captured stderr call

Warping progress     |--------------------------------------------------| 0.0% Complete  => 0:00:00
Warping progress     |=-------------------------------------------------| 1.0% Complete  => 0:00:00
Warping progress     |=-------------------------------------------------| 2.0% Complete  => 0:00:00
Warping progress     |==------------------------------------------------| 3.0% Complete  => 0:00:00
Warping progress     |==------------------------------------------------| 4.0% Complete  => 0:00:00
Warping progress     |===-----------------------------------------------| 5.0% Complete  => 0:00:00
Warping progress     |===-----------------------------------------------| 6.0% Complete  => 0:00:00
Warping progress     |====----------------------------------------------| 7.0% Complete  => 0:00:00
Warping progress     |====----------------------------------------------| 8.0% Complete  => 0:00:00
Warping progress     |=====---------------------------------------------| 9.0% Complete  => 0:00:00
Warping progress     |=====---------------------------------------------| 10.0% Complete  => 0:00:00
Warping progress     |======--------------------------------------------| 11.0% Complete  => 0:00:00
Warping progress     |======--------------------------------------------| 12.0% Complete  => 0:00:00
Warping progress     |=======-------------------------------------------| 13.0% Complete  => 0:00:00
Warping progress     |=======-------------------------------------------| 14.0% Complete  => 0:00:00
Warping progress     |========------------------------------------------| 15.0% Complete  => 0:00:00
Warping progress     |========------------------------------------------| 16.0% Complete  => 0:00:00
Warping progress     |=========-----------------------------------------| 17.0% Complete  => 0:00:00
Warping progress     |=========-----------------------------------------| 18.0% Complete  => 0:00:00
Warping progress     |==========----------------------------------------| 19.0% Complete  => 0:00:00
Warping progress     |==========----------------------------------------| 20.0% Complete  => 0:00:00
Warping progress     |===========---------------------------------------| 21.0% Complete  => 0:00:00
Warping progress     |===========---------------------------------------| 22.0% Complete  => 0:00:00
Warping progress     |============--------------------------------------| 23.0% Complete  => 0:00:00
Warping progress     |============--------------------------------------| 24.0% Complete  => 0:00:00
Warping progress     |============--------------------------------------| 25.0% Complete  => 0:00:00
Warping progress     |=============-------------------------------------| 26.0% Complete  => 0:00:00
Warping progress     |==============------------------------------------| 27.0% Complete  => 0:00:00
Warping progress     |==============------------------------------------| 28.0% Complete  => 0:00:00
Warping progress     |===============-----------------------------------| 29.0% Complete  => 0:00:00
Warping progress     |===============-----------------------------------| 30.0% Complete  => 0:00:00
Warping progress     |================----------------------------------| 31.0% Complete  => 0:00:00
Warping progress     |================----------------------------------| 32.0% Complete  => 0:00:00
Warping progress     |=================---------------------------------| 33.0% Complete  => 0:00:00
Warping progress     |=================---------------------------------| 34.0% Complete  => 0:00:00
Warping progress     |==================--------------------------------| 35.0% Complete  => 0:00:00
Warping progress     |==================--------------------------------| 36.0% Complete  => 0:00:00
Warping progress     |===================-------------------------------| 37.0% Complete  => 0:00:00
Warping progress     |===================-------------------------------| 38.0% Complete  => 0:00:00
Warping progress     |====================------------------------------| 39.0% Complete  => 0:00:00
Warping progress     |====================------------------------------| 40.0% Complete  => 0:00:00
Warping progress     |=====================-----------------------------| 41.0% Complete  => 0:00:00
Warping progress     |=====================-----------------------------| 42.0% Complete  => 0:00:00
Warping progress     |======================----------------------------| 43.0% Complete  => 0:00:00
Warping progress     |======================----------------------------| 44.0% Complete  => 0:00:00
Warping progress     |=======================---------------------------| 45.0% Complete  => 0:00:00
Warping progress     |=======================---------------------------| 46.0% Complete  => 0:00:00
Warping progress     |========================--------------------------| 47.0% Complete  => 0:00:00
Warping progress     |========================--------------------------| 48.0% Complete  => 0:00:00
Warping progress     |=========================-------------------------| 49.0% Complete  => 0:00:00
Warping progress     |=========================-------------------------| 50.0% Complete  => 0:00:00
Warping progress     |==========================------------------------| 51.0% Complete  => 0:00:00
Warping progress     |==========================------------------------| 52.0% Complete  => 0:00:00
Warping progress     |===========================-----------------------| 53.0% Complete  => 0:00:00
Warping progress     |===========================-----------------------| 54.0% Complete  => 0:00:00
Warping progress     |============================----------------------| 55.0% Complete  => 0:00:00
Warping progress     |============================----------------------| 56.0% Complete  => 0:00:00
Warping progress     |=============================---------------------| 57.0% Complete  => 0:00:00
Warping progress     |=============================---------------------| 58.0% Complete  => 0:00:00
Warping progress     |==============================--------------------| 59.0% Complete  => 0:00:00
Warping progress     |==============================--------------------| 60.0% Complete  => 0:00:00
Warping progress     |===============================-------------------| 61.0% Complete  => 0:00:00
Warping progress     |===============================-------------------| 62.0% Complete  => 0:00:00
Warping progress     |================================------------------| 63.0% Complete  => 0:00:00
Warping progress     |================================------------------| 64.0% Complete  => 0:00:00
Warping progress     |=================================-----------------| 65.0% Complete  => 0:00:00
Warping progress     |=================================-----------------| 66.0% Complete  => 0:00:00
Warping progress     |==================================----------------| 67.0% Complete  => 0:00:00
Warping progress     |==================================----------------| 68.0% Complete  => 0:00:00
Warping progress     |===================================---------------| 69.0% Complete  => 0:00:00
Warping progress     |===================================---------------| 70.0% Complete  => 0:00:00
Warping progress     |====================================--------------| 71.0% Complete  => 0:00:00
Warping progress     |====================================--------------| 72.0% Complete  => 0:00:00
Warping progress     |=====================================-------------| 73.0% Complete  => 0:00:00
Warping progress     |=====================================-------------| 74.0% Complete  => 0:00:00
Warping progress     |======================================------------| 75.0% Complete  => 0:00:00
Warping progress     |======================================------------| 76.0% Complete  => 0:00:00
Warping progress     |=======================================-----------| 77.0% Complete  => 0:00:00
Warping progress     |=======================================-----------| 78.0% Complete  => 0:00:00
Warping progress     |========================================----------| 79.0% Complete  => 0:00:00
Warping progress     |========================================----------| 80.0% Complete  => 0:00:00
Warping progress     |=========================================---------| 81.0% Complete  => 0:00:00
Warping progress     |=========================================---------| 82.0% Complete  => 0:00:00
Warping progress     |==========================================--------| 83.0% Complete  => 0:00:00
Warping progress     |==========================================--------| 84.0% Complete  => 0:00:00
Warping progress     |===========================================-------| 85.0% Complete  => 0:00:00
Warping progress     |===========================================-------| 86.0% Complete  => 0:00:00
Warping progress     |============================================------| 87.0% Complete  => 0:00:00
Warping progress     |============================================------| 88.0% Complete  => 0:00:00
Warping progress     |=============================================-----| 89.0% Complete  => 0:00:00
Warping progress     |=============================================-----| 90.0% Complete  => 0:00:00
Warping progress     |==============================================----| 91.0% Complete  => 0:00:00
Warping progress     |==============================================----| 92.0% Complete  => 0:00:00
Warping progress     |===============================================---| 93.0% Complete  => 0:00:00
Warping progress     |===============================================---| 94.0% Complete  => 0:00:00
Warping progress     |================================================--| 95.0% Complete  => 0:00:00
Warping progress     |================================================--| 96.0% Complete  => 0:00:00
Warping progress     |=================================================-| 97.0% Complete  => 0:00:00
Warping progress     |=================================================-| 98.0% Complete  => 0:00:00
Warping progress     |==================================================| 99.0% Complete  => 0:00:00
Warping progress     |==================================================| 100.0% Complete  => 0:00:00

Teardown

SKIPPED CompleteWorkflow_INTER1_S2A_S2A::test_shift_calculation_withoutPyFFTW 0:00:00.001705

Skipped: Not yet implemented.

Setup

Call

('/builds/danschef/arosics/tests/test_COREG.py', 320, 'Skipped: Not yet implemented.')

Teardown

tests/test_COREG_LOCAL.py 6 0:00:37.884688

PASSED COREG_LOCAL_init::test_coreg_init_from_disk 0:00:01.079543

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689

Teardown

PASSED COREG_LOCAL_init::test_coreg_init_from_inMem_GeoArray 0:00:01.082688

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_calculation_of_tie_point_grid 0:00:12.547108

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (454 points) using 24 CPU cores...
Found 413 matches.
Performing validity checks...
59 tie points flagged by level 1 filtering (reliability).
8 tie points flagged by level 2 filtering (SSIM).
42 tie points flagged by level 3 filtering (RANSAC)
312 valid tie points remain after filtering.
Note: array has been downsampled to 657 x 1000 for faster visualization.
Note: array has been downsampled to 657 x 1000 for faster visualization.
Note: array has been downsampled to 657 x 1000 for faster visualization.
Correcting geometric shifts...
Writing GeoArray of size (3152, 2074) to /builds/danschef/arosics/tests/output/testcase_inter1_S2A_S2A/tgt_S2A_20160529T153631_T33UUU_sub_CR_local.bsq.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_calculation_of_tie_point_grid_float_coords 0:00:07.531778

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.200001285, 5830000.799967763, 354000.20002396504, 5862000.799999763)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.199999965, 5834970.799968244, 356180.200020705, 5866490.799999763)
Matching window position (X,Y): 345539.8936610556/5847666.446763893
Initializing tie points grid...
Equalizing pixel grids and projections of reference and target image...
Calculating tie point grid (453 points) using 32 CPU cores...
Found 389 matches.
Performing validity checks...
49 tie points flagged by level 1 filtering (reliability).
14 tie points flagged by level 2 filtering (SSIM).
32 tie points flagged by level 3 filtering (RANSAC)
304 valid tie points remain after filtering.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_calculation_of_tie_point_grid_noepsg 0:00:07.758351

Test local coregistration with a proj. other than LonLat and UTM and a WKT which has no EPSG code (FORCE).

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (454 points) using 32 CPU cores...
Found 413 matches.
Performing validity checks...
59 tie points flagged by level 1 filtering (reliability).
8 tie points flagged by level 2 filtering (SSIM).
38 tie points flagged by level 3 filtering (RANSAC)
316 valid tie points remain after filtering.

Teardown

PASSED CompleteWorkflow_INTER1_S2A_S2A::test_calculation_of_tie_point_grid_with_metaRotation 0:00:07.885220

Test with default parameters - should compute X/Y shifts properly and write the de-shifted target image.

Setup

Call

Captured stdout call
Adapting the target image pixel grid to the one of the reference image for shift detection.
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.00000000064, 5830000.023999984, 354000.0000000119, 5862000.024)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.024, 356180.0, 5866490.024)
Matching window position (X,Y): 345539.69364679215/5847665.670781682
Initializing tie points grid...
Calculating tie point grid (453 points) using 32 CPU cores...
Found 408 matches.
Performing validity checks...
54 tie points flagged by level 1 filtering (reliability).
5 tie points flagged by level 2 filtering (SSIM).
29 tie points flagged by level 3 filtering (RANSAC)
324 valid tie points remain after filtering.
Captured stderr call

Warping progress     |--------------------------------------------------| 0.0% Complete  => 0:00:00
Warping progress     |--------------------------------------------------| 1.0% Complete  => 0:00:00
Warping progress     |=-------------------------------------------------| 2.0% Complete  => 0:00:00
Warping progress     |==------------------------------------------------| 3.0% Complete  => 0:00:00
Warping progress     |==------------------------------------------------| 4.0% Complete  => 0:00:00
Warping progress     |==------------------------------------------------| 5.0% Complete  => 0:00:00
Warping progress     |===-----------------------------------------------| 6.0% Complete  => 0:00:00
Warping progress     |====----------------------------------------------| 7.0% Complete  => 0:00:00
Warping progress     |====----------------------------------------------| 8.0% Complete  => 0:00:00
Warping progress     |====----------------------------------------------| 9.0% Complete  => 0:00:00
Warping progress     |=====---------------------------------------------| 10.0% Complete  => 0:00:00
Warping progress     |======--------------------------------------------| 11.0% Complete  => 0:00:00
Warping progress     |======--------------------------------------------| 12.0% Complete  => 0:00:00
Warping progress     |======--------------------------------------------| 13.0% Complete  => 0:00:00
Warping progress     |=======-------------------------------------------| 14.0% Complete  => 0:00:00
Warping progress     |========------------------------------------------| 15.0% Complete  => 0:00:00
Warping progress     |========------------------------------------------| 16.0% Complete  => 0:00:00
Warping progress     |========------------------------------------------| 17.0% Complete  => 0:00:00
Warping progress     |=========-----------------------------------------| 18.0% Complete  => 0:00:00
Warping progress     |==========----------------------------------------| 19.0% Complete  => 0:00:00
Warping progress     |==========----------------------------------------| 20.0% Complete  => 0:00:00
Warping progress     |==========----------------------------------------| 21.0% Complete  => 0:00:00
Warping progress     |===========---------------------------------------| 22.0% Complete  => 0:00:00
Warping progress     |============--------------------------------------| 23.0% Complete  => 0:00:00
Warping progress     |============--------------------------------------| 24.0% Complete  => 0:00:00
Warping progress     |============--------------------------------------| 25.0% Complete  => 0:00:00
Warping progress     |=============-------------------------------------| 26.0% Complete  => 0:00:00
Warping progress     |==============------------------------------------| 27.0% Complete  => 0:00:00
Warping progress     |==============------------------------------------| 28.0% Complete  => 0:00:00
Warping progress     |===============-----------------------------------| 29.0% Complete  => 0:00:00
Warping progress     |===============-----------------------------------| 30.0% Complete  => 0:00:00
Warping progress     |================----------------------------------| 31.0% Complete  => 0:00:00
Warping progress     |================----------------------------------| 32.0% Complete  => 0:00:00
Warping progress     |================----------------------------------| 33.0% Complete  => 0:00:00
Warping progress     |=================---------------------------------| 34.0% Complete  => 0:00:00
Warping progress     |==================--------------------------------| 35.0% Complete  => 0:00:00
Warping progress     |==================--------------------------------| 36.0% Complete  => 0:00:00
Warping progress     |==================--------------------------------| 37.0% Complete  => 0:00:00
Warping progress     |===================-------------------------------| 38.0% Complete  => 0:00:00
Warping progress     |====================------------------------------| 39.0% Complete  => 0:00:00
Warping progress     |====================------------------------------| 40.0% Complete  => 0:00:00
Warping progress     |====================------------------------------| 41.0% Complete  => 0:00:00
Warping progress     |=====================-----------------------------| 42.0% Complete  => 0:00:00
Warping progress     |======================----------------------------| 43.0% Complete  => 0:00:00
Warping progress     |======================----------------------------| 44.0% Complete  => 0:00:00
Warping progress     |======================----------------------------| 45.0% Complete  => 0:00:00
Warping progress     |=======================---------------------------| 46.0% Complete  => 0:00:00
Warping progress     |========================--------------------------| 47.0% Complete  => 0:00:00
Warping progress     |========================--------------------------| 48.0% Complete  => 0:00:00
Warping progress     |========================--------------------------| 49.0% Complete  => 0:00:00
Warping progress     |=========================-------------------------| 50.0% Complete  => 0:00:00
Warping progress     |==========================------------------------| 51.0% Complete  => 0:00:00
Warping progress     |==========================------------------------| 52.0% Complete  => 0:00:00
Warping progress     |==========================------------------------| 53.0% Complete  => 0:00:00
Warping progress     |===========================-----------------------| 54.0% Complete  => 0:00:00
Warping progress     |============================----------------------| 55.0% Complete  => 0:00:00
Warping progress     |============================----------------------| 56.0% Complete  => 0:00:00
Warping progress     |=============================---------------------| 57.0% Complete  => 0:00:00
Warping progress     |=============================---------------------| 58.0% Complete  => 0:00:00
Warping progress     |==============================--------------------| 59.0% Complete  => 0:00:00
Warping progress     |==============================--------------------| 60.0% Complete  => 0:00:00
Warping progress     |==============================--------------------| 61.0% Complete  => 0:00:00
Warping progress     |===============================-------------------| 62.0% Complete  => 0:00:00
Warping progress     |================================------------------| 63.0% Complete  => 0:00:00
Warping progress     |================================------------------| 64.0% Complete  => 0:00:00
Warping progress     |================================------------------| 65.0% Complete  => 0:00:00
Warping progress     |=================================-----------------| 66.0% Complete  => 0:00:00
Warping progress     |==================================----------------| 67.0% Complete  => 0:00:00
Warping progress     |==================================----------------| 68.0% Complete  => 0:00:00
Warping progress     |==================================----------------| 69.0% Complete  => 0:00:00
Warping progress     |===================================---------------| 70.0% Complete  => 0:00:00
Warping progress     |====================================--------------| 71.0% Complete  => 0:00:00
Warping progress     |====================================--------------| 72.0% Complete  => 0:00:00
Warping progress     |====================================--------------| 73.0% Complete  => 0:00:00
Warping progress     |=====================================-------------| 74.0% Complete  => 0:00:00
Warping progress     |======================================------------| 75.0% Complete  => 0:00:00
Warping progress     |======================================------------| 76.0% Complete  => 0:00:00
Warping progress     |======================================------------| 77.0% Complete  => 0:00:00
Warping progress     |=======================================-----------| 78.0% Complete  => 0:00:00
Warping progress     |========================================----------| 79.0% Complete  => 0:00:00
Warping progress     |========================================----------| 80.0% Complete  => 0:00:00
Warping progress     |========================================----------| 81.0% Complete  => 0:00:00
Warping progress     |=========================================---------| 82.0% Complete  => 0:00:00
Warping progress     |==========================================--------| 83.0% Complete  => 0:00:00
Warping progress     |==========================================--------| 84.0% Complete  => 0:00:00
Warping progress     |==========================================--------| 85.0% Complete  => 0:00:00
Warping progress     |===========================================-------| 86.0% Complete  => 0:00:00
Warping progress     |============================================------| 87.0% Complete  => 0:00:00
Warping progress     |============================================------| 88.0% Complete  => 0:00:00
Warping progress     |============================================------| 89.0% Complete  => 0:00:00
Warping progress     |=============================================-----| 90.0% Complete  => 0:00:00
Warping progress     |==============================================----| 91.0% Complete  => 0:00:00
Warping progress     |==============================================----| 92.0% Complete  => 0:00:00
Warping progress     |==============================================----| 93.0% Complete  => 0:00:00
Warping progress     |===============================================---| 94.0% Complete  => 0:00:00
Warping progress     |================================================--| 95.0% Complete  => 0:00:00
Warping progress     |================================================--| 96.0% Complete  => 0:00:00
Warping progress     |================================================--| 97.0% Complete  => 0:00:00
Warping progress     |=================================================-| 98.0% Complete  => 0:00:00
Warping progress     |==================================================| 99.0% Complete  => 0:00:00
Warping progress     |==================================================| 100.0% Complete  => 0:00:00

Teardown

tests/test_tie_point_grid.py 11 0:00:38.664624

PASSED Test_Tie_Point_Grid::test_calc_overall_ssim 0:00:03.231160

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 90 matches.
Performing validity checks...
13 tie points flagged by level 1 filtering (reliability).
0 tie points flagged by level 2 filtering (SSIM).
9 tie points flagged by level 3 filtering (RANSAC)
68 valid tie points remain after filtering.

Teardown

PASSED Test_Tie_Point_Grid::test_calc_overall_stats 0:00:03.129190

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 89 matches.
Performing validity checks...
10 tie points flagged by level 1 filtering (reliability).
3 tie points flagged by level 2 filtering (SSIM).
9 tie points flagged by level 3 filtering (RANSAC)
70 valid tie points remain after filtering.

Teardown

PASSED Test_Tie_Point_Grid::test_calc_rmse 0:00:03.310573

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 93 matches.
Performing validity checks...
15 tie points flagged by level 1 filtering (reliability).
3 tie points flagged by level 2 filtering (SSIM).
8 tie points flagged by level 3 filtering (RANSAC)
70 valid tie points remain after filtering.

Teardown

PASSED Test_Tie_Point_Grid::test_dump_CoRegPoints_table 0:00:03.172610

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 92 matches.
Performing validity checks...
8 tie points flagged by level 1 filtering (reliability).
0 tie points flagged by level 2 filtering (SSIM).
9 tie points flagged by level 3 filtering (RANSAC)
75 valid tie points remain after filtering.
Writing /tmp/tmpnl2v7nha/CoRegPoints_table.pkl ...

Teardown

PASSED Test_Tie_Point_Grid::test_get_CoRegPoints_table 0:00:03.193672

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 91 matches.
Performing validity checks...
14 tie points flagged by level 1 filtering (reliability).
3 tie points flagged by level 2 filtering (SSIM).
9 tie points flagged by level 3 filtering (RANSAC)
68 valid tie points remain after filtering.

Teardown

PASSED Test_Tie_Point_Grid::test_mean_shifts 0:00:04.152328

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 92 matches.
Performing validity checks...
14 tie points flagged by level 1 filtering (reliability).
2 tie points flagged by level 2 filtering (SSIM).
8 tie points flagged by level 3 filtering (RANSAC)
70 valid tie points remain after filtering.

Teardown

PASSED Test_Tie_Point_Grid::test_plot_shift_distribution 0:00:04.857917

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 96 matches.
Performing validity checks...
12 tie points flagged by level 1 filtering (reliability).
2 tie points flagged by level 2 filtering (SSIM).
8 tie points flagged by level 3 filtering (RANSAC)
76 valid tie points remain after filtering.

Teardown

PASSED Test_Tie_Point_Grid::test_to_GCPList 0:00:03.191249

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 92 matches.
Performing validity checks...
12 tie points flagged by level 1 filtering (reliability).
2 tie points flagged by level 2 filtering (SSIM).
8 tie points flagged by level 3 filtering (RANSAC)
72 valid tie points remain after filtering.

Teardown

PASSED Test_Tie_Point_Grid::test_to_PointShapefile 0:00:03.293607

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 96 matches.
Performing validity checks...
11 tie points flagged by level 1 filtering (reliability).
1 tie points flagged by level 2 filtering (SSIM).
10 tie points flagged by level 3 filtering (RANSAC)
75 valid tie points remain after filtering.
Writing /tmp/tmpbei52fh5/test_out_shapefile.shp ...
Writing /tmp/tmp69gfyc_o/test_out_shapefile_incl_nodata.shp ...
Captured log call
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'REF_BADDATA' to 'REF_BADDAT'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'TGT_BADDATA' to 'TGT_BADDAT'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'SSIM_BEFORE' to 'SSIM_BEFOR'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'SSIM_IMPROVED' to 'SSIM_IMPRO'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'RELIABILITY' to 'RELIABILIT'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'REF_BADDATA' to 'REF_BADDAT'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'TGT_BADDATA' to 'TGT_BADDAT'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'SSIM_BEFORE' to 'SSIM_BEFOR'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'SSIM_IMPROVED' to 'SSIM_IMPRO'
WARNING  fiona._env:collection.py:165 Normalized/laundered field name: 'RELIABILITY' to 'RELIABILIT'

Teardown

PASSED Test_Tie_Point_Grid::test_to_Raster_using_Kriging 0:00:03.916831

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 89 matches.
Performing validity checks...
13 tie points flagged by level 1 filtering (reliability).
2 tie points flagged by level 2 filtering (SSIM).
8 tie points flagged by level 3 filtering (RANSAC)
68 valid tie points remain after filtering.
Writing GeoArray of size (384, 251) to /tmp/tmpj39d6ytj/X_SHIFT_M__interpolated.bsq.

Teardown

PASSED Test_Tie_Point_Grid::test_to_vectorfield 0:00:03.215488

Setup

Call

Captured stdout call
Calculating footprint polygon and actual data corner coordinates for reference image...
Bounding box of calculated footprint for reference image:
	(331320.0, 5830000.0, 354000.0, 5862000.0)
Calculating footprint polygon and actual data corner coordinates for image to be shifted...
Bounding box of calculated footprint for image to be shifted:
	(335440.0, 5834970.0, 356180.0, 5866490.0)
Matching window position (X,Y): 345539.693646785/5847665.646781689
Initializing tie points grid...
Calculating tie point grid (100 points) using 24 CPU cores...
Found 91 matches.
Performing validity checks...
13 tie points flagged by level 1 filtering (reliability).
2 tie points flagged by level 2 filtering (SSIM).
9 tie points flagged by level 3 filtering (RANSAC)
69 valid tie points remain after filtering.
Writing GeoArray of size (26, 18, 2) to /tmp/tmp_v7u_zy_/test_vectorfield.bsq.
Writing GeoArray of size (26, 18, 2) to /tmp/tmp_v7u_zy_/test_vectorfield.bsq.

Teardown