Skip to content

HARMONY-2076: Add support for the serviceId query parameter for OGC coverages and EDR requests.#112

Merged
chris-durbin merged 1 commit into
mainfrom
harmony-2076
Apr 16, 2025
Merged

HARMONY-2076: Add support for the serviceId query parameter for OGC coverages and EDR requests.#112
chris-durbin merged 1 commit into
mainfrom
harmony-2076

Conversation

@chris-durbin

Copy link
Copy Markdown
Contributor

Jira Issue ID

HARMONY-2076

Description

Add support for the serviceId query parameter for OGC coverages and EDR requests.

Local Test Steps

Verify that executing this code sends the request to the harmony/download service chain instead of the nasa/harmony-gdal-adapter service chain (verify by going to the SIT workflow UI https://harmony.sit.earthdata.nasa.gov/workflow-ui)

from harmony import BBox, Client, Collection, Request, Environment
import datetime as dt
from IPython.display import JSON

harmony_client = Client(env=Environment.SIT)

collection = Collection(id='C1234088182-EEDTEST')

request = Request(
    collection=collection,
    spatial=BBox(-165, 52, -140, 77),
    temporal={
        'start': dt.datetime(2010, 1, 1),
        'stop': dt.datetime(2020, 12, 30)
    },
    variables=['blue_var'],
    max_results=10,
    crs='EPSG:3995',
    format='image/tiff',
    height=512,
    width=512,
    service_id='harmony/download'
)

job_id = harmony_client.submit(request)
JSON(harmony_client.status(job_id))

You can also test changing the service_id to an invalid value and verify that an error is returned.

PR Acceptance Checklist

  • Acceptance criteria met
  • Tests added/updated (if needed) and passing
  • Documentation updated (if needed)

@indiejames indiejames left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested against SIT

@chris-durbin chris-durbin merged commit a98f180 into main Apr 16, 2025
@chris-durbin chris-durbin deleted the harmony-2076 branch April 16, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants