Package ucar.unidata.data.sounding
Class CosmicTrajectoryObsDataset
java.lang.Object
ucar.nc2.dt.TypedDatasetImpl
ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
ucar.unidata.data.sounding.CosmicTrajectoryObsDataset
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ucar.nc2.dt.TrajectoryObsDataset
,ucar.nc2.dt.TypedDataset
,ucar.nc2.dt.TypedDatasetFactoryIF
public class CosmicTrajectoryObsDataset
extends ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
implements ucar.nc2.dt.TypedDatasetFactoryIF
Implements TrajectoryDataset for datasets with these characteristics:
- it has only one dimension, the dimension is UNLIMITED and is named "MSL_alt"
- it has one coordinate variable, MSL_alt(MSL_alt)
- Time is synthesized from the start and end times in the global attributes
- has the variables Lat(MSL_alt), Lon(MSL_alt), and MSL_alt(MSL_alt) with units "deg", "deg", and "km", respectively.
- Since:
- Feb 22, 2005T5:37:14 PM
- Author:
- dmurray
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset.Config
-
Field Summary
Fields inherited from class ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
elevVar, elevVarUnitsConversionFactor, latVar, lonVar, recordVar, timeDim, timeVar, timeVarUnitsString, trajectory, trajectoryId, trajectoryNumPoint, trajectoryVarsMap
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, netcdfDataset, parseInfo, startDate, title
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CosmicTrajectoryObsDataset
(ucar.nc2.dataset.NetcdfDataset ncd) Create a new TrajectoryObsDataset from the generic one -
Method Summary
Modifier and TypeMethodDescriptionucar.nc2.constants.FeatureType
Get the CDM scientific data typeboolean
isMine
(ucar.nc2.dataset.NetcdfDataset ds) Is this my type of file?static boolean
isValidFile
(ucar.nc2.dataset.NetcdfDataset ncd) Is this the right format for this adapterucar.nc2.dt.TypedDataset
open
(ucar.nc2.dataset.NetcdfDataset ncd, ucar.nc2.util.CancelTask task, StringBuilder errlog) Open the NetcdfDataset as a TrajectoryObsDatasetMethods inherited from class ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
getDetailInfo, getMetersConversionFactor, getTrajectories, getTrajectory, getTrajectoryIds, setBoundingBox, setEndDate, setStartDate, setTrajectoryInfo, syncExtend
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, 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, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
-
Constructor Details
-
CosmicTrajectoryObsDataset
public CosmicTrajectoryObsDataset()Default constructor. -
CosmicTrajectoryObsDataset
Create a new TrajectoryObsDataset from the generic one- Parameters:
ncd
- dataset to decorate- Throws:
IOException
- problem reading data
-
-
Method Details
-
isValidFile
public static boolean isValidFile(ucar.nc2.dataset.NetcdfDataset ncd) Is this the right format for this adapter- Parameters:
ncd
- NetcdfDataset to check- Returns:
- true if the right format
-
isMine
public boolean isMine(ucar.nc2.dataset.NetcdfDataset ds) Is this my type of file?- Specified by:
isMine
in interfaceucar.nc2.dt.TypedDatasetFactoryIF
- Parameters:
ds
- dataset to check- Returns:
- true if format is correct
-
open
public ucar.nc2.dt.TypedDataset open(ucar.nc2.dataset.NetcdfDataset ncd, ucar.nc2.util.CancelTask task, StringBuilder errlog) throws IOException Open the NetcdfDataset as a TrajectoryObsDataset- Specified by:
open
in interfaceucar.nc2.dt.TypedDatasetFactoryIF
- Parameters:
ncd
- datasettask
- cancel taskerrlog
- where to put errors- Returns:
- TypedDataset or null
- Throws:
IOException
- problem opening the file
-
getScientificDataType
public ucar.nc2.constants.FeatureType getScientificDataType()Get the CDM scientific data type- Specified by:
getScientificDataType
in interfaceucar.nc2.dt.TypedDatasetFactoryIF
- Returns:
- the datatype
-