-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatmodat_standard_checks.yml
More file actions
171 lines (129 loc) · 7.99 KB
/
atmodat_standard_checks.yml
File metadata and controls
171 lines (129 loc) · 7.99 KB
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
suite_name: "atmodat_standard:3.0"
checks:
####################################### Mandatory checks #######################################
# Check global attributes
- check_id: "institution_attribute_type_check"
parameters: {"attribute": "institution", "type": "str", "status": "mandatory"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "source_attribute_type_check"
parameters: {"attribute": "source", "type": "str", "status": "mandatory"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "conventions_attribute_type_check"
parameters: {"attribute": "Conventions", "type": "str", "status": "mandatory"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
# Check if Conventions version is within given range
- check_id: "cf_conventions_version_check"
parameters: {"attribute": "Conventions", "convention_type": "CF", "min_version": 1.4, "max_version": 1.8,
"status": "mandatory"}
check_name: "atmodat_checklib.register.ConventionsVersionCheck"
####################################### Recommended checks #######################################
# Check if AtMoDat version matches the version against which checks should be performed
- check_id: "atmodat_conventions_version_check"
parameters: {"attribute": "Conventions", "convention_type": "ATMODAT", "min_version": 3.0, "max_version": 3.0,
"status": "recommended"}
check_name: "atmodat_checklib.register.ConventionsVersionCheck"
# Check and output license string
- check_id: "license_attribute_check"
parameters: {"attribute": "license", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.LicenseAttrCheck"
# Check global attributes
- check_id: "contact_attribute_type_check"
parameters: {"attribute": "contact", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "creation_date_iso8601_check"
parameters: {"attribute": "creation_date", "status": "recommended"}
check_name: "atmodat_checklib.register.DateISO8601Check"
- check_id: "creator_attribute_type_check"
parameters: {"attribute": "creator", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "crs_attribute_type_check"
parameters: {"attribute": "crs", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "history_attribute_type_check"
parameters: {"attribute": "history", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "institution_id_attribute_type_check"
parameters: {"attribute": "institution_id", "type": "str",
"status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "keywords_attribute_type_check"
parameters: {"attribute": "keywords", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "standard_name_vocabulary_attribute_type_check"
parameters: {"attribute": "standard_name_vocabulary", "type": "str",
"status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "summary_attribute_type_check"
parameters: {"attribute": "summary", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "title_attribute_type_check"
parameters: {"attribute": "title", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "product_version_type_check"
parameters: {"attribute": "product_version", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
# Check against controlled vocabullary
- check_id: "frequency_attribute_check"
parameters: {"attribute": "frequency", "vocab_lookup": "frequency:label",
"vocabulary_ref": "atmodat:atmodat", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrVocabCheckByStatus"
- check_id: "nominal_resolution_attribute_CV_check"
parameters: {"attribute": "nominal_resolution", "vocab_lookup": "nominal_resolution:label",
"vocabulary_ref": "atmodat:atmodat", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrVocabCheckByStatus"
- check_id: "realm_attribute_CV_check"
parameters: {"attribute": "realm", "vocab_lookup": "realm:label",
"vocabulary_ref": "atmodat:atmodat", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrVocabCheckByStatus"
- check_id: "source_type_CV_check"
parameters: {"attribute": "source_type", "vocab_lookup": "source_type:label",
"vocabulary_ref": "atmodat:atmodat", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrVocabCheckByStatus"
# Check for valid value+unit combination in *resolution global attributes
- check_id: "global_attribute_resolution_format_check_lat_resolution"
parameters: {"attribute": "geospatial_lat_resolution",
"status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrResolutionFormatCheck"
- check_id: "global_attribute_resolution_format_check_lon_resolution"
parameters: {"attribute": "geospatial_lon_resolution",
"status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrResolutionFormatCheck"
- check_id: "vertical_resolution_attribute_type_check"
parameters: {"attribute": "geospatial_vertical_resolution", "type": "str", "status": "recommended"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
####################################### Optional checks #######################################
# Check global attributes
- check_id: "comment_attribute_type_check"
parameters: {"attribute": "comment", "type": "str", "status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "further_info_url_attribute_type_check"
parameters: {"attribute": "further_info_url", "type": "str",
"status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "keywords_vocabulary_attribute_type_check"
parameters: {"attribute": "keywords_vocabulary", "type": "str",
"status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "metadata_link_attribute_type_check"
parameters: {"attribute": "metadata_link", "type": "str",
"status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "processing_level_attribute_type_check"
parameters: {"attribute": "processing_level", "type": "str",
"status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "program_attribute_type_check"
parameters: {"attribute": "program", "type": "str", "status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "project_attribute_type_check"
parameters: {"attribute": "project", "type": "str", "status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
- check_id: "references_attribute_type_check"
parameters: {"attribute": "references", "type": "str", "status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrTypeCheck"
# Check against controlled vocabulary
- check_id: "featureType_attribute_type_check"
parameters: {"attribute": "featureType", "vocab_lookup": "featureType:label",
"vocabulary_ref": "atmodat:atmodat", "status": "optional"}
check_name: "atmodat_checklib.register.GlobalAttrVocabCheckByStatus"