File: EnumDMR_1.6.dmr

package info (click to toggle)
libdap 3.20.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,568 kB
  • sloc: cpp: 50,809; sh: 41,536; xml: 23,511; ansic: 20,030; yacc: 2,508; exp: 1,544; makefile: 990; lex: 309; perl: 52; fortran: 8
file content (43 lines) | stat: -rw-r--r-- 1,493 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" xml:base="file:EnumDMR_1.5.dmr" dapVersion="4.0" dmrVersion="1.0" name="EnumDMR_1.5">
    <Dimension name="dim1" size="5"/>
    <Enumeration name="colors" basetype="Byte">
        <EnumConst name="red" value="1"/>
        <EnumConst name="green" value="2"/>
        <EnumConst name="blue" value="3"/>
    </Enumeration>
    <Byte name="b1">
        <Dim name="/dim1"/>
        <Dim size="30"/>
    </Byte>
    <Group name="g1">
        <Dimension name="dim1" size="10"/>
        
        <Int32 name="thing1">
            <Dim name="/dim1"/>
            <Dim name="/g1/dim1"/>
        </Int32>
        <Int32 name="thing2">
            <Dim name="/dim1"/>
            <Dim name="/g1/dim1"/>
        </Int32>
        <Int32 name="thing3">
            <Dim name="/dim1"/>
            <Dim name="/g1/dim1"/>
            <Dim name="/g1/g2/dim1"/>
        </Int32>
        
        <!-- Move this Group so that it follows thing3 and you'll see an odd error.
             The forward reference to the /g1/g2/dim1 Dimension breaks the parser
             in a hard way - no message or exception. jhrg 6/19/19 -->
        <Group name="g2">
            <Dimension name="dim1" size="20"/>
            <Int32 name="thing1">
                <Dim name="/dim1"/>
                <Dim name="/g1/dim1"/>
                <Dim name="/g1/g2/dim1"/>
            </Int32>
        </Group>
    
    </Group>
</Dataset>