org.autoplot.metatree.IstpMetadataModel

Metadata model for ISTP conventions. For example, FIELDNAM is mapped to QDataSet.NAME, SCALEMIN is mapped to TYPICAL_MIN, etc. When LaTeX fragments are found in axis titles {@code (s.contains("^{") || s.contains("_{"))}, then this is converted into Granny control strings.

IstpMetadataModel( )


USER_PROP_VIRTUAL_FUNCTION

Non-null, non-empty String if it is virtual. The string will be like "compute_magnitude(B_xyz_gse)"


USER_PROP_VIRTUAL_COMPONENT_


VALUE_MIN


VALUE_MAX


doubleValue

doubleValue( Object o, Units units, double deflt, Object minmax ) → double

returns the Entry that is convertible to double as a double. When there is an array, throw IllegalArgumentException. Note this is used in CdfDataSource and other projects.

Parameters

o - the datum in double, int, String, array, etc.
units - the units of the datum, result is returned in these units.
deflt - the default value
minmax - VALUE_MIN or VALUE_MAX or null.

Returns:

the double or

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


getLabel

getLabel( ) → String

Returns:

java.lang.String

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


getValidRange

getValidRange( java.util.Map attrs, Units units ) → DatumRange

Return the range from VALIDMIN to VALIDMAX. If the unit is an ordinal unit (see LABL_PTR_1), then return null. Note QDataSet only allows times from 1000AD to 9000AD when Units are TimeLocationUnits. Note this is used in CdfDataSource and other projects.

Parameters

attrs - the ISTP attributes
units - the units for this variable, used to interpret doubles.

Returns:

the range.

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


maybeReduceRank2

maybeReduceRank2( org.das2.qds.MutablePropertyDataSet depDs ) → org.das2.qds.MutablePropertyDataSet

RBSP/ECT/MAGEIS has files where typically the energy labels are constant, but they must be rank 2 because they can vary. Seth wishes the Energy labels be shown when they are constant, and this is a quick check to detect the case. The data can also contain fill records and channels that contain all fill.

Parameters

depDs - a MutablePropertyDataSet

Returns:

the rank 1 dataset or null.

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


properties

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

Interpret the ISTP metadata into QDataSet properties.

Parameters

meta - a java.util.Map

Returns:

a java.util.Map

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