Package noaa.coastwatch.util
Class EarthDataSurvey
java.lang.Object
noaa.coastwatch.util.EarthDataSurvey
- Direct Known Subclasses:
BoxSurvey
,LineSurvey
,PointSurvey
The
EarthDataSurvey
class is used to perform surveys
on DataVariable
objects, and is the abstract parent of
all surveys. It holds information on the survey variable,
statistics, extents, and so on. Child classes should implement an
appropriate constructor and a getResults()
method for
the results formatting.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a new empty survey.protected
EarthDataSurvey
(String name, String units, NumberFormat format, EarthTransform trans, Statistics stats, DataLocation[] extents) Creates a new data survey. -
Method Summary
Modifier and TypeMethodDescriptionGets the survey extents as [start, end].void
getResults
(ReportFormatter formatter) Gets a results report for the survey.Gets the survey statistics.Gets the survey variable earth transform.Gets the survey variable number formatter.Gets the survey variable name.Gets the survey variable units.protected void
init
(String name, String units, NumberFormat format, EarthTransform trans, Statistics stats, DataLocation[] extents) Initializes the survey with the specified information.
-
Constructor Details
-
EarthDataSurvey
protected EarthDataSurvey()Creates a new empty survey. -
EarthDataSurvey
protected EarthDataSurvey(String name, String units, NumberFormat format, EarthTransform trans, Statistics stats, DataLocation[] extents) Creates a new data survey.- Parameters:
name
- the survey variable name.units
- the survey variable units.format
- the survey variable formatter.trans
- the survey variable earth transform.stats
- the survey statistics.extents
- the survey extents as [start,end].
-
-
Method Details
-
getVariableName
Gets the survey variable name. -
getVariableUnits
Gets the survey variable units. -
getVariableFormat
Gets the survey variable number formatter. -
getTransform
Gets the survey variable earth transform. -
getStatistics
Gets the survey statistics. -
getExtents
Gets the survey extents as [start, end]. -
getResults
Gets a results report for the survey.- Parameters:
formatter
- the formatter to use for the report.- Since:
- 3.7.1
-
init
protected void init(String name, String units, NumberFormat format, EarthTransform trans, Statistics stats, DataLocation[] extents) Initializes the survey with the specified information.- Parameters:
name
- the survey variable name.units
- the survey variable units.format
- the survey variable formatter.trans
- the survey variable earth transform.stats
- the survey statistics.extents
- the survey extents as [start,end].
-