Skip to content

Commit

Permalink
docs: add descriptions for workflow argument parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Jul 25, 2024
1 parent 4cec2f6 commit afd2596
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 12 deletions.
8 changes: 6 additions & 2 deletions workflows/raster/publish-odr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ spec:
arguments:
parameters:
- name: version_argo_tasks
description: 'Change this to specify the version of the argo-tasks image e.g. "latest"'
value: 'v4'
- name: ticket
description: Ticket ID e.g. 'AIP-55'
description: 'Ticket ID e.g. "LI-1570"'
value: ''
- name: region
description: Region of the dataset
description: 'Region of the dataset'
value: 'new-zealand'
enum:
- 'antarctica'
Expand All @@ -55,14 +56,17 @@ spec:
- 'wellington'
- 'west-coast'
- name: source
description: 'S3 location of the source dataset'
value: 's3://linz-imagery-staging/test/sample/'
- name: target_bucket_name
description: 'The ODR bucket name to publish to e.g. "nz-imagery" or "nz-elevation"'
value: ''
enum:
- 'nz-elevation'
- 'nz-imagery'
- ''
- name: copy_option
description: 'Do not overwrite existing files ("no-clobber"), or "force" overwriting files in the target location'
value: '--no-clobber'
enum:
- '--no-clobber'
Expand Down
42 changes: 32 additions & 10 deletions workflows/raster/standardising.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ spec:
arguments:
parameters:
- name: version_argo_tasks
description: 'Change this to specify the version of the argo-tasks image e.g. "latest"'
value: 'v4'
- name: version_basemaps_cli
description: 'Change this to specify the version of the basemaps-cli image e.g. "latest"'
value: 'v7'
- name: version_topo_imagery
description: 'Change this to specify the version of the topo-imagery image e.g. "latest"'
value: 'v4'
- name: ticket
description: Ticket ID e.g. 'AIP-55'
description: 'Ticket ID e.g. "LI-1570"'
value: ''
- name: region
description: Region of the dataset
description: 'Region of the dataset'
value: 'new-zealand'
enum:
- 'antarctica'
Expand All @@ -59,10 +62,13 @@ spec:
- 'wellington'
- 'west-coast'
- name: source
description: 'S3 location of the source dataset(s). Separate multiple sources with a semicolon (;) for merging. Target imagery will be layered (bottom to top) in order specified (left to right)'
value: 's3://linz-imagery-staging/test/sample/'
- name: include
description: 'Regular expression pattern match for paths/files to include'
value: '.tiff?$'
- name: scale
description: 'Scale of the imagery e.g. "10000"'
value: '500'
enum:
- '500'
Expand All @@ -73,28 +79,35 @@ spec:
- '50000'
- 'None'
- name: validate
description: 'Validate the tiles'
value: 'true'
enum:
- 'false'
- 'true'
- name: retile
description: 'Retile the dataset'
value: 'false'
enum:
- 'true'
- 'false'
- name: source_epsg
description: 'EPSG of the source files'
value: '2193'
- name: target_epsg
description: 'EPSG of the standardised files'
value: '2193'
- name: group
description: 'How many output tiles to group together in each standardising task'
value: '50'
- name: compression
description: 'Compression type for the standardised TIFFs'
value: 'webp'
enum:
- 'webp'
- 'lzw'
- 'dem_lerc'
- name: create_capture_area
description: 'Create a capture area GeoJSON file for the standardised dataset'
value: 'true'
enum:
- 'false'
Expand All @@ -103,9 +116,10 @@ spec:
description: '(Optional) location of a cutline file to cut the imagery to .fgb or .geojson'
value: ''
- name: collection_id
description: '(Optional) If an existing dataset add collection ID here, else a new one will be generated.'
description: '(Optional) if an existing dataset add collection ID here, else a new one will be generated.'
value: ''
- name: category
description: 'Geospatial category of the dataset'
value: 'urban-aerial-photos'
enum:
- 'aerial-photos'
Expand All @@ -116,8 +130,9 @@ spec:
- 'dsm'
- 'satellite-imagery'
- name: gsd
description: 'Dataset GSD (e.g., "0.3m")'
description: 'Dataset GSD (e.g., "0.3m") - the "m" must be included'
- name: producer
description: 'The producer of the source dataset, e.g. aerial or bathymetric survey company'
value: 'Unknown'
enum:
[
Expand All @@ -144,9 +159,10 @@ spec:
'Woolpert',
]
- name: producer_list
description: '(Optional) List of imagery producers, separated by a semicolons (;). Has no effect unless a semicolon delimited list is entered.'
description: '(Optional) List of imagery producers, separated by semicolon (;). Has no effect unless a semicolon delimited list is entered.'
value: ''
- name: licensor
description: 'The licensor of the dataset, e.g. local or regional council, government agency, satellite provider'
value: 'Unknown'
enum:
[
Expand Down Expand Up @@ -251,16 +267,19 @@ spec:
'Whangārei District Council',
]
- name: licensor_list
description: '(Optional) List of imagery licensors, separated by a semicolons (;). Has no effect unless a semicolon delimited list is entered.'
description: '(Optional) List of imagery licensors, separated by semicolon (;). Has no effect unless a semicolon delimited list is entered.'
value: ''
- name: start_datetime
description: 'Dataset capture start date in format YYYY-MM-DD e.g. "2024-01-14"'
value: 'YYYY-MM-DD'
- name: end_datetime
description: 'Dataset capture end date in format YYYY-MM-DD e.g. "2024-02-23"'
value: 'YYYY-MM-DD'
- name: geographic_description
description: '(Optional) Additional datatset description, to be used in the title in place of the Region (e.g., "Hamilton")'
value: ''
- name: lifecycle
description: 'The release lifecycle status of the dataset, e.g. "completed or "ongoing"'
value: 'completed'
enum:
- 'under development'
Expand All @@ -272,21 +291,24 @@ spec:
description: '(Optional) Event name if dataset has been captured in association with an event (e.g., "Top of the South Floods")'
value: ''
- name: historic_survey_number
description: '(Optional) Survey Number associated with historical datasets, (e.g., "SN8844")'
description: '(Optional) Survey Number associated with historical datasets, (e.g. "SN8844")'
value: ''
- name: publish_to_odr
description: 'Create a Pull Request for publishing to imagery or elevation ODR buckets'
value: 'false'
enum:
- 'false'
- 'true'
- name: target_bucket_name
description: 'The ODR bucket name to publish to e.g. "nz-imagery" or "nz-elevation"'
value: ''
enum:
- ''
- 'nz-imagery'
- 'nz-elevation'
- ''
- name: copy_option
description: 'Do not overwrite existing files ("no-clobber"), or "force" overwriting files in the target location'
value: '--no-clobber'
enum:
- '--no-clobber'
Expand Down Expand Up @@ -608,7 +630,7 @@ spec:
inputs:
parameters:
- name: location
description: Location of the imagery to create config for
description: 'Location of the imagery to create config for'
- name: bucket
- name: key
container:
Expand All @@ -623,11 +645,11 @@ spec:
outputs:
parameters:
- name: url
description: Basemaps URL to view the imagery
description: 'Basemaps URL to view the imagery'
valueFrom:
path: '/tmp/cogify/config-url'
- name: config
description: Location of the config file
description: 'Location of the config file'
valueFrom:
path: '/tmp/cogify/config-path'
artifacts:
Expand Down

0 comments on commit afd2596

Please sign in to comment.