|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.dt.point.RecordDatasetHelper
public class RecordDatasetHelper
Helper class for using the netcdf-3 record dimension. Can be used for PointObs or StationObs.
Nested Class Summary | |
---|---|
class |
RecordDatasetHelper.RecordPointObs
Deprecated. |
class |
RecordDatasetHelper.RecordStationObs
Deprecated. |
Field Summary | |
---|---|
protected double |
altScaleFactor
Deprecated. |
protected String |
altVName
Deprecated. |
protected LatLonRect |
boundingBox
Deprecated. |
protected StringBuffer |
errs
Deprecated. |
protected String |
latVName
Deprecated. |
protected String |
lonVName
Deprecated. |
protected double |
maxDate
Deprecated. |
protected double |
minDate
Deprecated. |
protected NetcdfDataset |
ncfile
Deprecated. |
protected String |
nomTimeVName
Deprecated. |
protected Dimension |
obsDim
Deprecated. |
protected String |
obsTimeVName
Deprecated. |
protected StructureDS |
recordVar
Deprecated. |
protected boolean |
showErrors
Deprecated. |
protected DataType |
stationIdType
Deprecated. |
protected String |
stnDescVName
Deprecated. |
protected Map<Object,Station> |
stnHash
Deprecated. |
protected String |
stnIdVName
Deprecated. |
protected String |
stnNameVName
Deprecated. |
protected DateUnit |
timeUnit
Deprecated. |
Constructor Summary | |
---|---|
RecordDatasetHelper(NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables)
Deprecated. Constructor. |
|
RecordDatasetHelper(NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables,
StringBuffer errBuffer)
Deprecated. |
|
RecordDatasetHelper(NetcdfDataset ncfile,
String obsTimeVName,
String nomTimeVName,
List typedDataVariables,
String recDimName,
StringBuffer errBuffer)
Deprecated. Constructor. |
Method Summary | |
---|---|
List |
getData(ArrayList records,
LatLonRect boundingBox,
CancelTask cancel)
Deprecated. |
List |
getData(ArrayList records,
LatLonRect boundingBox,
double startTime,
double endTime,
CancelTask cancel)
Deprecated. |
int |
getRecordCount()
Deprecated. |
Structure |
getRecordVar()
Deprecated. |
DateUnit |
getTimeUnit()
Deprecated. |
ArrayList |
readAllCreateObs(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(DateUnit timeUnit)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected 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 DataType stationIdType
protected Map<Object,Station> stnHash
protected StructureDS recordVar
protected Dimension obsDim
protected LatLonRect boundingBox
protected double minDate
protected double maxDate
protected DateUnit timeUnit
protected double altScaleFactor
protected StringBuffer errs
protected boolean showErrors
Constructor Detail |
---|
public RecordDatasetHelper(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(NetcdfDataset ncfile, String obsTimeVName, String nomTimeVName, List typedDataVariables, StringBuffer errBuffer)
public RecordDatasetHelper(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.Method Detail |
---|
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 Structure getRecordVar()
public int getRecordCount()
public void setTimeUnit(DateUnit timeUnit)
public DateUnit getTimeUnit()
public ArrayList readAllCreateObs(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 cancel
IOException
public void setShortNames(String latVName, String lonVName, String altVName, String obsTimeVName, String nomTimeVName)
public List getData(ArrayList records, LatLonRect boundingBox, CancelTask cancel) throws IOException
IOException
public List getData(ArrayList records, LatLonRect boundingBox, double startTime, double endTime, CancelTask cancel) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |