Skip to content

HARMONY-1965: As a JPL service provider, I want to invoke Harmony services with pixelSubset parameter.#703

Merged
ygliuvt merged 3 commits intomainfrom
harmony-1965
Feb 24, 2025
Merged

HARMONY-1965: As a JPL service provider, I want to invoke Harmony services with pixelSubset parameter.#703
ygliuvt merged 3 commits intomainfrom
harmony-1965

Conversation

@ygliuvt
Copy link
Copy Markdown
Member

@ygliuvt ygliuvt commented Feb 20, 2025

Jira Issue ID

HARMONY-1965

Description

Add support of pixelSubset parameter to harmony transformation endpoints.
There are corresponding changes in harmony-service-lib-py and harmony-service-example projects.

Local Test Steps

Check out harmony-service-example and harmony-service-lib-py projects on branch harmony-1965.
Add logger.warn(f'incoming message: {message}') on line 80 of harmony_service_example/transform.py to log the service message that is submitted ot the service.
Build harmony-service-example with the harmony-service-lib-py locally (i.e. make build-image LOCAL_SVCLIB_DIR=../harmony-service-lib-py).
Build all harmony images and run bin/bootstrap-harmony

Submit the following requests:
http://localhost:3000/C1233800302-EEDTEST/ogc-api-coverages/1.0.0/collections/blue_var/coverage/rangeset?subset=lat(20%3A60)&subset=lon(-140%3A-50)&granuleId=G1233800343-EEDTEST&outputCrs=EPSG%3A31975&format=image%2Fpng

http://localhost:3000/C1233800302-EEDTEST/ogc-api-coverages/1.0.0/collections/blue_var/coverage/rangeset?subset=lat(20%3A60)&subset=lon(-140%3A-50)&granuleId=G1233800343-EEDTEST&outputCrs=EPSG%3A31975&format=image%2Fpng&pixelSubset=false

http://localhost:3000/C1233800302-EEDTEST/ogc-api-coverages/1.0.0/collections/blue_var/coverage/rangeset?subset=lat(20%3A60)&subset=lon(-140%3A-50)&granuleId=G1233800343-EEDTEST&outputCrs=EPSG%3A31975&format=image%2Fpng&pixelSubset=true

Verify the incoming message logged in harmony-service-example log shows pixelSubset in message as None, False, True respectively.

Also test EDR requests similarly, e.g.
http://localhost:3000/ogc-api-edr/1.1.0/collections/C1233800302-EEDTEST/cube?bbox=-140,20,-50,60&granuleId=G1233800343-EEDTEST&crs=EPSG%3A31975&f=image%2Fpng&datetime=1975-01-02T00%3A00%3A00Z%2F2020-01-02T01%3A00%3A00Z&pixelSubset=true

PR Acceptance Checklist

  • Acceptance criteria met
  • Tests added/updated (if needed) and passing
  • Documentation updated (if needed)
  • Harmony in a Box tested? (if changes made to microservices or new dependencies added)

Copy link
Copy Markdown
Contributor

@chris-durbin chris-durbin left a comment

Choose a reason for hiding this comment

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

Tested successfully locally - I verified using the workflow_steps table in the database that the operation had the correct value for each of the three requests:

  1. no pixelSubset in request
  2. pixelSubset set to false
  3. pixelSubset set to true

@ygliuvt ygliuvt merged commit da75f4f into main Feb 24, 2025
3 checks passed
@ygliuvt ygliuvt deleted the harmony-1965 branch February 24, 2025 16:09
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