Package noaa.coastwatch.util
Class BoxSurvey
java.lang.Object
noaa.coastwatch.util.EarthDataSurvey
noaa.coastwatch.util.BoxSurvey
- Direct Known Subclasses:
PolygonSurvey
The
BoxSurvey
class holds survey information for a
rectangle of data values.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a new empty box survey.BoxSurvey
(DataVariable variable, EarthTransform trans, DataLocation start, DataLocation end) Creates a new box survey. -
Method Summary
Modifier and TypeMethodDescriptionvoid
getResults
(ReportFormatter formatter) Gets a results report for the survey.protected double
Gets the sample size (total values sampled divided by the total values in the area) in percent.protected String
Gets the survey type for results reporting.Methods inherited from class noaa.coastwatch.util.EarthDataSurvey
getExtents, getStatistics, getTransform, getVariableFormat, getVariableName, getVariableUnits, init
-
Constructor Details
-
BoxSurvey
protected BoxSurvey()Creates a new empty box survey. -
BoxSurvey
Creates a new box survey.- Parameters:
variable
- the survey variable.trans
- the survey variable earth transform.start
- the box starting location.end
- the box ending location. The ending location must have coordinates >= the starting location.
-
-
Method Details
-
getSurveyType
Gets the survey type for results reporting. -
getSampleSize
protected double getSampleSize()Gets the sample size (total values sampled divided by the total values in the area) in percent. -
getResults
Description copied from class:EarthDataSurvey
Gets a results report for the survey.- Overrides:
getResults
in classEarthDataSurvey
- Parameters:
formatter
- the formatter to use for the report.
-