Package ucar.nc2.ft2.coverage
Class CoverageCoordAxis
- java.lang.Object
-
- ucar.nc2.ft2.coverage.CoverageCoordAxis
-
- All Implemented Interfaces:
Comparable<CoverageCoordAxis>
- Direct Known Subclasses:
CoverageCoordAxis1D
,LatLonAxis2D
,TimeAxis2DFmrc
,TimeAxis2DSwath
public abstract class CoverageCoordAxis extends Object implements Comparable<CoverageCoordAxis>
Coverage CoordAxis abstract superclass Immutable with (possible) lazy eval of values- Since:
- 7/11/2015
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverageCoordAxis.DependenceType
static class
CoverageCoordAxis.Spacing
-
Field Summary
Fields Modifier and Type Field Description protected AttributeContainer
attributes
protected AxisType
axisType
protected DataType
dataType
protected CoverageCoordAxis.DependenceType
dependenceType
protected List<String>
dependsOn
protected String
description
protected double
endValue
protected boolean
isSubset
protected String
name
protected int
ncoords
protected CoordAxisReader
reader
protected double
resolution
protected CoverageCoordAxis.Spacing
spacing
protected double
startValue
protected TimeHelper
timeHelper
protected String
units
protected double[]
values
-
Constructor Summary
Constructors Modifier Constructor Description protected
CoverageCoordAxis(CoverageCoordAxisBuilder builder)
-
Method Summary
-
-
-
Field Detail
-
name
protected final String name
-
description
protected final String description
-
dataType
protected final DataType dataType
-
axisType
protected final AxisType axisType
-
attributes
protected final AttributeContainer attributes
-
dependenceType
protected final CoverageCoordAxis.DependenceType dependenceType
-
ncoords
protected final int ncoords
-
spacing
protected final CoverageCoordAxis.Spacing spacing
-
startValue
protected final double startValue
-
endValue
protected final double endValue
-
resolution
protected final double resolution
-
reader
protected final CoordAxisReader reader
-
isSubset
protected final boolean isSubset
-
timeHelper
protected final TimeHelper timeHelper
-
units
protected final String units
-
values
protected double[] values
-
-
Constructor Detail
-
CoverageCoordAxis
protected CoverageCoordAxis(CoverageCoordAxisBuilder builder)
-
-
Method Detail
-
setDataset
protected void setDataset(CoordSysContainer dataset)
-
compareTo
public int compareTo(CoverageCoordAxis o)
- Specified by:
compareTo
in interfaceComparable<CoverageCoordAxis>
-
copy
public abstract CoverageCoordAxis copy()
-
subset
public abstract Optional<CoverageCoordAxis> subset(SubsetParams params)
-
subset
public abstract Optional<CoverageCoordAxis> subset(double minValue, double maxValue, int stride)
-
subsetDependent
public abstract Optional<CoverageCoordAxis> subsetDependent(CoverageCoordAxis1D dependsOn)
-
getCoordsAsArray
public abstract Array getCoordsAsArray()
-
getCoordBoundsAsArray
public abstract Array getCoordBoundsAsArray()
-
getName
public String getName()
-
getDataType
public DataType getDataType()
-
getAxisType
public AxisType getAxisType()
-
attributes
public AttributeContainer attributes()
Get the axis' attributes.
-
getAttributes
@Deprecated public List<Attribute> getAttributes()
Deprecated.use attributes()
-
findAttribute
@Deprecated public Attribute findAttribute(String attName)
Deprecated.use attributes()
-
getAttributeContainer
@Deprecated public AttributeContainer getAttributeContainer()
Deprecated.use attributes()
-
getNcoords
public int getNcoords()
-
getSpacing
public CoverageCoordAxis.Spacing getSpacing()
-
isRegular
public boolean isRegular()
-
getResolution
public double getResolution()
-
getStartValue
public double getStartValue()
-
getEndValue
public double getEndValue()
-
getUnits
public String getUnits()
-
getDescription
public String getDescription()
-
getDependenceType
public CoverageCoordAxis.DependenceType getDependenceType()
-
isScalar
public boolean isScalar()
-
getDependsOn
public String getDependsOn()
-
getHasData
public boolean getHasData()
-
isSubset
public boolean isSubset()
-
isInterval
public boolean isInterval()
-
getShape
public int[] getShape()
-
getRange
public Range getRange()
-
getRangeIterator
public RangeIterator getRangeIterator()
-
getSummary
public String getSummary()
-
convert
public double convert(CalendarDate date)
-
makeDate
public CalendarDate makeDate(double value)
-
getDateRange
public CalendarDateRange getDateRange()
-
getOffsetInTimeUnits
public double getOffsetInTimeUnits(CalendarDate start, CalendarDate end)
-
makeDateInTimeUnits
public CalendarDate makeDateInTimeUnits(CalendarDate start, double addTo)
-
getRefDate
public CalendarDate getRefDate()
-
getCalendar
public Calendar getCalendar()
-
getCalendarDateUnit
public CalendarDateUnit getCalendarDateUnit()
-
loadValuesIfNeeded
protected void loadValuesIfNeeded()
-
getValues
public double[] getValues()
-
-