Class CDOGTextPointDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class CDOGTextPointDataSource extends TextPointDataSource
DataSource to handle the Comprehensive Deepwater Oil and Gass (CDOG) Blowout Model space delimited text output
Author:
Don Murray (don.murray@noaa.gov)
  • Constructor Details

    • CDOGTextPointDataSource

      public CDOGTextPointDataSource() throws VisADException
      Create a new data source
      Throws:
      VisADException - for bad
    • CDOGTextPointDataSource

      public CDOGTextPointDataSource(String source) throws VisADException
      Create a new data source
      Parameters:
      source - the source file
      Throws:
      VisADException - for bad
    • CDOGTextPointDataSource

      public CDOGTextPointDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) throws VisADException
      Create a new data source
      Parameters:
      descriptor - descriptor
      sources - list of sources
      properties - properties
      Throws:
      VisADException - problem creating the data
    • CDOGTextPointDataSource

      public CDOGTextPointDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException
      Create a new data source
      Parameters:
      descriptor - descriptor
      source - the source file
      properties - the properties
      Throws:
      VisADException - problem creating the data
    • CDOGTextPointDataSource

      public CDOGTextPointDataSource(DataSourceDescriptor descriptor, String source, String name, Hashtable properties) throws VisADException
      Create a new data source
      Parameters:
      descriptor - descriptor
      source - the source file
      name - name of the data
      properties - the properties
      Throws:
      VisADException - problem creating the data
  • Method Details

    • makeObs

      public FieldImpl makeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox, String trackParam, boolean sampleIt, boolean showAttributeGuiIfNeeded) throws Exception
      make the observations from the given datachoice
      Overrides:
      makeObs in class TextPointDataSource
      Parameters:
      dataChoice - the data choice
      subset - data selection to subset with
      bbox - bounding box to subset
      trackParam - the parameter to use for thetrack
      sampleIt - do we just sample or do we read the full set of obs
      showAttributeGuiIfNeeded - popup the gui if we have a problem
      Returns:
      the field
      Throws:
      Exception - On badness
    • makeObs

      public FieldImpl makeObs(String contents, String delimiter, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox, String trackParam, boolean sampleIt, boolean showAttributeGuiIfNeeded) throws Exception
      Make obs from the text
      Overrides:
      makeObs in class TextPointDataSource
      Parameters:
      contents - the contents
      delimiter - the delimiter
      subset - subset info
      bbox - the bounding box
      trackParam - the track parameter name
      sampleIt - true if just need a sample
      showAttributeGuiIfNeeded - true if we need to show the attribute gui
      Returns:
      the Field of obs
      Throws:
      Exception - some problem occurred making the obs