-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel-definition.yml
131 lines (117 loc) · 4.36 KB
/
model-definition.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
kind: M
api_version: v1beta2
metadata:
display_name: Global_SSPS:Inputs
name: data-ssp-inputs
publisher: Newcastle University
summary: >
The first model in the workflow designed to crop global ssp datasets to a specific country.
This model takes all of the user parameter and dataset inputs and formats them ready to be used by the subsequent models.
This data is then propogated through the model, reducing user input.
source_code: https://github.com/OpenCLIM/Global_SSPs_Inputs/
description: >
All data/ choices made by the user are inputted at this stage of the model to reduce user error.
This process simplifies the user input methods.
spec:
inputs:
parameters:
- name: COUNTRY
title: country
type: string
description: The country of interest.
default: 'Malaysia'
required: true
- name: SSP
title: ssp
type: string
description: The socio-economic pathway of interest.
default: 'ssp1'
required: true
options:
- name: 'ssp1'
title: 'ssp1'
- name: 'ssp2'
title: 'ssp2'
- name: 'ssp3'
title: 'ssp3'
- name: 'ssp4'
title: 'ssp4'
- name: 'ssp5'
title: 'ssp5'
- name: LEVEL
title: Local Authority Level
type: number
description:
Countries are often divided into administration zones at regional, national and district levels. In most administration datasets, a numerical value is given to the level.
This parameter is recorded in the metadata file so that all people looking at the data know which administration region was used.
required: false
options:
- name: '1'
title: '1'
- name: '2'
title: '2'
- name: '3'
title: '3'
- name: LAD_NAME
title: Column Header for the LAD name
type: string
description:
Future models need to know the name of the column from the dataset of Local Authority polygons which contains the name of each LAD.
default: 'ADM2_EN'
required: true
- name: LAD_CODE
title: Column Header for the LAD code
description:
Future models need to know the name of the column from the dataset of Local Authority polygons which contains the code of each LAD.
type: string
default: 'ADM2_PCODE'
required: true
dataslots:
- name: Boundary File
description:
A .gpkg file containing the boundary of the country of interest.
default:
- 8e9c8d4f-b9d5-41b9-90ba-08cb6624668b
path: inputs/boundary/
required: true
- name: SSP Data Sets
description:
Zip files of the global datasets for each SSP.
default:
- 7ad1c106-1cc9-464a-b16d-236235e8a818
- b706b797-8959-42d6-b9d5-b1c367f7c706
- 3e5f3de0-563c-47e0-9af6-98fb79f9b888
- d9a25784-ff46-4478-90d3-765ab708f1e0
- 580d83d7-7688-4113-8882-6f022cd08ba8
path: inputs/ssps/
required: true
- name: Local Authority Districts
description:
A .gpkg file containing the boundarys for each Local Authority District.
default:
- 03c5c3b3-eaf9-44ba-97ec-20ae11793de5
path: inputs/lads/
required: true
outputs:
datasets:
- name: outputs/boundary/*
type: folder
description:
The country boundary file is saved in gpkg form.
- name: outputs/lads/*
type: folder
description:
The local authority boundarys file is saved in gpkg form.
- name: outputs/ssp/*
type: folder
description:
Only the zip file for the selected ssp scneario is added to this folder.
- name: outputs/parameters/*
type: folder
description:
All parameters and their values are stored in a csv file.
- name: outputs/metadata/*
type: folder
description:
NID metadata for outputs.
These file can be used for creating datasets on DAFNI with the title defined by the parameters specified by the user.