@@ -322,7 +322,9 @@ def add_properties_from_h5(self):
322322 self .item .properties ["processing:software" ] = {
323323 "isce3" : self .h5 .search_value ("algorithms/isce3Version" ),
324324 "s1Reader" : self .h5 .search_value ("algorithms/s1ReaderVersion" ),
325- "OPERA-adt/RTC" : self .h5 .search_value ("algorithms/softwareVersion" ),
325+ "GeoscienceAustralia/RTC" : self .h5 .search_value (
326+ "algorithms/softwareVersion"
327+ ),
326328 "sar-pipeline" : sar_pipeline .__version__ ,
327329 "dem-handler" : dem_handler .__version__ ,
328330 }
@@ -399,12 +401,11 @@ def add_properties_from_h5(self):
399401
400402 # add the storage stac extension properties
401403 self .item .properties ["storage:schemes" ] = {
402- "aws-std " : {
404+ "aws" : {
403405 "type" : "aws-s3" ,
404406 "platform" : "https://{bucket}.s3.{region}.amazonaws.com" ,
405407 "bucket" : f"{ self .s3_bucket } " ,
406408 "region" : f"{ self .s3_region } " ,
407- "requester_pays" : True ,
408409 }
409410 }
410411
@@ -416,6 +417,7 @@ def add_fixed_links(self):
416417 pystac .Link (
417418 rel = "geoid-source" ,
418419 target = "https://aria-geoid.s3.us-west-2.amazonaws.com/us_nga_egm2008_1_4326__agisoft.tif" ,
420+ media_type = pystac .media_type .MediaType .GEOTIFF ,
419421 )
420422 )
421423
@@ -446,6 +448,7 @@ def add_dynamic_links_from_h5(self):
446448 pystac .Link (
447449 rel = "dem-source" ,
448450 target = self ._extract_http_link (self .h5 .search_value ("demSource" )),
451+ media_type = pystac .media_type .MediaType .HTML ,
449452 )
450453 )
451454
@@ -458,6 +461,7 @@ def add_dynamic_links_from_h5(self):
458461 pystac .Link (
459462 rel = "rtc-algorithm" ,
460463 target = self ._extract_doi_link (ref_text ),
464+ media_type = pystac .media_type .MediaType .HTML ,
461465 )
462466 )
463467
@@ -467,6 +471,7 @@ def add_dynamic_links_from_h5(self):
467471 pystac .Link (
468472 rel = "geocoding-algorithm" ,
469473 target = self ._extract_doi_link (ref_text ),
474+ media_type = pystac .media_type .MediaType .HTML ,
470475 )
471476 )
472477
@@ -477,6 +482,7 @@ def add_dynamic_links_from_h5(self):
477482 pystac .Link (
478483 rel = "noise-correction" ,
479484 target = self ._extract_http_link (ref_text ),
485+ media_type = pystac .media_type .MediaType .PDF ,
480486 )
481487 )
482488
@@ -524,7 +530,7 @@ def add_metadata_links(
524530 pystac .Link (
525531 rel = "processing-config" ,
526532 target = f"{ self .base_href } /{ Path (runconfig_filepath ).name } " ,
527- media_type = pystac . media_type . MediaType . HDF5 ,
533+ media_type = "application/yaml" ,
528534 )
529535 )
530536
@@ -533,7 +539,7 @@ def add_metadata_links(
533539 pystac .Link (
534540 rel = "browse" ,
535541 target = f"{ self .browse_href } " ,
536- media_type = pystac .media_type .MediaType .JSON ,
542+ media_type = pystac .media_type .MediaType .HTML ,
537543 )
538544 )
539545
@@ -543,7 +549,7 @@ def add_metadata_links(
543549 pystac .Link (
544550 rel = "self" ,
545551 target = f"{ self .base_href } /{ Path (stac_filepath ).name } " ,
546- media_type = pystac .media_type .MediaType . JSON ,
552+ media_type = pystac .media_type .STAC_JSON ,
547553 )
548554 )
549555
@@ -583,7 +589,7 @@ def add_collection_link(
583589 pystac .Link (
584590 rel = "collection" ,
585591 target = stac_href ,
586- media_type = pystac .media_type .MediaType . JSON ,
592+ media_type = pystac .media_type .STAC_JSON ,
587593 )
588594 )
589595
@@ -821,6 +827,7 @@ def add_linked_static_layers_as_assets_to_stac(
821827 pystac .Link (
822828 rel = "static-layers-stac-item" ,
823829 target = burst_static_layer_stac_url ,
830+ media_type = pystac .media_type .STAC_JSON ,
824831 )
825832 )
826833
@@ -834,6 +841,7 @@ def add_linked_static_layers_as_assets_to_stac(
834841 pystac .Link (
835842 rel = "static-layers-browse" ,
836843 target = static_layer_browse_url ,
844+ media_type = pystac .media_type .MediaType .HTML ,
837845 )
838846 )
839847
0 commit comments