Skip to content

Commit

Permalink
ready for review
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Jan 20, 2025
1 parent f3c5155 commit cedde84
Show file tree
Hide file tree
Showing 6 changed files with 68,746 additions and 25 deletions.
15 changes: 0 additions & 15 deletions test/accessor/test_sen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,3 @@ def test_open_data(self, mock_rioxarray_open, mock_rasterio_open):
self.assertCountEqual(
[1024, 1024], [ds.chunksizes["x"][0], ds.chunksizes["y"][0]]
)

# @pytest.mark.vcr()
def test_add_sen2_angles(self):
ds = sentinel_2_band_data()
item_url = (
"https://stac.dataspace.copernicus.eu/v1/collections/sentinel-2-l2a/"
"items/S2A_MSIL2A_20200301T090901_N0500_R050_T35UPU_20230630T033416"
)
response = requests.request(method="GET", url=item_url)
item = pystac.Item.from_dict(
json.loads(response.text), href=item_url, preserve_dict=False
)
ds_test = self.accessor.add_sen2_angles(item, ds)
self.assertIn("solar_angle", ds_test)
self.assertIn("viewing_angle", ds_test)
16,535 changes: 16,535 additions & 0 deletions test/cassettes/test_store/StacDataStoreTest.test_open_data_cdse_sen2.yaml

Large diffs are not rendered by default.

Loading

0 comments on commit cedde84

Please sign in to comment.