Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bossie committed Oct 29, 2024
1 parent 7034455 commit f54e0f0
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions tests/data_collections/test_sentinel3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ def test_read_single():
"key_epsg":4326
}
]
result = read_product((Path(__file__).parent.parent / "data/binary/Sentinel-3/S3A_SL_2_LST____20240129T100540_20240129T100840_20240129T121848_0179_108_236_2160_PS1_O_NR_004.SEN3",tiles), SLSTR_PRODUCT_TYPE, ["LST_in:LST"], 1024, True)
result = read_product(
(
Path(__file__).parent.parent
/ "data/binary/Sentinel-3/S3A_SL_2_LST____20240129T100540_20240129T100840_20240129T121848_0179_108_236_2160_PS1_O_NR_004.SEN3",
tiles,
),
SLSTR_PRODUCT_TYPE,
["LST_in:LST"],
tile_size=1024,
limit_python_memory=True,
resolution=0.008928571428571,
)


import rasterio
Expand Down Expand Up @@ -62,6 +73,13 @@ def test_read_single_edge():
]
product_dir = Path(
__file__).parent.parent / "data/binary/Sentinel-3/S3A_SL_2_LST____20240129T100540_20240129T100840_20240129T121848_0179_108_236_2160_PS1_O_NR_004.SEN3"
result = read_product((product_dir, tiles), SLSTR_PRODUCT_TYPE, ["LST_in:LST", "geometry_tn:solar_zenith_tn"], 1024, True)
result = read_product(
(product_dir, tiles),
SLSTR_PRODUCT_TYPE,
["LST_in:LST", "geometry_tn:solar_zenith_tn"],
tile_size=1024,
limit_python_memory=True,
resolution=0.008928571428571,
)

assert len(result) == 0

0 comments on commit f54e0f0

Please sign in to comment.