Skip to content

Commit

Permalink
Merge branch 'master' into feat/create-national-dem-workflow-tde-1166
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed Nov 27, 2024
2 parents f5c994f + 54d8111 commit fa649e1
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions workflows/raster/standardising.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
value: 'v7'
- name: version_topo_imagery
description: 'Specify a version of the topo-imagery image to use, e.g. "v4.8" or "latest"'
value: 'v6'
value: 'v7'
- name: user_group
description: Group of users running the workflow
value: 'none'
Expand Down Expand Up @@ -413,8 +413,10 @@ spec:
value: '{{item}}'
- name: collection_id
value: '{{tasks.stac-setup.outputs.parameters.collection_id}}'
- name: current_datetime
value: '{{tasks.stac-setup.finishedAt}}'
- name: target
value: '{{tasks.get-location.outputs.parameters.location}}flat/'
value: '{{=sprig.trimSuffix("/", tasks["get-location"].outputs.parameters.location)}}/flat/'
artifacts:
- name: group_data
from: '{{ tasks.group.outputs.artifacts.output }}'
Expand All @@ -440,7 +442,7 @@ spec:
arguments:
parameters:
- name: uri
value: '{{tasks.get-location.outputs.parameters.location}}flat/collection.json'
value: '{{=sprig.trimSuffix("/", tasks["get-location"].outputs.parameters.location)}}/flat/collection.json'
artifacts:
- name: stac-result
raw:
Expand Down Expand Up @@ -482,7 +484,7 @@ spec:
arguments:
parameters:
- name: source
value: '{{tasks.get-location.outputs.parameters.location}}flat/'
value: '{{=sprig.trimSuffix("/", tasks["get-location"].outputs.parameters.location)}}/flat/'
- name: target_bucket_name
value: '{{workflow.parameters.target_bucket_name}}'
- name: copy_option
Expand All @@ -505,6 +507,7 @@ spec:
parameters:
- name: group_id
- name: collection_id
- name: current_datetime
- name: target
artifacts:
- name: group_data
Expand Down Expand Up @@ -544,6 +547,10 @@ spec:
- '{{=sprig.trim(workflow.parameters.target_epsg)}}'
- '--gsd'
- '{{=sprig.trim(workflow.parameters.gsd)}}'
- '--odr-url'
- '{{=sprig.trim(workflow.parameters.odr_url)}}'
- '--current-datetime'
- '{{inputs.parameters.current_datetime}}'

- name: create-collection
nodeSelector:
Expand All @@ -570,7 +577,7 @@ spec:
- python
- '/app/scripts/collection_from_items.py'
- '--uri'
- '{{inputs.parameters.location}}flat/'
- '{{=sprig.trimSuffix("/", inputs.parameters.location)}}/flat/'
- '--collection-id'
- '{{inputs.parameters.collection_id}}'
- '--linz-slug'
Expand Down Expand Up @@ -621,9 +628,9 @@ spec:
'-V',
'create-overview',
'--source',
'{{inputs.parameters.location}}flat/',
'{{=sprig.trimSuffix("/", inputs.parameters.location)}}/flat/',
'--output',
'{{inputs.parameters.location}}flat/',
'{{=sprig.trimSuffix("/", inputs.parameters.location)}}/flat/',
]

- name: create-config
Expand All @@ -641,7 +648,7 @@ spec:
value: s3://linz-bucket-config/config.basemaps.json
args:
- 'config'
- '{{ inputs.parameters.location }}flat/'
- '{{=sprig.trimSuffix("/", inputs.parameters.location)}}/flat/'
outputs:
parameters:
- name: url
Expand All @@ -657,7 +664,7 @@ spec:
path: '/tmp/cogify/config-url'
s3:
bucket: '{{inputs.parameters.bucket}}'
key: '{{inputs.parameters.key}}flat/config-url'
key: '{{=sprig.trimSuffix("/", inputs.parameters.key)}}/flat/config-url'
archive:
none: {}

Expand Down

0 comments on commit fa649e1

Please sign in to comment.