ucar.unidata.data.sounding
Class CosmicTrajectoryObsDataset

java.lang.Object
  extended by ucar.nc2.dt.TypedDatasetImpl
      extended by ucar.nc2.dt.trajectory.SingleTrajectoryObsDataset
          extended by ucar.unidata.data.sounding.CosmicTrajectoryObsDataset
All Implemented Interfaces:
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:

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, meterUnit, recordVar, timeDim, timeVar, timeVarUnitsString, trajectory, trajectoryId, trajectoryNumPoint, trajectoryVarsMap
 
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
 
Constructor Summary
CosmicTrajectoryObsDataset()
          Default constructor.
CosmicTrajectoryObsDataset(ucar.nc2.dataset.NetcdfDataset ncd)
          Create a new TrajectoryObsDataset from the generic one
 
Method Summary
 thredds.catalog.DataType getScientificDataType()
          Get the CDM scientific data type
 boolean 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 adapter
 ucar.nc2.dt.TypedDataset open(ucar.nc2.dataset.NetcdfDataset ncd, ucar.nc2.util.CancelTask task, StringBuffer errlog)
          Open the NetcdfDataset as a TrajectoryObsDataset
 
Methods 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, 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 Detail

CosmicTrajectoryObsDataset

public CosmicTrajectoryObsDataset()
Default constructor.


CosmicTrajectoryObsDataset

public CosmicTrajectoryObsDataset(ucar.nc2.dataset.NetcdfDataset ncd)
                           throws IOException
Create a new TrajectoryObsDataset from the generic one

Parameters:
ncd - dataset to decorate
Throws:
IOException - problem reading data
Method Detail

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 interface ucar.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,
                                     StringBuffer errlog)
                              throws IOException
Open the NetcdfDataset as a TrajectoryObsDataset

Specified by:
open in interface ucar.nc2.dt.TypedDatasetFactoryIF
Parameters:
ncd - dataset
task - cancel task
errlog - where to put errors
Returns:
TypedDataset or null
Throws:
IOException - problem opening the file

getScientificDataType

public thredds.catalog.DataType getScientificDataType()
Get the CDM scientific data type

Specified by:
getScientificDataType in interface ucar.nc2.dt.TypedDatasetFactoryIF
Returns:
the datatype