Skip to content

Commit

Permalink
Adding 10-band files, 10-band alignment example, and updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
poynting committed Nov 20, 2019
1 parent f9d2b5a commit c90655c
Show file tree
Hide file tree
Showing 24 changed files with 609 additions and 4 deletions.
542 changes: 542 additions & 0 deletions Alignment-10Band.ipynb

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_1.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_10.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_2.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_3.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_4.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_5.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_6.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_7.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_8.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0000_9.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_1.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_10.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_2.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_3.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_4.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_5.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_6.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_7.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_8.tif
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/10BANDSET/000/IMG_0431_9.tif
Git LFS file not shown
7 changes: 5 additions & 2 deletions index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"### Advanced Analysis\n",
"* [Capture Alignment and Analysis Examples](Alignment.html)\n",
"* [Capture Alignment Using Rig Relatives](Alignment-RigRelatives.html)\n",
"* [Batch processing into stacked TIFFs](Batch%20Processing.html)"
"* [Batch processing into stacked TIFFs](Batch%20Processing.html)\n",
"\n",
"### 10-Band (Dual Camera) Examples\n",
"* [10-band Capture Alignment](Alignment-10-band.html)\n"
]
},
{
Expand Down Expand Up @@ -62,7 +65,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def panel_10band_rededge_file_list(ten_band_files_dir):

@pytest.fixture()
def flight_10band_rededge_file_list(ten_band_files_dir):
return glob.glob(os.path.join(ten_band_files_dir, 'IMG_0001_*.tif'))
return glob.glob(os.path.join(ten_band_files_dir, 'IMG_0431_*.tif'))

@pytest.fixture()
def panel_altum_capture(panel_altum_file_list):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,5 @@ def test_10_band_panel(panel_10band_rededge_file_list):
def test_10_band_irradiance(flight_10band_rededge_capture):
assert flight_10band_rededge_capture.dls_present()
test_irradiance = flight_10band_rededge_capture.dls_irradiance()
good_irradiance = [0.55817, 0.51790, 0.44317, 0.27854, 0.34190, 0.49062, 0.53024, 0.43678, 0.38746, 0.35709]
good_irradiance = [0.67305, 0.62855, 0.55658, 0.34257, 0.41591, 0.57470, 0.64203, 0.53739, 0.48215, 0.44563]
assert test_irradiance == pytest.approx(good_irradiance, abs = 1e-5)

0 comments on commit c90655c

Please sign in to comment.