public class DAS extends AttributeTable
lat variable has an
attribute units of degrees_north.
Attributes {
GLOBAL {
String title "Reynolds Optimum Interpolation (OI) SST";
}
lat {
String units "degrees_north";
String long_name "Latitude";
Float64 actual_range 89.5, -89.5;
}
lon {
String units "degrees_east";
String long_name "Longitude";
Float64 actual_range 0.5, 359.5;
}
time {
String units "days since 1-1-1 00:00:00";
String long_name "Time";
Float64 actual_range 726468., 729289.;
String delta_t "0000-00-07 00:00:00";
}
sst {
String long_name "Weekly Means of Sea Surface Temperature";
Float64 actual_range -1.8, 35.09;
String units "degC";
Float64 add_offset 0.;
Float64 scale_factor 0.0099999998;
Int32 missing_value 32767;
}
}
Attributes may have arbitrary names, although in most datasets it
is important to choose these names so a reader will know what they
describe. In the above example, the GLOBAL attribute provides
information about the entire dataset.
Data attribute information is an important part of the the data
provided to a OPeNDAP client by a server, and the DAS is how this
data is packaged for sending (and how it is received).DDS,
AttributeTable,
Attribute,
Serialized FormDAPNode.CloneMap_nameClear, _nameEncoded, log| Constructor and Description |
|---|
DAS()
Create a new empty
DAS. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeTable(java.lang.String name,
AttributeTable a)
Adds an
AttributeTable to the DAS. |
DAPNode |
cloneDAG(DAPNode.CloneMap map)
Returns a clone of this
Attribute. |
AttributeTable |
getAttributeTable(java.lang.String name)
Returns the
AttributeTable with the given name. |
AttributeTable |
getAttributeTableN(java.lang.String name)
Returns the
AttributeTable with the given name. |
boolean |
parse(java.io.InputStream stream) |
boolean |
parse(java.lang.String text) |
void |
resolveAliases()
This method searchs through the
DAS
for Alias members. |
addAlias, addContainer, appendAttribute, appendAttribute, appendContainer, delAttribute, delAttribute, getAttribute, getNames, hasAttribute, print, print, print, print, print, printXML, printXML, printXML, printXML, printXML, sizeclone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setClearName, setEncodedName, setParent, setProject, setProject, setProjectedpublic boolean parse(java.io.InputStream stream)
throws ParseException,
DAP2Exception
ParseExceptionDAP2Exceptionpublic boolean parse(java.lang.String text)
throws ParseException,
DAP2Exception
ParseExceptionDAP2Exceptionpublic final AttributeTable getAttributeTable(java.lang.String name) throws NoSuchAttributeException
AttributeTable with the given name.name - the name of the AttributeTable to return.AttributeTable with the specified name, or null
if there is no matching AttributeTable.NoSuchAttributeException - There is no AttributeTable with the passed name.AttributeTablepublic final AttributeTable getAttributeTableN(java.lang.String name)
AttributeTable with the given name.name - the name of the AttributeTable to return.AttributeTable with the specified name, or null
if there is no matching AttributeTable.AttributeTablepublic void addAttributeTable(java.lang.String name,
AttributeTable a)
throws AttributeExistsException
AttributeTable to the DAS.name - the name of the AttributeTable to add.a - the AttributeTable to add.AttributeExistsExceptionAttributeTablepublic void resolveAliases()
throws MalformedAliasException,
UnresolvedAliasException,
NoSuchAttributeException
DAS
for Alias members. When an Alias is found the method attempts to
resolve it to a specific Attribute.
This method is invoked by parse(InputStream is), and is
used to search for Aliases in AttributeTables found in the DAS.
If you are building a DAS from it's API it is important to call
this method prior to returning said DAS to an application. If
this call is not made, Aliases will not work correctly.public DAPNode cloneDAG(DAPNode.CloneMap map) throws java.lang.CloneNotSupportedException
Attribute.
See DAPNode.cloneDag()cloneDAG in class AttributeTablemap - track previously cloned nodesAttribute.java.lang.CloneNotSupportedException