1#!/usr/bin/env cwl-runner
2### Prepare environment for AirNow
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.epa.airnow_setup]
25requirements:
26 InlineJavascriptRequirement: {}
27
28doc: |
29 This tool prepares environemnt for AirNow download
30 It checks that AirNow API key is provided and installs
31 zip and county shape files if necessary
32
33inputs:
34 api-key:
35 type: string
36 inputBinding:
37 position: 1
38 shape_dir:
39 type: Directory?
40 inputBinding:
41 position: 2
42
43outputs:
44 shapes:
45 type: File[]
46 outputBinding:
47 glob: "shapes/*.shp"
48 log:
49 type: stdout
50
51stdout: setup.log