Package ucar.nc2.dataset
Enum NetcdfDataset.Enhance
- java.lang.Object
-
- java.lang.Enum<NetcdfDataset.Enhance>
-
- ucar.nc2.dataset.NetcdfDataset.Enhance
-
- All Implemented Interfaces:
Serializable
,Comparable<NetcdfDataset.Enhance>
- Enclosing class:
- NetcdfDataset
public static enum NetcdfDataset.Enhance extends Enum<NetcdfDataset.Enhance>
Possible enhancements for a NetcdfDataset
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ApplyClassifier
Classify doubles or floats based on positive/negative into 1 or 0 x<0 --> 0 x>0 --> 1ApplyNormalizer
Calculate minimum value and range (maximum - minimum) and apply to data: (z - min)/range.ApplyScaleOffset
Apply scale and offset to values, promoting the data type if needed.ApplyStandardizer
Calculate mean and standard deviation and apply to data: (z-mean)/standard_deviation.ConvertEnums
Convert enums to Strings.ConvertMissing
Replacemissing
data with NaNs, for efficiency.ConvertUnsigned
Convert unsigned values to signed values.CoordSystems
Build coordinate systems.IncompleteCoordSystems
Build coordinate systems allowing for incomplete coordinate systems (i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NetcdfDataset.Enhance
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetcdfDataset.Enhance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ConvertEnums
public static final NetcdfDataset.Enhance ConvertEnums
Convert enums to Strings.
-
ConvertUnsigned
public static final NetcdfDataset.Enhance ConvertUnsigned
Convert unsigned values to signed values. ForCDM.UNSIGNED
variables, reinterpret the bit patterns of any negative values as unsigned. The result will be positive values that must be stored in alarger data type
.
-
ApplyScaleOffset
public static final NetcdfDataset.Enhance ApplyScaleOffset
Apply scale and offset to values, promoting the data type if needed.
-
ConvertMissing
public static final NetcdfDataset.Enhance ConvertMissing
Replacemissing
data with NaNs, for efficiency. Note that if the enhanced data type is notFLOAT
orDOUBLE
, this has no effect.
-
CoordSystems
public static final NetcdfDataset.Enhance CoordSystems
Build coordinate systems.
-
IncompleteCoordSystems
public static final NetcdfDataset.Enhance IncompleteCoordSystems
Build coordinate systems allowing for incomplete coordinate systems (i.e. not every dimension in a variable has a corresponding coordinate variable.
-
ApplyStandardizer
public static final NetcdfDataset.Enhance ApplyStandardizer
Calculate mean and standard deviation and apply to data: (z-mean)/standard_deviation. If the enhanced data type is notFLOAT
orDOUBLE
, this has no effect.
-
ApplyNormalizer
public static final NetcdfDataset.Enhance ApplyNormalizer
Calculate minimum value and range (maximum - minimum) and apply to data: (z - min)/range. If the enhanced data type is notFLOAT
orDOUBLE
, this has no effect.
-
ApplyClassifier
public static final NetcdfDataset.Enhance ApplyClassifier
Classify doubles or floats based on positive/negative into 1 or 0 x<0 --> 0 x>0 --> 1
-
-
Method Detail
-
values
public static NetcdfDataset.Enhance[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NetcdfDataset.Enhance c : NetcdfDataset.Enhance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetcdfDataset.Enhance valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-