Skip to content

Commit 7bc6cbf

Browse files
committed
Issue #298 add "bands" metadata to DummyCatalog
1 parent 1168bc5 commit 7bc6cbf

File tree

1 file changed

+32
-9
lines changed

1 file changed

+32
-9
lines changed

openeo_driver/dummy/dummy_backend.py

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,9 @@ class DummyCatalog(CollectionCatalog):
452452
"t": {"type": "temporal", "extent": ["2019-01-01", None]},
453453
"bands": {"type": "bands", "values": ["MAP"]},
454454
},
455-
'summaries': {
456-
"eo:bands": [
457-
{"name": "MAP", "common_name": "blue"}
458-
]
455+
"summaries": {
456+
"eo:bands": [{"name": "MAP", "common_name": "blue"}],
457+
"bands": [{"name": "MAP", "eo:common_name": "blue"}],
459458
},
460459
'links': [],
461460
'_private': {'password': 'dragon'},
@@ -482,11 +481,15 @@ class DummyCatalog(CollectionCatalog):
482481
"t": {"type": "temporal", "extent": ["2019-01-01", None]},
483482
"bands": {"type": "bands", "values": ["VV","VH"]},
484483
},
485-
'summaries': {
484+
"summaries": {
486485
"eo:bands": [
487486
{"name": "VV", "common_name": "blue"},
488-
{"name": "VH", "common_name": "blue"}
489-
]
487+
{"name": "VH", "common_name": "blue"},
488+
],
489+
"bands": [
490+
{"name": "VV", "eo:common_name": "blue"},
491+
{"name": "VH", "eo:common_name": "blue"},
492+
],
490493
},
491494
'links': [],
492495
'_private': {'password': 'dragon'}
@@ -522,6 +525,16 @@ class DummyCatalog(CollectionCatalog):
522525
{"name": "SCL", "common_name": "nir"},
523526
{"name": "sunAzimuthAngles", "common_name": "nir"},
524527
{"name": "sunZenithAngles", "common_name": "nir"},
528+
],
529+
"bands": [
530+
{"name": "B02", "eo:common_name": "blue"},
531+
{"name": "B03", "eo:common_name": "green"},
532+
{"name": "B04", "eo:common_name": "red"},
533+
{"name": "B08", "eo:common_name": "nir"},
534+
{"name": "CLP", "eo:common_name": "nir"},
535+
{"name": "SCL", "eo:common_name": "nir"},
536+
{"name": "sunAzimuthAngles", "eo:common_name": "nir"},
537+
{"name": "sunZenithAngles", "eo:common_name": "nir"},
525538
]
526539
},
527540
'links': [],
@@ -554,6 +567,12 @@ class DummyCatalog(CollectionCatalog):
554567
{"name": "B03", "common_name": "green"},
555568
{"name": "B04", "common_name": "red"},
556569
{"name": "B08", "common_name": "nir"},
570+
],
571+
"bands": [
572+
{"name": "B02", "eo:common_name": "blue"},
573+
{"name": "B03", "eo:common_name": "green"},
574+
{"name": "B04", "eo:common_name": "red"},
575+
{"name": "B08", "eo:common_name": "nir"},
557576
]
558577
},
559578
'links': [],
@@ -587,8 +606,12 @@ class DummyCatalog(CollectionCatalog):
587606
"summaries": {
588607
"eo:bands": [
589608
{"name": "FAPAR_10M"},
590-
{"name": "SCENECLASSIFICATION_20M"}
591-
]
609+
{"name": "SCENECLASSIFICATION_20M"},
610+
],
611+
"bands": [
612+
{"name": "FAPAR_10M"},
613+
{"name": "SCENECLASSIFICATION_20M"},
614+
],
592615
},
593616
"_vito": {
594617
"properties": {

0 commit comments

Comments
 (0)