Package ucar.unidata.data.point
Class DiamondPointDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.point.PointDataSource
ucar.unidata.data.point.TextPointDataSource
ucar.unidata.data.point.DiamondPointDataSource
- All Implemented Interfaces:
Sharable
,DataSource
,DataSourceFactory
,XmlPersistable
Created by IntelliJ IDEA.
User: yuanho
Date: Sep 3, 2009
Time: 1:36:15 PM
To change this template use File | Settings | File Templates.
-
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
FieldsModifier and TypeFieldDescriptionstatic String
_more_static int
_more_static String
_more_static int
_more_Fields inherited from class ucar.unidata.data.point.TextPointDataSource
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
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, PROP_STATIONMODELSCALE, 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_TIMESTRIDE, PROP_TITLE
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a DiamondPointDataSourceDiamondPointDataSource
(DataSourceDescriptor descriptor, String source, Hashtable properties) Create a new Diamond PointDataSourceDiamondPointDataSource
(DataSourceDescriptor descriptor, List sources, Hashtable properties) Create a new Diamond PointDataSource -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getContents
(String sourceFile, boolean sampleIt) Read the given source file and return the text contents of it.protected String
readDiamond1File
(List<String> lines) read CMA diamond1 format point dataprotected String
readDiamond2File
(List<String> lines) read CMA dismond2 format point dataMethods inherited from class ucar.unidata.data.point.TextPointDataSource
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
Methods inherited from class ucar.unidata.data.point.PointDataSource
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
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, getDefaultSave, 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, 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
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
-
Field Details
-
diamond1
_more_ -
diamond1Size
public static int diamond1Size_more_ -
diamond2
_more_ -
diamond2Size
public static int diamond2Size_more_
-
-
Constructor Details
-
DiamondPointDataSource
public DiamondPointDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) throws VisADException Create a new Diamond PointDataSource- Parameters:
descriptor
- data source descriptorsources
- List of sources of data (filename/URL)properties
- extra properties for initialization- Throws:
VisADException
- problem creating the dataVisADException
- _more_
-
DiamondPointDataSource
Construct a DiamondPointDataSource- Throws:
VisADException
- _more_
-
DiamondPointDataSource
public DiamondPointDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException Create a new Diamond PointDataSource- Parameters:
descriptor
- data source descriptorsource
- source of data (filename/URL)properties
- extra properties for initialization- Throws:
VisADException
- problem creating the data
-
-
Method Details
-
getContents
Read the given source file and return the text contents of it. If the source file is a xls file then convert to csv text- Overrides:
getContents
in classTextPointDataSource
- Parameters:
sourceFile
- The source file (or url)sampleIt
- _more_- Returns:
- The contents
- Throws:
Exception
- On badness
-
readDiamond1File
read CMA diamond1 format point data- Parameters:
lines
- _more_- Returns:
- _more_
- Throws:
Exception
- _more_
-
readDiamond2File
read CMA dismond2 format point data- Parameters:
lines
- _more_- Returns:
- _more_
- Throws:
Exception
- _more_
-