mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-11 16:40:36 +08:00
Decided that dap4 <Map>'s that refer to struct
or seq fields is not a well-defined concept. So for now, I am disallowing them. Required updating a number of test files in dap4_test. This is tagged by the line #undef ALLOWFIELDMAPS in ./libdap4/ncd4types.h. This should affect only dap4 and nothing else.
This commit is contained in:
parent
132ac21c46
commit
3a74ee9a94
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -11,10 +11,7 @@
|
||||
</Structure>
|
||||
</Types>
|
||||
<Variables>
|
||||
<Struct name="s" type="/s">
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
<Struct name="s" type="/s"/>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -8,7 +8,6 @@ dimensions:
|
||||
_Anonymous2 = 2 ;
|
||||
variables:
|
||||
s_t s(_Anonymous2, _Anonymous2) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
string :_dap4.ce = "/s[0:2:3][0:1]" ;
|
||||
|
@ -8,7 +8,6 @@ dimensions:
|
||||
_Anonymous2 = 2 ;
|
||||
variables:
|
||||
s_t s(_Anonymous2, _Anonymous2) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
string :_dap4.ce = "/s[0:2:3][0:1]" ;
|
||||
|
@ -17,8 +17,6 @@
|
||||
<Struct name="s" type="/s">
|
||||
<Dim name="/_Anonymous2"/>
|
||||
<Dim name="/_Anonymous2"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
</Variables>
|
||||
<Attribute name="_dap4.ce" type="String">
|
||||
|
@ -9,7 +9,6 @@ dimensions:
|
||||
dy = 3 ;
|
||||
variables:
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -9,7 +9,6 @@ dimensions:
|
||||
dy = 3 ;
|
||||
variables:
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -18,8 +18,6 @@
|
||||
<Struct name="s" type="/s">
|
||||
<Dim name="/dx"/>
|
||||
<Dim name="/dy"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
|
@ -11,7 +11,7 @@ variables:
|
||||
float z(dx) ;
|
||||
float t(dy) ;
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -11,7 +11,7 @@ variables:
|
||||
float z(dx) ;
|
||||
float t(dy) ;
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
string s:_edu.ucar.maps = "/z", "/t" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -14,7 +14,6 @@ types:
|
||||
}; // x_t
|
||||
variables:
|
||||
x_t x ;
|
||||
string x:_edu.ucar.maps = "/x_field1.x", "/x_field1.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -14,7 +14,6 @@ types:
|
||||
}; // x_t
|
||||
variables:
|
||||
x_t x ;
|
||||
string x:_edu.ucar.maps = "/x_field1.x", "/x_field1.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -19,10 +19,7 @@
|
||||
</Structure>
|
||||
</Types>
|
||||
<Variables>
|
||||
<Struct name="x" type="/x">
|
||||
<Map name="/x_field1.x"/>
|
||||
<Map name="/x_field1.y"/>
|
||||
</Struct>
|
||||
<Struct name="x" type="/x"/>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -11,10 +11,7 @@
|
||||
</Structure>
|
||||
</Types>
|
||||
<Variables>
|
||||
<Struct name="s" type="/s">
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Struct>
|
||||
<Struct name="s" type="/s"/>
|
||||
</Variables>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -8,7 +8,6 @@ dimensions:
|
||||
_Anonymous2 = 2 ;
|
||||
variables:
|
||||
s_t s(_Anonymous2, _Anonymous2) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
string :_dap4.ce = "/s[0:2:3][0:1]" ;
|
||||
|
@ -9,7 +9,6 @@ dimensions:
|
||||
dy = 3 ;
|
||||
variables:
|
||||
s_t s(dx, dy) ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -14,7 +14,6 @@ types:
|
||||
}; // x_t
|
||||
variables:
|
||||
x_t x ;
|
||||
string x:_edu.ucar.maps = "/x_field1.x", "/x_field1.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
@ -6,7 +6,6 @@ types:
|
||||
}; // s_t
|
||||
variables:
|
||||
s_t s ;
|
||||
string s:_edu.ucar.maps = "/s.x", "/s.y" ;
|
||||
|
||||
// global attributes:
|
||||
:_DAP4_Little_Endian = 1UB ;
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -51,7 +51,7 @@
|
||||
</Opaque>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim name="/d5"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -51,7 +51,7 @@
|
||||
</Opaque>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim name="/d5"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -33,12 +33,12 @@
|
||||
<String name="vs"/>
|
||||
<Opaque name="vo" _edu.ucar.opaque.size="8"/>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
<Enum name="secondary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -33,12 +33,12 @@
|
||||
<String name="vs"/>
|
||||
<Opaque name="vo"/>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
<Enum name="secondary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<EnumConst name="Missing" value="127"/>
|
||||
</Enumeration>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -24,7 +24,7 @@
|
||||
</Attribute>
|
||||
<Group name="h">
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -21,7 +21,7 @@
|
||||
</Enumeration>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim size="2"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -22,7 +22,7 @@
|
||||
</Enumeration>
|
||||
<Enum name="primary_cloud" enum="/cloud_class_t">
|
||||
<Dim name="/d5"/>
|
||||
<Attribute name="_FillValue" type="String">
|
||||
<Attribute name="_FillValue" type="/cloud_class_t">
|
||||
<Value value="Missing"/>
|
||||
</Attribute>
|
||||
</Enum>
|
||||
|
@ -8,8 +8,6 @@
|
||||
<Structure name="s">
|
||||
<Int32 name="x"/>
|
||||
<Int32 name="y"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -10,8 +10,6 @@
|
||||
<Int32 name="y"/>
|
||||
<Dim size="2"/>
|
||||
<Dim size="2"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_dap4.ce" type="String">
|
||||
<Value value="/s[0:2:3][0:1]"/>
|
||||
|
@ -12,8 +12,6 @@
|
||||
<Int32 name="y"/>
|
||||
<Dim name="/dx"/>
|
||||
<Dim name="/dy"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -14,8 +14,6 @@
|
||||
<Int32 name="x"/>
|
||||
<Int32 name="y"/>
|
||||
</Structure>
|
||||
<Map name="/x.field1.x"/>
|
||||
<Map name="/x.field1.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
@ -8,8 +8,6 @@
|
||||
<Structure name="s">
|
||||
<Int32 name="x"/>
|
||||
<Int32 name="y"/>
|
||||
<Map name="/s.x"/>
|
||||
<Map name="/s.y"/>
|
||||
</Structure>
|
||||
<Attribute name="_DAP4_Little_Endian" type="UInt8">
|
||||
<Value value="1"/>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user