Skip to content

Commit

Permalink
Adjusted expected data for easier bug detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Jul 24, 2024
1 parent 1a41c29 commit ac6a702
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ label: S2B_T37MGP_20240710T073012_L2A
product:
name: s2_l2a_c1

location: s3://deafrica-sentinel-2-l2a-c1-dev/sentinel-2-c1-l2a/37/M/GP/2024/7/S2B_T37MGP_20240710T073012_L2A/S2B_T37MGP_20240710T073012_L2A.json

crs: epsg:32737
geometry:
type: Polygon
Expand Down Expand Up @@ -52,7 +50,7 @@ properties:
created: "2024-07-10T13:38:13.736092+00:00"
datetime: "2024-07-10T07:41:33.657000Z"
earthsearch:payload_id: roda-sentinel-2-c1-l2a/workflow-sentinel-2-c1-l2a-to-stac/c76ef495ac22038115a5d0865aafac19
eo:azimuth: 1.8551802377940393e+02
eo:azimuth: 1.85518023779404e+02
eo:cloud_cover: 8.3505428e+01
eo:constellation: sentinel-2
eo:instrument: MSI
Expand Down Expand Up @@ -98,7 +96,7 @@ properties:
storage:region: us-west-2
storage:requester_pays: false
updated: "2024-07-10T13:38:13.736092+00:00"
view:incidence_angle: 2.7972589825435863e+00
view:incidence_angle: 2.79725898254359e+00

measurements:
aot:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ label: S2B_T37MGP_20240710T073012_L2A
product:
name: s2_l2a_c1

location: s3://deafrica-sentinel-2-l2a-c1-dev/sentinel-2-c1-l2a/37/M/GP/2024/7/S2B_T37MGP_20240710T073012_L2A/S2B_T37MGP_20240710T073012_L2A.json

crs: epsg:32737
geometry:
type: Polygon
Expand Down Expand Up @@ -52,7 +50,7 @@ properties:
created: "2024-07-10T13:38:13.736092+00:00"
datetime: "2024-07-10T07:41:33.657000Z"
earthsearch:payload_id: roda-sentinel-2-c1-l2a/workflow-sentinel-2-c1-l2a-to-stac/c76ef495ac22038115a5d0865aafac19
eo:azimuth: 1.8551802377940393e+02
eo:azimuth: 1.85518023779404+02
eo:cloud_cover: 8.3505428e+01
eo:constellation: sentinel-2
eo:instrument: MSI
Expand Down Expand Up @@ -98,7 +96,7 @@ properties:
storage:region: us-west-2
storage:requester_pays: false
updated: "2024-07-10T13:38:13.736092+00:00"
view:incidence_angle: 2.7972589825435863e+00
view:incidence_angle: 2.79725898254359e+00

measurements:
aot:
Expand Down
4 changes: 2 additions & 2 deletions apps/dc_tools/tests/test_stac_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_sentinel_stac_transform(sentinel_stac_old, sentinel_odc):
def test_sentinel_c1_stac_transform(sentinel_c1_stac, sentinel_c1_odc):
transformed_stac_doc = stac_transform(sentinel_c1_stac)
doc_changes = get_doc_changes(transformed_stac_doc, sentinel_c1_odc)
assert len(doc_changes) == 3
assert len(doc_changes) == 0
# test that absolute links are maintained for accessories
assert (
transformed_stac_doc["accessories"]["thumbnail"]["path"]
Expand All @@ -92,7 +92,7 @@ def test_sentinel_c1_stac_transform(sentinel_c1_stac, sentinel_c1_odc):
def test_sentinel_c1_rel_stac_transform(sentinel_c1_rel_stac, sentinel_c1_rel_odc):
transformed_stac_doc = stac_transform(sentinel_c1_rel_stac)
doc_changes = get_doc_changes(transformed_stac_doc, sentinel_c1_rel_odc)
assert len(doc_changes) == 3
assert len(doc_changes) == 0
# test that absolute links are converted to relative links for accessories
assert transformed_stac_doc["accessories"]["thumbnail"]["path"] == "L2A_PVI.jpg"
assert (
Expand Down

0 comments on commit ac6a702

Please sign in to comment.