public class RecordDatasetHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
RecordDatasetHelper.RecordPointObs
Deprecated.
|
class |
RecordDatasetHelper.RecordStationObs
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
protected double |
altScaleFactor
Deprecated.
|
protected String |
altVName
Deprecated.
|
protected ucar.unidata.geoloc.LatLonRect |
boundingBox
Deprecated.
|
protected StringBuffer |
errs
Deprecated.
|
protected String |
latVName
Deprecated.
|
protected String |
lonVName
Deprecated.
|
protected double |
maxDate
Deprecated.
|
protected double |
minDate
Deprecated.
|
protected ucar.nc2.dataset.NetcdfDataset |
ncfile
Deprecated.
|
protected String |
nomTimeVName
Deprecated.
|
protected ucar.nc2.Dimension |
obsDim
Deprecated.
|
protected String |
obsTimeVName
Deprecated.
|
protected ucar.nc2.dataset.StructureDS |
recordVar
Deprecated.
|
protected boolean |
showErrors
Deprecated.
|
protected ucar.ma2.DataType |
stationIdType
Deprecated.
|
protected String |
stnDescVName
Deprecated.
|
protected Map<Object,ucar.unidata.geoloc.Station> |
stnHash
Deprecated.
|
protected String |
stnIdVName
Deprecated.
|
protected String |
stnNameVName
Deprecated.
|
protected ucar.nc2.units.DateUnit |
timeUnit
Deprecated.
|
| Constructor and Description |
|---|
RecordDatasetHelper(ucar.nc2.dataset.NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables)
Deprecated.
Constructor.
|
RecordDatasetHelper(ucar.nc2.dataset.NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables,
StringBuffer errBuffer)
Deprecated.
|
RecordDatasetHelper(ucar.nc2.dataset.NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables,
String recDimName,
StringBuffer errBuffer)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List |
getData(ArrayList records,
ucar.unidata.geoloc.LatLonRect boundingBox,
ucar.nc2.util.CancelTask cancel)
Deprecated.
|
List |
getData(ArrayList records,
ucar.unidata.geoloc.LatLonRect boundingBox,
double startTime,
double endTime,
ucar.nc2.util.CancelTask cancel)
Deprecated.
|
int |
getRecordCount()
Deprecated.
|
ucar.nc2.Structure |
getRecordVar()
Deprecated.
|
ucar.nc2.units.DateUnit |
getTimeUnit()
Deprecated.
|
ArrayList |
readAllCreateObs(ucar.nc2.util.CancelTask cancel)
Deprecated.
This reads through all the records in the dataset, and constructs a list of
RecordPointObs or RecordStationObs.
|
void |
setLocationInfo(String latVName,
String lonVName,
String altVName)
Deprecated.
|
void |
setShortNames(String latVName,
String lonVName,
String altVName,
String obsTimeVName,
String nomTimeVName)
Deprecated.
|
void |
setStationInfo(String stnIdVName,
String stnDescVName)
Deprecated.
Set extra information used by station obs datasets.
|
void |
setTimeUnit(ucar.nc2.units.DateUnit timeUnit)
Deprecated.
|
protected ucar.nc2.dataset.NetcdfDataset ncfile
protected String obsTimeVName
protected String nomTimeVName
protected String stnIdVName
protected String stnNameVName
protected String stnDescVName
protected String latVName
protected String lonVName
protected String altVName
protected ucar.ma2.DataType stationIdType
protected ucar.nc2.dataset.StructureDS recordVar
protected ucar.nc2.Dimension obsDim
protected ucar.unidata.geoloc.LatLonRect boundingBox
protected double minDate
protected double maxDate
protected ucar.nc2.units.DateUnit timeUnit
protected double altScaleFactor
protected StringBuffer errs
protected boolean showErrors
public RecordDatasetHelper(ucar.nc2.dataset.NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables)
ncfile - the netccdf filetypedDataVariables - list of data variables; all record variables will be added to this list, except . You
can remove extraobsTimeVName - observation time variable name (required)nomTimeVName - nominal time variable name (may be null)IllegalArgumentException - if ncfile has no unlimited dimension.public RecordDatasetHelper(ucar.nc2.dataset.NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables,
StringBuffer errBuffer)
public RecordDatasetHelper(ucar.nc2.dataset.NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables,
String recDimName,
StringBuffer errBuffer)
ncfile - the netccdf filetypedDataVariables - list of data variables; all record variables will be added to this list, except . You
can remove extraobsTimeVName - observation time variable name (required)nomTimeVName - nominal time variable name (may be null)IllegalArgumentException - if ncfile has no unlimited dimension and recDimName is null.public void setStationInfo(String stnIdVName, String stnDescVName)
stnIdVName - the obs variable that is used to find the station in the stnHash; may be type int or a String
(char).stnDescVName - optional station var containing station descriptionpublic void setLocationInfo(String latVName, String lonVName, String altVName)
public ucar.nc2.Structure getRecordVar()
public int getRecordCount()
public void setTimeUnit(ucar.nc2.units.DateUnit timeUnit)
public ucar.nc2.units.DateUnit getTimeUnit()
public ArrayList readAllCreateObs(ucar.nc2.util.CancelTask cancel) throws IOException
If stnIdVName is not null, its a StationDataset, then construct a Station HashMap of StationImpl objects. Add the RecordStationObs into the list of obs for that station.
cancel - allow user to cancelIOExceptionpublic void setShortNames(String latVName, String lonVName, String altVName, String obsTimeVName, String nomTimeVName)
public List getData(ArrayList records, ucar.unidata.geoloc.LatLonRect boundingBox, ucar.nc2.util.CancelTask cancel) throws IOException
IOExceptionpublic List getData(ArrayList records, ucar.unidata.geoloc.LatLonRect boundingBox, double startTime, double endTime, ucar.nc2.util.CancelTask cancel) throws IOException
IOException