Skip to content

Commit fa62e34

Browse files
Added DMR tests and baselines - still need to be added to the test
driver. A bes-testsuite/nc/nc4_nc_classic_compressed.nc.dmr.bescmd A bes-testsuite/nc/nc4_nc_classic_compressed.nc.dmr.bescmd.baseline A bes-testsuite/nc/nc4_nc_classic_no_comp.nc.dmr.bescmd A bes-testsuite/nc/nc4_nc_classic_no_comp.nc.dmr.bescmd.baseline A bes-testsuite/nc/nc4_strings.nc.dmr.bescmd A bes-testsuite/nc/nc4_strings.nc.dmr.bescmd.baseline A bes-testsuite/nc/nc4_strings_comp.nc.dmr.bescmd A bes-testsuite/nc/nc4_strings_comp.nc.dmr.bescmd.baseline A bes-testsuite/nc/nc4_unsigned_types.nc.dmr.bescmd A bes-testsuite/nc/nc4_unsigned_types.nc.dmr.bescmd.baseline A bes-testsuite/nc/nc4_unsigned_types_comp.nc.dmr.bescmd A bes-testsuite/nc/nc4_unsigned_types_comp.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_compound.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_compound.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_compound2.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_compound2.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_compound3.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_compound3.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_compound4.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_compound4.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_compound5.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_compound5.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_enum_data.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_enum_data.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_enum_data_1.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_enum_data_1.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_enum_data_2.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_enum_data_2.nc.dmr.bescmd.baseline A bes-testsuite/nc/ref_tst_opaque_data.nc.dmr.bescmd A bes-testsuite/nc/ref_tst_opaque_data.nc.dmr.bescmd.baseline A bes-testsuite/nc/stringtest.nc.dmr.bescmd A bes-testsuite/nc/stringtest.nc.dmr.bescmd.baseline A bes-testsuite/nc/test.nc.dmr.bescmd.baseline.baseline
1 parent 3c25c0e commit fa62e34

33 files changed

+854
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<request reqID ="some_unique_value" >
3+
<setContainer name="c" space="catalog">/data/nc4_test_files/nc4_nc_classic_comp.nc</setContainer>
4+
<define name="d">
5+
<container name="c" />
6+
</define>
7+
<get type="dmr" definition="d" />
8+
</request>
9+
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" dapVersion="4.0" dmrVersion="1.0" name="nc4_nc_classic_comp.nc">
3+
<Dimension name="time" size="2"/>
4+
<Dimension name="lat" size="6"/>
5+
<Dimension name="lon" size="5"/>
6+
<Int32 name="time">
7+
<Dim name="/time"/>
8+
<Attribute name="units" type="String">
9+
<Value>seconds</Value>
10+
</Attribute>
11+
</Int32>
12+
<Int32 name="lat">
13+
<Dim name="/lat"/>
14+
<Attribute name="units" type="String">
15+
<Value>degrees_north</Value>
16+
</Attribute>
17+
</Int32>
18+
<Int32 name="lon">
19+
<Dim name="/lon"/>
20+
<Attribute name="units" type="String">
21+
<Value>degrees_east</Value>
22+
</Attribute>
23+
</Int32>
24+
<Float32 name="z">
25+
<Dim name="/time"/>
26+
<Dim name="/lat"/>
27+
<Dim name="/lon"/>
28+
<Attribute name="units" type="String">
29+
<Value>meters</Value>
30+
</Attribute>
31+
<Attribute name="valid_range" type="Float32">
32+
<Value>0.000000000000000</Value>
33+
<Value>5000.000000000000</Value>
34+
</Attribute>
35+
<Attribute name="_FillValue" type="Byte">
36+
<Value>1.00000000</Value>
37+
</Attribute>
38+
<Map name="time"/>
39+
<Map name="lat"/>
40+
<Map name="lon"/>
41+
</Float32>
42+
<Float32 name="t">
43+
<Dim name="/time"/>
44+
<Dim name="/lat"/>
45+
<Dim name="/lon"/>
46+
<Map name="time"/>
47+
<Map name="lat"/>
48+
<Map name="lon"/>
49+
</Float32>
50+
<Float64 name="p">
51+
<Dim name="/time"/>
52+
<Dim name="/lat"/>
53+
<Dim name="/lon"/>
54+
<Attribute name="_FillValue" type="Float32">
55+
<Value>-9999.000000000000</Value>
56+
</Attribute>
57+
<Map name="time"/>
58+
<Map name="lat"/>
59+
<Map name="lon"/>
60+
</Float64>
61+
<Int16 name="rh">
62+
<Dim name="/time"/>
63+
<Dim name="/lat"/>
64+
<Dim name="/lon"/>
65+
<Attribute name="_FillValue" type="Int16">
66+
<Value>-1</Value>
67+
</Attribute>
68+
<Map name="time"/>
69+
<Map name="lat"/>
70+
<Map name="lon"/>
71+
</Int16>
72+
<Byte name="pixel">
73+
<Dim name="/lat"/>
74+
<Dim name="/lon"/>
75+
<Map name="lat"/>
76+
<Map name="lon"/>
77+
</Byte>
78+
<String name="source">
79+
<Dim name="/lat"/>
80+
<Attribute name="string_length" type="Int32">
81+
<Value>5</Value>
82+
</Attribute>
83+
<Map name="lat"/>
84+
</String>
85+
<Attribute name="NC_GLOBAL" type="Container">
86+
<Attribute name="title" type="String">
87+
<Value>Hyrax/netcdf handler test file 1</Value>
88+
</Attribute>
89+
<Attribute name="version" type="Float32">
90+
<Value>1.000000000000000</Value>
91+
</Attribute>
92+
<Attribute name="description" type="String">
93+
<Value>This file has all of the NC_CLASSIC_MODEL data types.</Value>
94+
</Attribute>
95+
</Attribute>
96+
<Attribute name="DODS_EXTRA" type="Container">
97+
<Attribute name="Unlimited_Dimension" type="String">
98+
<Value>time</Value>
99+
</Attribute>
100+
</Attribute>
101+
</Dataset>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<request reqID ="some_unique_value" >
3+
<setContainer name="c" space="catalog">/data/nc4_test_files/nc4_nc_classic_no_comp.nc</setContainer>
4+
<define name="d">
5+
<container name="c" />
6+
</define>
7+
<get type="dmr" definition="d" />
8+
</request>
9+
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" dapVersion="4.0" dmrVersion="1.0" name="nc4_nc_classic_no_comp.nc">
3+
<Dimension name="time" size="2"/>
4+
<Dimension name="lat" size="6"/>
5+
<Dimension name="lon" size="5"/>
6+
<Int32 name="time">
7+
<Dim name="/time"/>
8+
<Attribute name="units" type="String">
9+
<Value>seconds</Value>
10+
</Attribute>
11+
</Int32>
12+
<Int32 name="lat">
13+
<Dim name="/lat"/>
14+
<Attribute name="units" type="String">
15+
<Value>degrees_north</Value>
16+
</Attribute>
17+
</Int32>
18+
<Int32 name="lon">
19+
<Dim name="/lon"/>
20+
<Attribute name="units" type="String">
21+
<Value>degrees_east</Value>
22+
</Attribute>
23+
</Int32>
24+
<Float32 name="z">
25+
<Dim name="/time"/>
26+
<Dim name="/lat"/>
27+
<Dim name="/lon"/>
28+
<Attribute name="units" type="String">
29+
<Value>meters</Value>
30+
</Attribute>
31+
<Attribute name="valid_range" type="Float32">
32+
<Value>0.000000000000000</Value>
33+
<Value>5000.000000000000</Value>
34+
</Attribute>
35+
<Attribute name="_FillValue" type="Byte">
36+
<Value>1.00000000</Value>
37+
</Attribute>
38+
<Map name="time"/>
39+
<Map name="lat"/>
40+
<Map name="lon"/>
41+
</Float32>
42+
<Float32 name="t">
43+
<Dim name="/time"/>
44+
<Dim name="/lat"/>
45+
<Dim name="/lon"/>
46+
<Map name="time"/>
47+
<Map name="lat"/>
48+
<Map name="lon"/>
49+
</Float32>
50+
<Float64 name="p">
51+
<Dim name="/time"/>
52+
<Dim name="/lat"/>
53+
<Dim name="/lon"/>
54+
<Attribute name="_FillValue" type="Float32">
55+
<Value>-9999.000000000000</Value>
56+
</Attribute>
57+
<Map name="time"/>
58+
<Map name="lat"/>
59+
<Map name="lon"/>
60+
</Float64>
61+
<Int16 name="rh">
62+
<Dim name="/time"/>
63+
<Dim name="/lat"/>
64+
<Dim name="/lon"/>
65+
<Attribute name="_FillValue" type="Int16">
66+
<Value>-1</Value>
67+
</Attribute>
68+
<Map name="time"/>
69+
<Map name="lat"/>
70+
<Map name="lon"/>
71+
</Int16>
72+
<Byte name="pixel">
73+
<Dim name="/lat"/>
74+
<Dim name="/lon"/>
75+
<Map name="lat"/>
76+
<Map name="lon"/>
77+
</Byte>
78+
<String name="source">
79+
<Dim name="/lat"/>
80+
<Attribute name="string_length" type="Int32">
81+
<Value>5</Value>
82+
</Attribute>
83+
<Map name="lat"/>
84+
</String>
85+
<Attribute name="NC_GLOBAL" type="Container">
86+
<Attribute name="title" type="String">
87+
<Value>Hyrax/netcdf handler test file 1</Value>
88+
</Attribute>
89+
<Attribute name="version" type="Float32">
90+
<Value>1.000000000000000</Value>
91+
</Attribute>
92+
<Attribute name="description" type="String">
93+
<Value>This file has all of the NC_CLASSIC_MODEL data types.</Value>
94+
</Attribute>
95+
</Attribute>
96+
<Attribute name="DODS_EXTRA" type="Container">
97+
<Attribute name="Unlimited_Dimension" type="String">
98+
<Value>time</Value>
99+
</Attribute>
100+
</Attribute>
101+
</Dataset>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<request reqID="some_unique_value" >
3+
<setContext name="dap_format">dap2</setContext>
4+
<setContainer name="c" space="catalog">/data/nc4_test_files/nc4_strings.nc</setContainer>
5+
<define name="d">
6+
<container name="c" />
7+
</define>
8+
<get type="dmr" definition="d" />
9+
</request>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" dapVersion="4.0" dmrVersion="1.0" name="nc4_strings.nc">
3+
<Dimension name="lat" size="6"/>
4+
<Dimension name="lon" size="5"/>
5+
<Int32 name="lat">
6+
<Dim name="/lat"/>
7+
</Int32>
8+
<Int32 name="lon">
9+
<Dim name="/lon"/>
10+
</Int32>
11+
<String name="station">
12+
<Dim name="/lat"/>
13+
<Dim name="/lon"/>
14+
<Attribute name="who" type="String">
15+
<Value>james</Value>
16+
</Attribute>
17+
<Attribute name="names" type="String">
18+
<Value>site_1</Value>
19+
<Value>site_2</Value>
20+
<Value>site_3</Value>
21+
</Attribute>
22+
<Map name="lat"/>
23+
<Map name="lon"/>
24+
</String>
25+
<String name="scan_line">
26+
<Dim name="/lon"/>
27+
<Map name="lon"/>
28+
</String>
29+
<String name="codec_name"/>
30+
<Attribute name="NC_GLOBAL" type="Container">
31+
<Attribute name="title" type="String">
32+
<Value>Hyrax/netcdf handler test file 2</Value>
33+
</Attribute>
34+
<Attribute name="version" type="Float32">
35+
<Value>1.000000000000000</Value>
36+
</Attribute>
37+
<Attribute name="description" type="String">
38+
<Value>This file has all of the new netcdf 4 unsigned data types.</Value>
39+
</Attribute>
40+
</Attribute>
41+
</Dataset>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<request reqID="some_unique_value" >
3+
<setContainer name="c" space="catalog">/data/nc4_test_files/nc4_strings_comp.nc</setContainer>
4+
<define name="d">
5+
<container name="c" />
6+
</define>
7+
<get type="dmr" definition="d" />
8+
</request>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" dapVersion="4.0" dmrVersion="1.0" name="nc4_strings_comp.nc">
3+
<Dimension name="lat" size="6"/>
4+
<Dimension name="lon" size="5"/>
5+
<Int32 name="lat">
6+
<Dim name="/lat"/>
7+
</Int32>
8+
<Int32 name="lon">
9+
<Dim name="/lon"/>
10+
</Int32>
11+
<String name="station">
12+
<Dim name="/lat"/>
13+
<Dim name="/lon"/>
14+
<Attribute name="who" type="String">
15+
<Value>james</Value>
16+
</Attribute>
17+
<Attribute name="names" type="String">
18+
<Value>site_1</Value>
19+
<Value>site_2</Value>
20+
<Value>site_3</Value>
21+
</Attribute>
22+
<Map name="lat"/>
23+
<Map name="lon"/>
24+
</String>
25+
<String name="scan_line">
26+
<Dim name="/lon"/>
27+
<Map name="lon"/>
28+
</String>
29+
<String name="codec_name"/>
30+
<Attribute name="NC_GLOBAL" type="Container">
31+
<Attribute name="title" type="String">
32+
<Value>Hyrax/netcdf handler test file 2</Value>
33+
</Attribute>
34+
<Attribute name="version" type="Float32">
35+
<Value>1.000000000000000</Value>
36+
</Attribute>
37+
<Attribute name="description" type="String">
38+
<Value>This file has all of the new netcdf 4 unsigned data types.</Value>
39+
</Attribute>
40+
</Attribute>
41+
</Dataset>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<request reqID="some_unique_value" >
3+
<setContainer name="c" space="catalog">/data/nc4_test_files/nc4_unsigned_types.nc</setContainer>
4+
<define name="d">
5+
<container name="c" />
6+
</define>
7+
<get type="dmr" definition="d" />
8+
</request>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" dapVersion="4.0" dmrVersion="1.0" name="nc4_unsigned_types.nc">
3+
<Dimension name="time" size="2"/>
4+
<Dimension name="lat" size="6"/>
5+
<Dimension name="lon" size="5"/>
6+
<Int32 name="time">
7+
<Dim name="/time"/>
8+
<Attribute name="units" type="String">
9+
<Value>seconds</Value>
10+
</Attribute>
11+
</Int32>
12+
<Int32 name="lat">
13+
<Dim name="/lat"/>
14+
<Attribute name="units" type="String">
15+
<Value>degrees_north</Value>
16+
</Attribute>
17+
</Int32>
18+
<Int32 name="lon">
19+
<Dim name="/lon"/>
20+
<Attribute name="units" type="String">
21+
<Value>degrees_east</Value>
22+
</Attribute>
23+
</Int32>
24+
<UInt32 name="temp">
25+
<Dim name="/time"/>
26+
<Dim name="/lat"/>
27+
<Dim name="/lon"/>
28+
<Map name="time"/>
29+
<Map name="lat"/>
30+
<Map name="lon"/>
31+
</UInt32>
32+
<UInt16 name="rh">
33+
<Dim name="/time"/>
34+
<Dim name="/lat"/>
35+
<Dim name="/lon"/>
36+
<Attribute name="_FillValue" type="UInt16">
37+
<Value>9999</Value>
38+
</Attribute>
39+
<Map name="time"/>
40+
<Map name="lat"/>
41+
<Map name="lon"/>
42+
</UInt16>
43+
<Attribute name="NC_GLOBAL" type="Container">
44+
<Attribute name="title" type="String">
45+
<Value>Hyrax/netcdf handler test file 2</Value>
46+
</Attribute>
47+
<Attribute name="version" type="Float32">
48+
<Value>1.000000000000000</Value>
49+
</Attribute>
50+
<Attribute name="description" type="String">
51+
<Value>This file has all of the new netcdf 4 cardinal data types.</Value>
52+
</Attribute>
53+
</Attribute>
54+
<Attribute name="DODS_EXTRA" type="Container">
55+
<Attribute name="Unlimited_Dimension" type="String">
56+
<Value>time</Value>
57+
</Attribute>
58+
</Attribute>
59+
</Dataset>

0 commit comments

Comments
 (0)