This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsics-jma-geoleoir.sch
152 lines (146 loc) · 6.64 KB
/
gsics-jma-geoleoir.sch
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
This schema validates GSICS GEO-LEO-IR netCDF files produced by JMA.
The rules here represent the minimal valid metadata content that every
GEO-LEO-IR file produced by JMA must provide.
The schema depends on the gsics-geoleoir-core.sch file. Inclusion of this
file is done using a novel feature that may not be supported yet by various
XML editors. The best approach is to use the XSLT scripts from
http://www.schematron.com/implementation.html and run the iso_dsdl_include.xsl
script on this file. The resulting Schematron file can then be opened in an
XML editor for testing.
-->
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<extends href="./gsics-geoleoir-common.sch"/>
<ns prefix="nc" uri="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"/>
<!--
Validating content specific to JMA files.
-->
<!-- Global attributes -->
<pattern is-a="global-attribute" id="institution">
<param name="attrName" value="'institution'"/>
<param name="attrValue" value="'JMA'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="standard_name_vocabulary">
<param name="attrName" value="'standard_name_vocabulary'"/>
<param name="attrValue" value="'CF Standard Name Table (Version 21, 12 January 2013)'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="naming_authority">
<param name="attrName" value="'naming_authority'"/>
<param name="attrValue" value="'jp.go.jma.msc.gsics'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="creator_name">
<param name="attrName" value="'creator_name'"/>
<param name="attrValue" value="'System Engineering Division, Meteorological Satellite Center, Japan Meteorological Agency'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="creator_email">
<param name="attrName" value="'creator_email'"/>
<param name="attrValue" value="'[email protected]'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="creator_url">
<param name="attrName" value="'creator_url'"/>
<param name="attrValue" value="'http://mscweb.kishou.go.jp/monitoring/calibration.htm'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="brightness_to_radiance_conversion_formula">
<param name="attrName" value="'brightness_to_radiance_conversion_formula'"/>
<param name="attrValue" value="'radiance = (c1 * wnc^3) / ((exp(c2 * wnc/(alpha * tb + beta))) - 1.)'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="radiance_to_effective_conversion_formula">
<param name="attrName" value="'radiance_to_effective_conversion_formula'"/>
<param name="attrValue" value="'teff = ((c2 * wnc)/ln(1. + (c1 * wnc^3)/radiance)'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern is-a="global-attribute" id="effective_to_brightness_conversion_formula">
<param name="attrName" value="'effective_to_brightness_conversion_formula'"/>
<param name="attrValue" value="'tb = a1 + a2 * teff + a3 * teff^2'"/>
<param name="attrType" value="''"/>
</pattern>
<pattern id="monitored_instrument">
<rule context="/nc:netcdf">
<assert test="nc:attribute[@name = 'monitored_instrument']">Global attribute "monitored_instrument": Not found.</assert>
</rule>
<rule context="/nc:netcdf/nc:attribute[@name = 'monitored_instrument']">
<assert test="@value = ('MTSAT2+Imager')">Global attribute "<value-of select="@name"/>": Invalid value.</assert>
</rule>
</pattern>
<pattern id="reference_instrument">
<rule context="/nc:netcdf">
<assert test="nc:attribute[@name = 'reference_instrument']">Global attribute "reference_instrument": Not found.</assert>
</rule>
<rule context="/nc:netcdf/nc:attribute[@name = 'reference_instrument']">
<assert test="@value = ('MetOpA+IASI')">Global attribute "<value-of select="@name"/>": Invalid value.</assert>
</rule>
</pattern>
<!-- Variables -->
<pattern is-a="variable" id="slope">
<param name="varName" value="'slope'"/>
<param name="varShape" value="'date chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'(mW m-2 sr-1(cm-1)-1)-1'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="true()"/>
</pattern>
<pattern is-a="variable" id="slope_se">
<param name="varName" value="'slope_se'"/>
<param name="varShape" value="'date chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'(mW m-2 sr-1(cm-1)-1)-1'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="true()"/>
</pattern>
<pattern is-a="variable" id="offset">
<param name="varName" value="'offset'"/>
<param name="varShape" value="'date chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'1'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="true()"/>
</pattern>
<pattern is-a="variable" id="offset_se">
<param name="varName" value="'offset_se'"/>
<param name="varShape" value="'date chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'1'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="true()"/>
</pattern>
<pattern is-a="variable" id="covariance">
<param name="varName" value="'covariance'"/>
<param name="varShape" value="'date chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'(mW m-2 sr-1(cm-1)-1)-1'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="true()"/>
</pattern>
<pattern is-a="variable" id="a1">
<param name="varName" value="'a1'"/>
<param name="varShape" value="'chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'K'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="()"/>
</pattern>
<pattern is-a="variable" id="a2">
<param name="varName" value="'a2'"/>
<param name="varShape" value="'chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'1'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="()"/>
</pattern>
<pattern is-a="variable" id="a3">
<param name="varName" value="'a3'"/>
<param name="varShape" value="'chan'"/>
<param name="varType" value="'float'"/>
<param name="varUnits" value="'1'"/>
<param name="stdName" value="''"/>
<param name="varMinMax" value="()"/>
</pattern>
</schema>