nasa / harmony-browse-image-generator

Other
2 stars 4 forks source link

DAS-2146 - select correct asset from stac Item #14

Closed flamingbear closed 4 months ago

flamingbear commented 4 months ago

Description

Adds a function to BrowseImageGeneratorAdapter to select correct asset for generating browse images when multiple files are present in the granule.

Though a combination of updating the UMM-G record with a new subtype of "BROWSE IMAGE SOURCE" and HARMONY-1751. Harmony can now present assets that include a role of 'visual'.

"browse": {
      "href": "https://archive.swot.podaac.earthdata.nasa.gov/podaac-swot-ops-cumulus-protected/SWOT_L2_HR_LakeSP_1.0/SWOT_L2_HR_LakeSP_Unassigned_407_008_SI_20230121T143155_20230121T143229_PIA0_01.zip",
      "title": "SWOT_L2_HR_LakeSP_Unassigned_407_008_SI_20230121T143155_20230121T143229_PIA0_01.zip",
      "description": "Download SWOT_L2_HR_LakeSP_Unassigned_407_008_SI_20230121T143155_20230121T143229_PIA0_01.zip",
      "roles": [
        "visual"
      ]
    }

HyBIG has been modified to select an assets with role 'visual' before falling back to a role 'data' as before.

Jira Issue ID

DAS-2146

Local Test Steps

Pull this branch, build and run the tests.

❯ ./bin/build-image && ./bin/build-test && ./bin/run-test

If those pass, you can deploy to your Harmony-In-A-Box and run the regression tests against localhost.

PR Acceptance Checklist

flamingbear commented 4 months ago

The other quick question: is this change meant to trigger an associated release? If so, it doesn't look like changes to docker/service_version.txt and CHANGELOG.md got pushed up to remote.

Screenshot 2024-05-29 at 4 39 58 PM