Skip to content

Commit

Permalink
TESTS: Added test for duplicated indices and excluding timsteps with …
Browse files Browse the repository at this point in the history
…no angles
  • Loading branch information
davemlz committed Jul 30, 2023
1 parent 1588059 commit aa6d8ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_sen2nbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,22 @@ def test_cubo_not_all_angles(self):
)
self.assertIsInstance(da, xr.DataArray)

def test_cubo_not_all_angles_duplicated_indices(self):
"""Test the nbar_cubo"""
da = nbar_cubo(
cubo.create(
lat=51.079225,
lon=10.452173,
collection="sentinel-2-l2a",
bands=["B02", "B03", "B04"],
start_date="2016-01-01",
end_date="2016-03-01",
edge_size=512,
resolution=10,
)
)
self.assertIsInstance(da, xr.DataArray)


if __name__ == "__main__":
unittest.main()

0 comments on commit aa6d8ce

Please sign in to comment.