public class GNOMETextPointDataSource extends TextPointDataSource
TextPointDataSource.Metadata
PointDataSource.PlotModelSelectionComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_FILE_SUFFIX
Suffix for the file containing the data
|
static java.lang.String |
HEADER
Header for the contents
public static final String HEADER =
"(index) -> (Time, Longitude, Latitude, LE, Type(Text), "
+ "Pollutant(Text), Depth, mass, density, age, status(Text))\n"
+ "Time[colspan=\"2\" fmt=\"HH:mm MM/dd/yyy\"], Longitude[unit=\"degrees_east\"], "
+ "Latitude[unit=\"degrees_north\"], LE, Type(Text), Pollutant(Text), "
+ "Depth[unit=\"m\"], mass, density[unit=\"kg/m3\"], "
+ "age[unit=\"hr\"], status(Text)\n";
|
static java.lang.String |
LOCATION_FILE_SUFFIX
Suffix for the file containing the locations
|
static java.lang.String |
TIME_FILE_SUFFIX
Suffix for the file containing the time
|
static java.lang.String |
VALIDFOR
Date line identifier
|
BLANK_DELIM, COMMA_DELIM, hasLatLon, 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, useDriverTime
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, PROP_STATIONMODELSCALE, STATION_DATA, STATION_PLOT
adapters, oldSourceFromBundles, sources
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
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_TIMESTRIDE, PROP_TITLE
Constructor and Description |
---|
GNOMETextPointDataSource()
Default ctor
|
GNOMETextPointDataSource(DataSourceDescriptor descriptor,
java.util.List sources,
java.util.Hashtable properties)
Create a new GNOME data source
|
GNOMETextPointDataSource(DataSourceDescriptor descriptor,
java.lang.String source,
java.util.Hashtable properties)
Create a new GNOME data source
|
GNOMETextPointDataSource(java.lang.String source)
Create a GNOME data source for the specified file
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getContents(java.lang.String sourceFile,
boolean sampleIt)
Get the contents.
|
java.lang.String |
getDescription()
Get the description for this data source
|
addPropertiesTabs, applyNames, applyProperties, applySavedMetaData, applySavedMetaDataFromUI, applySavedMetaDataFromUIInner, canDoGeoSelection, canDoGeoSelectionStride, canSaveDataToLocalDisk, changeMetadata, deleteMetaData, doMakeDataChoices, equals, findLatLonAltIndices, getContents, getDataInner, getDelimiter, getDelimiter, getGroupVarName, getMap, getMetaDataFields, getParams, getPointCategories, getPropertiesComponents, getSample, getSkipRows, getSource, hashCode, main, main2, makeObs, makeObs, makeObs, popupMetaDataMenu, saveMetaDataMap, setDelimiter, setGroupVarName, setMap, setMetaDataFields, setParams, setSkipRows, setStreamProcessor, writeHeader, writePlugin
canAddCurrentName, canCreateGrid, canDoAllLevels, doRemove, getBinRoundTo, getBinWidth, getDataName, getDefaultLevels, getDescriptionDataChoice, getFullDescription, getGridGain, getGridSearchRadius, getGridUnit, getGridX, getGridY, getMakeGridFields, getNumGridPasses, init, initDataSelectionComponents, initGridParameters, makeDerivedDataChoices, makeFieldDescription, reloadData, setBinRoundTo, setBinWidth, setGridGain, setGridSearchRadius, setGridUnit, setGridX, setGridY, setMakeGridFields, setNumGridPasses, setRoundToFromComboBox, setSource, setWidthFromComboBox, shouldCache
getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSources, sourcesChanged, updateState
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, getDefaultSave, 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, setDefaultSave, 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
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUniqueId
public static final java.lang.String TIME_FILE_SUFFIX
public static final java.lang.String LOCATION_FILE_SUFFIX
public static final java.lang.String DATA_FILE_SUFFIX
public static final java.lang.String VALIDFOR
public static final java.lang.String HEADER
public GNOMETextPointDataSource() throws visad.VisADException
visad.VisADException
- gotta throw something I guesspublic GNOMETextPointDataSource(java.lang.String source) throws visad.VisADException
source
- the source filevisad.VisADException
- problem making the filepublic GNOMETextPointDataSource(DataSourceDescriptor descriptor, java.util.List sources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- the data source descriptorsources
- the list of sourcesproperties
- the propertiesvisad.VisADException
- problem making datapublic GNOMETextPointDataSource(DataSourceDescriptor descriptor, java.lang.String source, java.util.Hashtable properties) throws visad.VisADException
descriptor
- the data source descriptorsource
- the sourceproperties
- the propertiesvisad.VisADException
- problem making datapublic java.lang.String getDescription()
getDescription
in interface DataSource
getDescription
in class DataSourceImpl
protected java.lang.String getContents(java.lang.String sourceFile, boolean sampleIt) throws java.lang.Exception
getContents
in class TextPointDataSource
sourceFile
- the source filesampleIt
- true to samplejava.lang.Exception
- problem reading the files