build_gridmet_model.cwl

 1#!/usr/bin/env cwl-runner
 2### Model YAML Writer
 3#  Copyright (c) 2021. Harvard University
 4#
 5#  Developed by Research Software Engineering,
 6#  Faculty of Arts and Sciences, Research Computing (FAS RC)
 7#  Author: Michael A Bouzinier
 8#
 9#  Licensed under the Apache License, Version 2.0 (the "License");
10#  you may not use this file except in compliance with the License.
11#  You may obtain a copy of the License at
12#
13#         http://www.apache.org/licenses/LICENSE-2.0
14#
15#  Unless required by applicable law or agreed to in writing, software
16#  distributed under the License is distributed on an "AS IS" BASIS,
17#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18#  See the License for the specific language governing permissions and
19#  limitations under the License.
20#
21
22cwlVersion: v1.2
23class: CommandLineTool
24baseCommand: [python, -m, dorieh.rasters.registry]
25
26doc: |
27  This tool writes the data model for gridMET data.
28
29
30inputs:
31  output:
32    type: string
33    default: "gridmet.yaml"
34    doc: A path to a file name with resulting data model
35    inputBinding:
36      position: 1
37  domain:
38    type: string?
39    inputBinding:
40      position: 2
41  depends_on:
42    type: File?
43    doc: a special field used to enforce dependencies and execution order
44
45outputs:
46  log:
47    type: File?
48    outputBinding:
49      glob: "registry*.log"
50  model:
51    type: File?
52    outputBinding:
53      glob: "*.yaml"
54  errors:
55    type: stderr
56
57stderr: registry.err