Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add net2cog service definition #619

Merged
merged 9 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ENV_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Any changes to the environment variables will be documented in this file in chronological
order with the most recent changes first.

## 2024-08-30
### Added
- Added environment defaults for NET2COG service

## 2024-07-31
### Changed
- HYBIG\_INVOCATION\_ARGS changed to call new `harmony_service` package to support V2 HyBIG.
Expand Down
25 changes: 25 additions & 0 deletions config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,31 @@ https://cmr.uat.earthdata.nasa.gov:
- image/tiff
reprojection: true

- name: net2cog
frankinspace marked this conversation as resolved.
Show resolved Hide resolved
description: |
Converts NetCDF files to COG. Includes extension for running in NASA Harmony. https://github.com/podaac/net2cog
data_operation_version: '0.19.0'
type:
<<: *default-turbo-config
params:
<<: *default-turbo-params
env:
<<: *default-turbo-env
STAGING_PATH: public/harmony/net2cog
umm_s: S1268612173-POCLOUD
capabilities:
subsetting:
variable: true
output_formats:
- image/tiff
# Don't know how specific/accuate this should be. This is (as far as I can tell) the 'official' mime-type that specifies COG. Got this value from https://github.com/opengeospatial/CloudOptimizedGeoTIFF/issues/1 and from pystac media type constant https://pystac.readthedocs.io/en/stable/api/media_type.html
- image/tiff; application=geotiff; profile=cloud-optimized
frankinspace marked this conversation as resolved.
Show resolved Hide resolved
steps:
- image: !Env ${QUERY_CMR_IMAGE}
is_sequential: true
- image: !Env ${NET2COG_IMAGE}


- name: nasa/harmony-gdal-adapter
description: |
Service translating Harmony operations to GDAL commands.
Expand Down
8 changes: 8 additions & 0 deletions services/harmony/env-defaults
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,11 @@ STITCHEE_LIMITS_CPU=128m
STITCHEE_REQUESTS_MEMORY=128Mi
STITCHEE_LIMITS_MEMORY=10Gi
STITCHEE_INVOCATION_ARGS='./docker-entrypoint.sh'

NET2COG_IMAGE=ghcr.io/podaac/net2cog:SIT
NET2COG_REQUESTS_CPU=128m
NET2COG_REQUESTS_MEMORY=128Mi
NET2COG_LIMITS_CPU=128m
NET2COG_LIMITS_MEMORY=512Mi
NET2COG_INVOCATION_ARGS='./docker-entrypoint.sh'
NET2COG_QUEUE_URLS='["ghcr.io/podaac/net2cog:SIT,http://sqs.us-west-2.localhost.localstack.cloud:4566/000000000000/net2cog.fifo"]'
1 change: 1 addition & 0 deletions services/harmony/test/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('Versions endpoint', function () {
'sds/variable-subsetter',
'sds/maskfill',
'sds/trajectory-subsetter',
'net2cog',
frankinspace marked this conversation as resolved.
Show resolved Hide resolved
'nasa/harmony-gdal-adapter',
'sds/HyBIG',
'sds/HOSS-geographic',
Expand Down
Loading