Skip to content

Commit

Permalink
Add net2cog service definition and defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Greguska authored and Frank Greguska committed Aug 30, 2024
1 parent 1ded48f commit 5a33088
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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
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
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"]'

0 comments on commit 5a33088

Please sign in to comment.