ucar.nc2.dt.trajectory
Class COSMICTrajectoryObsDataset

java.lang.Object
  extended by ucar.nc2.dt.TypedDatasetImpl
      extended by ucar.nc2.dt.trajectory.TrajectoryObsDatasetImpl
          extended by ucar.nc2.dt.trajectory.COSMICTrajectoryObsDataset
All Implemented Interfaces:
TrajectoryObsDataset, TypedDataset, TypedDatasetFactoryIF

public class COSMICTrajectoryObsDataset
extends TrajectoryObsDatasetImpl
implements TypedDatasetFactoryIF

Created by IntelliJ IDEA. User: yuanho Date: Jul 14, 2009 Time: 3:02:33 PM To change this template use File | Settings | File Templates.


Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.dt.trajectory.TrajectoryObsDatasetImpl
TrajectoryObsDatasetImpl.Config
 
Field Summary
 
Fields inherited from class ucar.nc2.dt.trajectory.TrajectoryObsDatasetImpl
dimVar, dimVarUnitsString, elevVar, elevVarUnitsConversionFactor, latVar, lonVar, recordVar, trajectory, trajectoryDim, trajectoryId, trajectoryNumPoint, trajectoryVarsMap
 
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
 
Constructor Summary
COSMICTrajectoryObsDataset()
           
COSMICTrajectoryObsDataset(NetcdfDataset ncd)
           
 
Method Summary
 Date getEndDate()
           
 FeatureType getScientificDataType()
          What kind of cientific data type will this return?
 Date getStartDate()
           
 boolean isMine(NetcdfDataset ds)
          Determine if this dataset belongs to you
static boolean isValidFile(NetcdfDataset ncd)
           
 TypedDataset open(NetcdfDataset ncd, CancelTask task, StringBuilder errlog)
          Open a NetcdfDataset as a TypedDataset.
protected  void setEndDate()
           
protected  void setStartDate()
           
 
Methods inherited from class ucar.nc2.dt.trajectory.TrajectoryObsDatasetImpl
getDetailInfo, getMetersConversionFactor, getTrajectories, getTrajectory, getTrajectoryIds, setBoundingBox, setTrajectoryInfo, syncExtend
 
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getTitle, removeDataVariable, setDescription, setLocationURI, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.nc2.dt.TypedDataset
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getGlobalAttributes, getLocationURI, getNetcdfFile, getTitle
 

Constructor Detail

COSMICTrajectoryObsDataset

public COSMICTrajectoryObsDataset()

COSMICTrajectoryObsDataset

public COSMICTrajectoryObsDataset(NetcdfDataset ncd)
                           throws IOException
Throws:
IOException
Method Detail

isValidFile

public static boolean isValidFile(NetcdfDataset ncd)

getStartDate

public Date getStartDate()
Specified by:
getStartDate in interface TypedDataset
Overrides:
getStartDate in class TypedDatasetImpl
Returns:
Start date for the entire dataset.

getEndDate

public Date getEndDate()
Specified by:
getEndDate in interface TypedDataset
Overrides:
getEndDate in class TypedDatasetImpl
Returns:
End date for the entire dataset.

setStartDate

protected void setStartDate()
Specified by:
setStartDate in class TypedDatasetImpl

setEndDate

protected void setEndDate()
Specified by:
setEndDate in class TypedDatasetImpl

isMine

public boolean isMine(NetcdfDataset ds)
Description copied from interface: TypedDatasetFactoryIF
Determine if this dataset belongs to you

Specified by:
isMine in interface TypedDatasetFactoryIF
Parameters:
ds - examine this NetcdfDataset to see if it belongs to this class.
Returns:
true if this class knows how to create a TypedDataset out of this NetcdfDataset.

open

public TypedDataset open(NetcdfDataset ncd,
                         CancelTask task,
                         StringBuilder errlog)
                  throws IOException
Description copied from interface: TypedDatasetFactoryIF
Open a NetcdfDataset as a TypedDataset.

Specified by:
open in interface TypedDatasetFactoryIF
Parameters:
ncd - already opened NetcdfDataset.
task - use may cancel
errlog - place errors here
Returns:
a subclass of TypedDataset
Throws:
IOException - on error

getScientificDataType

public FeatureType getScientificDataType()
Description copied from interface: TypedDatasetFactoryIF
What kind of cientific data type will this return?

Specified by:
getScientificDataType in interface TypedDatasetFactoryIF
Returns:
scientific data type


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.