-
Notifications
You must be signed in to change notification settings - Fork 5
/
iso_enums.py
124 lines (110 loc) · 3.61 KB
/
iso_enums.py
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
# -*- coding: utf-8 -*-
"""
.. module:: iso_enums.py
:synopsis: Set of CIM v2 ontology type definitions.
for ISO Enumerations.
"""
def ds_initiative_typecode():
"""Classifier of initiative, to inform ISO19115 metadata.
Formally a DS_InitiativeTypeCode, from ISO19115_2011.
"""
# Do not modify or extend these definitions unless using a later version
# of ISO19115
return {
"type": "enum",
"is_open": False,
"members": [
("campaign", "series of organized planned actions"),
(
"collection",
"accumulation of datasets assembled for a specific purpose",
),
(
"exercise",
"specific performance of a function or group of functions",
),
(
"experiment",
"process designed to find if something is effective or valid",
),
("investigation", "search or systematic inquiry"),
("mission", "specific operation of a data collection system"),
(
"sensor",
"device or piece of equipment which detects or records",
),
("operation", "action that is part of a series of actions"),
("platform", "vehicle or other support base that holds a sensor"),
(
"process",
" method of doing something involving a number of steps",
),
("program", "specific planned activity"),
("project", "organized undertaking, research, or development"),
("study", "examination or investigation"),
("task", "piece of work"),
(
"trial",
"process of testing to discover or demonstrate something",
),
],
}
def md_cellgeometry_code():
"""Classifier of cells.
Whether a grid point is point or area.
"""
return {
"type": "enum",
"is_open": False,
"members": [
("point", "each cell represents a point"),
("area", "each cell represents an area"),
],
}
def md_progress_code():
"""Classifier of project or dataset progress."""
return {
"type": "enum",
"is_open": False,
"members": [
("completed", "production of the data has been completed"),
(
"historicalArchive",
"data has been stored in an offline storage facility",
),
("obsolete", "data is no longer relevant"),
("onGoing", "data is continually being updated"),
(
"planned",
"fixed date has been established upon or by which the data "
"will be created or updated",
),
("required", "updated"),
(
"underDevelopment",
"data is currently in the process of being created",
),
],
}
def dq_evaluation_result_type():
"""Classifier of evaluation results."""
return {
"type": "enum",
"is_open": False,
"members": [
(
"plot",
"Diagnostic plot, use mime-type to identify what kind of "
"image format is used",
),
(
"document",
"Document of some form, use mime-type to identify if PDF etc",
),
(
"dataset",
"Expect a binary target, accessible via a landing page or "
"directly",
),
],
}