This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
That link tells us about the “_Unsigned” attribute, which is fine.
The question remains – can we declare a 64-bit signed or unsigned int using NcML - the NcML 2.2 schema doesn’t provide for a 64-bit int (unless it’s type=“long”
with _Unsigned=”true”?):
<!--
possible data types for Variable, Attribute objects
-->
-
<xsd:simpleType name="DataType"> -
<xsd:restriction base="xsd:token">
<xsd:enumeration
value="byte"
/>
<xsd:enumeration
value="char"
/>
<xsd:enumeration
value="short"
/>
<xsd:enumeration
value="int"
/>
<xsd:enumeration
value="long"
/>
<xsd:enumeration
value="float"
/>
<xsd:enumeration
value="double"
/>
<xsd:enumeration
value="String"
/>
<xsd:enumeration
value="string"
/>
<xsd:enumeration
value="Structure"
/>
<xsd:enumeration
value="Sequence"
/>
<xsd:enumeration
value="opaque"
/>
<xsd:enumeration
value="enum1"
/>
<xsd:enumeration
value="enum2"
/>
<xsd:enumeration
value="enum4"
/>
</xsd:restriction>
</xsd:simpleType> Mike From: John Caron [mailto:address@hidden]
Have a look here: On Mon, Aug 4, 2014 at 3:33 PM, Carlomusto, Michael <address@hidden> wrote: John and Russ, Uint64 is not an allowable data types in the 2.2 version of the NcML schema. Is there a way to get around this so we can define a variable as a 64-bit unsigned integer using NcML? Thanks. Mike Carlomusto "This information is only intended for the use of the individual or entity named in this email.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the contents of this information is strictly prohibited. If you have received this email in error, please notify me and delete it immediately." Michael Carlomusto
|