org.autoplot.metatree.MetadataUtil

MetadataUtil( )


getMetadataModel

getMetadataModel( String t ) → org.autoplot.datasource.MetadataModel

return the MetadataModel object for this identifier, or null.

Parameters

t - the id of the model, such as "ISTP-CDF", or null.

Returns:

an org.autoplot.datasource.MetadataModel

[search for examples] [view on GitHub] [view on old javadoc]


getNode

getNode( org.w3c.dom.Node node, String[] path ) → org.w3c.dom.Node

get the code for the path.

Parameters

node - the root node
path - the name for each level to pick.

Returns:

the node at this point

[search for examples] [view on GitHub] [view on old javadoc]

getNode( java.util.Map tree, String[] path ) → Object

normalizeFormatSpecifier

normalizeFormatSpecifier( String spec ) → String

converts IDL and Fortran-style specs (F7.2) to Java/C style (%7.2f), or returns null when this cannot be done.

Parameters

spec - Java or Fortran style format

Returns:

null if no conversion can be made, or Java style

See Also:

String#format(java.lang.String, java.lang.Object...)
org.das2.qds.util.AsciiParser#getRegexForFormat(java.lang.String)


[search for examples] [view on GitHub] [view on old javadoc]


sliceProperties

sliceProperties( java.util.Map properties, int sliceDimension ) → java.util.Map

slice the properties to reduce rank. TODO: This all needs review, since the QDataSet model is mature.

Parameters

properties - a java.util.Map
sliceDimension - an int

Returns:

a java.util.Map

See Also:

DataSetOps.sliceProperties


[search for examples] [view on GitHub] [view on old javadoc]


sprocess

sprocess( String c, java.util.Map properties ) → java.util.Map

run the DataSource-provided properties through sprocess. TODO: this has not been implemented for most operations, and this all needs to be reconsidered

Parameters

c - a String
properties - a java.util.Map

Returns:

a java.util.Map

[search for examples] [view on GitHub] [view on old javadoc]


toMetaTree

toMetaTree( org.w3c.dom.Node node ) → java.util.Map

converts tree model node into canonical Map. Branch nodes are HashMap as well.

Parameters

node - a Node

Returns:

a java.util.Map

[search for examples] [view on GitHub] [view on old javadoc]


transposeProperties

transposeProperties( java.util.Map properties ) → java.util.Map

swap DEPEND_0 and DEPEND_1 and pass on the rest.

Parameters

properties - a java.util.Map

Returns:

a java.util.Map

[search for examples] [view on GitHub] [view on old javadoc]