|
1 | 1 | cwlVersion: v1.0 |
2 | | -class: CommandLineTool |
3 | | -id: l1a_pge |
4 | | - |
5 | | -requirements: |
6 | | - DockerRequirement: |
7 | | - dockerPull: unity-sds/sounder_sips_l1a_pge:r0.1.0 |
8 | | - |
9 | | -arguments: [ |
10 | | - "$(runtime.outdir)/processed_notebook.ipynb", |
11 | | - "-p", "input_path", "$(inputs.input_dir)", |
12 | | - "-p", "output_path", "$(runtime.outdir)", |
13 | | - "-p", "data_static_path", "$(inputs.static_dir)", |
14 | | - "-p", "start_datetime", "$(inputs.start_datetime)", |
15 | | - "-p", "end_datetime", "$(inputs.end_datetime)", |
16 | | -] |
17 | | - |
18 | | -inputs: |
19 | | - input_dir: |
20 | | - type: Directory |
21 | | - static_dir: |
22 | | - type: Directory |
23 | | - start_datetime: |
24 | | - type: string |
25 | | - end_datetime: |
26 | | - type: string |
27 | | - |
28 | | -outputs: |
29 | | - output_dir: |
30 | | - type: Directory |
31 | | - outputBinding: |
32 | | - glob: . |
33 | | - stdout_file: |
34 | | - type: stdout |
35 | | - stderr_file: |
36 | | - type: stderr |
37 | | - |
38 | | -stdout: l1a_pge_stdout.txt |
39 | | -stderr: l1a_pge_stderr.txt |
| 2 | + |
| 3 | +# A Package that complies with the Best Practice for Earth Observation Application Package needs to: |
| 4 | +# |
| 5 | +# * Be a valid CWL document with a single Workflow Class and at least one CommandLineTool Class |
| 6 | +# * Define the command-line and respective arguments and container for each CommandLineTool |
| 7 | +# * Define the Application parameters |
| 8 | +# * Define the Application Design Pattern |
| 9 | +# * Define the requirements for runtime environment |
| 10 | +# |
| 11 | +# The Workflow class steps field orchestrates the execution of the application command line and retrieves all the outputs of the processing steps. |
| 12 | + |
| 13 | +$graph: |
| 14 | +- class: Workflow |
| 15 | + id: main |
| 16 | + label: Sounder SIPS L1A PGE |
| 17 | + doc: Processes Sounder SIPS L0 products into L1A products |
| 18 | + |
| 19 | + requirements: |
| 20 | + - class: ScatterFeatureRequirement |
| 21 | + |
| 22 | + inputs: |
| 23 | + input_dir: |
| 24 | + type: Directory |
| 25 | + label: L0 Data Directory |
| 26 | + doc: Directory containing L0 files |
| 27 | + static_dir: |
| 28 | + type: Directory |
| 29 | + label: Static Inputs |
| 30 | + doc: Directory containing static DEM data |
| 31 | + start_datetime: |
| 32 | + type: string |
| 33 | + label: Data Start Date/Time |
| 34 | + doc: ISO8601 formated date and time indicating the start of data to be processed from the L0 files |
| 35 | + end_datetime: |
| 36 | + type: string |
| 37 | + label: Data End Date/Time |
| 38 | + doc: ISO8601 formated date and time indicating the end of data to be processed from the L0 files |
| 39 | + |
| 40 | + steps: |
| 41 | + l1a_process: |
| 42 | + run: "#l1a_pge" |
| 43 | + in: |
| 44 | + input_dir: input_dir |
| 45 | + static_dir: static_dir |
| 46 | + start_datetime: start_datetime |
| 47 | + end_datetime: end_datetime |
| 48 | + out: |
| 49 | + - output_dir |
| 50 | + - stdout_file |
| 51 | + - stderr_file |
| 52 | + |
| 53 | + outputs: |
| 54 | + output_dir: |
| 55 | + outputSource: l1a_process/output_dir |
| 56 | + type: Directory |
| 57 | + stdout_file: |
| 58 | + outputSource: l1a_process/stdout_file |
| 59 | + type: File |
| 60 | + stderr_file: |
| 61 | + outputSource: l1a_process/stderr_file |
| 62 | + type: File |
| 63 | + |
| 64 | +- class: CommandLineTool |
| 65 | + id: l1a_pge |
| 66 | + |
| 67 | + requirements: |
| 68 | + DockerRequirement: |
| 69 | + dockerPull: unity-sds/sounder_sips_l1a_pge:r0.1.0 |
| 70 | + |
| 71 | + arguments: [ |
| 72 | + "$(runtime.outdir)/processed_notebook.ipynb", |
| 73 | + "-p", "input_path", "$(inputs.input_dir)", |
| 74 | + "-p", "output_path", "$(runtime.outdir)", |
| 75 | + "-p", "data_static_path", "$(inputs.static_dir)", |
| 76 | + "-p", "start_datetime", "$(inputs.start_datetime)", |
| 77 | + "-p", "end_datetime", "$(inputs.end_datetime)", |
| 78 | + ] |
| 79 | + |
| 80 | + inputs: |
| 81 | + input_dir: |
| 82 | + type: Directory |
| 83 | + static_dir: |
| 84 | + type: Directory |
| 85 | + start_datetime: |
| 86 | + type: string |
| 87 | + end_datetime: |
| 88 | + type: string |
| 89 | + |
| 90 | + outputs: |
| 91 | + output_dir: |
| 92 | + type: Directory |
| 93 | + outputBinding: |
| 94 | + glob: . |
| 95 | + stdout_file: |
| 96 | + type: stdout |
| 97 | + stderr_file: |
| 98 | + type: stderr |
| 99 | + |
| 100 | + stdout: l1a_pge_stdout.txt |
| 101 | + stderr: l1a_pge_stderr.txt |
| 102 | + |
| 103 | +$namespaces: |
| 104 | + s: https://schema.org/ |
| 105 | +s:softwareVersion: 1.0.0 |
| 106 | +schemas: |
| 107 | +- http://schema.org/version/9.0/schemaorg-current-http.rdf |
| 108 | + |
| 109 | +s:author: |
| 110 | + name: James McDuffie |
| 111 | +s:citation: |
| 112 | +s:codeRepository: |
| 113 | + url: https://github.jpl.nasa.gov/unity-sds/sips_spss_build |
| 114 | +s:contributor: |
| 115 | + - name: Luca Cinquini |
| 116 | +s:dateCreated: 2022-04-14 |
| 117 | +s:keywords: l0, l1a, thermal, sips, sounder |
| 118 | +s:license: All Rights Reserved |
| 119 | +s:releaseNotes: Initial release |
| 120 | +s:version: 0.1 |
0 commit comments