diff --git a/ENV_CHANGELOG.md b/ENV_CHANGELOG.md index 372ba11f2..2ee5fcac6 100644 --- a/ENV_CHANGELOG.md +++ b/ENV_CHANGELOG.md @@ -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. diff --git a/config/services.yml b/config/services.yml index ff583dbda..c5341a8ee 100644 --- a/config/services.yml +++ b/config/services.yml @@ -874,6 +874,32 @@ https://cmr.uat.earthdata.nasa.gov: - image/tiff reprojection: true + - name: net2cog + 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: + # According to https://github.com/opengeospatial/CloudOptimizedGeoTIFF/issues/1 "image/tiff; application=geotiff; profile=cloud-optimized" is the media type that should be used for COG. + # pystac agrees https://pystac.readthedocs.io/en/stable/api/media_type.html + # Harmony only matches on the part before the first semi-colon + - image/tiff + 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. diff --git a/services/harmony/env-defaults b/services/harmony/env-defaults index 17c26ce80..3085558d3 100644 --- a/services/harmony/env-defaults +++ b/services/harmony/env-defaults @@ -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"]' diff --git a/services/harmony/test/versions.ts b/services/harmony/test/versions.ts index 25ba8bd68..8aa596d0f 100644 --- a/services/harmony/test/versions.ts +++ b/services/harmony/test/versions.ts @@ -34,6 +34,7 @@ describe('Versions endpoint', function () { 'sds/variable-subsetter', 'sds/maskfill', 'sds/trajectory-subsetter', + 'net2cog', 'nasa/harmony-gdal-adapter', 'sds/HyBIG', 'sds/HOSS-geographic',