ucar.unidata.data.point
Class CDOGTextPointDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by ucar.unidata.data.FilesDataSource
              extended by ucar.unidata.data.point.PointDataSource
                  extended by ucar.unidata.data.point.TextPointDataSource
                      extended by ucar.unidata.data.point.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)

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.unidata.data.point.TextPointDataSource
TextPointDataSource.Metadata
 
Nested classes/interfaces inherited from class ucar.unidata.data.point.PointDataSource
PointDataSource.PlotModelSelectionComponent
 
Field Summary
 
Fields inherited from class ucar.unidata.data.point.TextPointDataSource
BLANK_DELIM, COMMA_DELIM, PREF_METADATAMAP, PROP_DATAPROPERTIES, PROP_HEADER_BLOB, PROP_HEADER_EXTRA, PROP_HEADER_MAP, PROP_HEADER_PARAMS, PROP_HEADER_SKIP, PROP_HEADER_SKIPPATTERN, SEMICOLON_DELIM, TAB_DELIM
 
Fields inherited from class ucar.unidata.data.point.PointDataSource
fieldsDescription, POINT_DATA, PROP_FIRSTGUESS, PROP_GRID_GAIN, PROP_GRID_NUMPASSES, PROP_GRID_PARAM, PROP_GRID_SEARCH_RADIUS, PROP_GRID_UNIT, PROP_GRID_X, PROP_GRID_Y, PROP_STATIONMODELNAME, STATION_DATA, STATION_PLOT
 
Fields inherited from class ucar.unidata.data.FilesDataSource
adapters, oldSourceFromBundles, sources
 
Fields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
 
Fields inherited from interface ucar.unidata.data.DataSource
DATAPATH_DATE_FORMAT, DATAPATH_DATE_PATTERN, MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TITLE
 
Constructor Summary
CDOGTextPointDataSource()
          Create a new data source
CDOGTextPointDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties)
          Create a new data source
CDOGTextPointDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties)
          Create a new data source
CDOGTextPointDataSource(DataSourceDescriptor descriptor, String source, String name, Hashtable properties)
          Create a new data source
CDOGTextPointDataSource(String source)
          Create a new data source
 
Method Summary
 FieldImpl makeObs(DataChoice dataChoice, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox, String trackParam, boolean sampleIt, boolean showAttributeGuiIfNeeded)
          make the observations from the given datachoice
 FieldImpl makeObs(String contents, String delimiter, DataSelection subset, ucar.unidata.geoloc.LatLonRect bbox, String trackParam, boolean sampleIt, boolean showAttributeGuiIfNeeded)
          Make obs from the text
 
Methods inherited from class ucar.unidata.data.point.TextPointDataSource
addPropertiesTabs, applyNames, applyProperties, applySavedMetaData, applySavedMetaDataFromUI, applySavedMetaDataFromUIInner, canDoGeoSelection, canDoGeoSelectionStride, canSaveDataToLocalDisk, changeMetadata, deleteMetaData, doMakeDataChoices, equals, findLatLonAltIndices, getContents, getContents, getDataInner, getDelimiter, getDelimiter, getGroupVarName, getMap, getMetaDataFields, getParams, getPropertiesComponents, getSample, getSkipRows, getSource, hashCode, main, main2, makeObs, popupMetaDataMenu, saveMetaDataMap, setDelimiter, setGroupVarName, setMap, setMetaDataFields, setParams, setSkipRows, setStreamProcessor, writeHeader, writePlugin
 
Methods inherited from class ucar.unidata.data.point.PointDataSource
canAddCurrentName, canCreateGrid, doRemove, getBinRoundTo, getBinWidth, getDataName, getDefaultLevels, getDescriptionDataChoice, getFullDescription, getGridGain, getGridSearchRadius, getGridUnit, getGridX, getGridY, getMakeGridFields, getNumGridPasses, getPointCategories, init, initDataSelectionComponents, initGridParameters, makeDerivedDataChoices, makeFieldDescription, reloadData, setBinRoundTo, setBinWidth, setGridGain, setGridSearchRadius, setGridUnit, setGridX, setGridY, setMakeGridFields, setNumGridPasses, setRoundToFromComboBox, setSource, setWidthFromComboBox, shouldCache
 
Methods inherited from class ucar.unidata.data.FilesDataSource
getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSources, sourcesChanged, updateState
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoFieldMask, canDoGeoSelectionMap, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, getSelectedDateTimes, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, hasPollingInfo, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initDataChoice, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeSaveLocalActions, newFileFromPolling, notifyDataChange, putCache, putCache, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFile
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
 

Constructor Detail

CDOGTextPointDataSource

public CDOGTextPointDataSource()
                        throws VisADException
Create a new data source

Throws:
VisADException

CDOGTextPointDataSource

public CDOGTextPointDataSource(String source)
                        throws VisADException
Create a new data source

Parameters:
source - the source file
Throws:
VisADException

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
name - name of the data
source - the source file
properties - the properties
Throws:
VisADException - problem creating the data
Method Detail

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