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 job spec for opera-disp-tms #2501

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [9.1.0]

### Added
- A new `OPERA_DISP_TMS` job type

## [9.0.1]

### Changed
Expand Down
80 changes: 80 additions & 0 deletions job_spec/OPERA_DISP_TMS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
OPERA_DISP_TMS:
required_parameters:
- tile_type
- bounds
- orbit_direction
- start_date
- end_date
parameters:
tile_type:
api_schema:
description: Type of tile map to create
type: string
enum:
- displacement
- secant_velocity
- velocity
example: displacement
bounds:
api_schema:
description: Integer bounds in EPSG:4326, formatted like (minlon minlat maxlon maxlat)
type: array
minItems: 4
maxItems: 4
example:
- -121
- 38
- -120
- 39
items:
type: integer
example: -121
orbit_direction:
api_schema:
description: Orbit direction of data
type: string
enum:
- ascending
- descending
example: descending
start_date:
api_schema:
description: Start of secondary date range for which to generate a tile map (%Y%m%d)
type: string
pattern: "^\\d{8}$"
minLength: 8
maxLength: 8
example: 20200101
end_date:
api_schema:
description: End of secondary date range for which to generate a tile map (%Y%m%d)
type: string
pattern: "^\\d{8}$"
minLength: 8
maxLength: 8
example: 20200814
cost_profiles:
DEFAULT:
cost: 1.0
validators:
- check_bounds_formatting
jtherrmann marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: ''
image: ghcr.io/asfhyp3/opera-disp-tms
command:
- Ref::tile_type
- Ref::bounds
- Ref::orbit_direction
- Ref::start_date
- Ref::end_date
- --bucket
- '!Ref Bucket'
- --bucket-prefix
- Ref::bucket_prefix
timeout: 10800
compute_environment: Default
vcpu: 1
memory: 31500
secrets:
- EARTHDATA_USERNAME
- EARTHDATA_PASSWORD