edu.wisc.ssec.mcidasv.data
Class NearCastTrajDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by edu.wisc.ssec.mcidasv.data.NearCastTrajDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class NearCastTrajDataSource
extends DataSourceImpl


Field Summary
(package private)  int[] count
           
private static String DATA_DESCRIPTION
           
(package private)  String fileName
           
static String latName
           
(package private)  Range latRange
           
static String lonName
           
(package private)  Range lonRange
           
(package private)  NetCDFFile ncFile
           
(package private)  int numParcels
           
(package private)  int numTimes
           
(package private)  String[] paramList
           
(package private)  Range paramRange
           
(package private)  int parcelDimIdx
           
static String parcelDimName
           
(package private)  String pressName
           
(package private)  CoordinateSystem presToHeightCS
           
(package private)  int[] start
           
(package private)  int[] stride
           
(package private)  int timeDimIdx
           
static String timeDimName
           
(package private)  String timeName
           
(package private)  Set timeSet
           
(package private)  Unit timeUnit
           
 
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
NearCastTrajDataSource()
           
NearCastTrajDataSource(DataSourceDescriptor descriptor, List newSources, Hashtable properties)
           
NearCastTrajDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties)
           
NearCastTrajDataSource(String filename)
           
 
Method Summary
 FlatField[] createVisADData(String paramName)
           
private  DataChoice doMakeDataChoice(int idx)
           
 void doMakeDataChoices()
          Make and insert the DataChoice-s for this DataSource.
protected  Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties)
           
 Range getLatRange()
           
 Range getLonRange()
           
 Range getParamRange()
           
static float[] minmax(float[] values, float min, float max)
           
 FlatField singleTraj(String paramName, int parcelIndex, int timeStart, int timeCount, int timeStride)
           
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canSaveDataToLocalDisk, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, equals, 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, getDataPaths, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getFullDescription, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getLocationsForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesComponents, 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, initAfterCreation, initAfterUnpersistence, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, newFilesFromPolling, notifyDataChange, propertiesChanged, putCache, putCache, reloadData, reloadData, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setNewFiles, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, updateState, 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, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
 

Field Detail

DATA_DESCRIPTION

private static final String DATA_DESCRIPTION
See Also:
Constant Field Values

parcelDimName

public static String parcelDimName

timeDimName

public static String timeDimName

lonName

public static String lonName

latName

public static String latName

ncFile

NetCDFFile ncFile

pressName

String pressName

timeName

String timeName

start

int[] start

count

int[] count

stride

int[] stride

parcelDimIdx

int parcelDimIdx

timeDimIdx

int timeDimIdx

paramList

String[] paramList

fileName

String fileName

presToHeightCS

CoordinateSystem presToHeightCS

timeUnit

Unit timeUnit

timeSet

Set timeSet

numTimes

int numTimes

numParcels

int numParcels

lonRange

Range lonRange

latRange

Range latRange

paramRange

Range paramRange
Constructor Detail

NearCastTrajDataSource

public NearCastTrajDataSource()

NearCastTrajDataSource

public NearCastTrajDataSource(String filename)
                       throws VisADException
Throws:
VisADException

NearCastTrajDataSource

public NearCastTrajDataSource(DataSourceDescriptor descriptor,
                              String fileName,
                              Hashtable properties)
                       throws VisADException
Throws:
VisADException

NearCastTrajDataSource

public NearCastTrajDataSource(DataSourceDescriptor descriptor,
                              List newSources,
                              Hashtable properties)
                       throws VisADException
Throws:
VisADException
Method Detail

createVisADData

public FlatField[] createVisADData(String paramName)

singleTraj

public FlatField singleTraj(String paramName,
                            int parcelIndex,
                            int timeStart,
                            int timeCount,
                            int timeStride)
                     throws Exception
Throws:
Exception

doMakeDataChoices

public void doMakeDataChoices()
Make and insert the DataChoice-s for this DataSource.

Overrides:
doMakeDataChoices in class DataSourceImpl

doMakeDataChoice

private DataChoice doMakeDataChoice(int idx)
                             throws Exception
Throws:
Exception

getDataInner

protected Data getDataInner(DataChoice dataChoice,
                            DataCategory category,
                            DataSelection dataSelection,
                            Hashtable requestProperties)
                     throws VisADException,
                            RemoteException
Overrides:
getDataInner in class DataSourceImpl
Throws:
VisADException
RemoteException

minmax

public static float[] minmax(float[] values,
                             float min,
                             float max)

getLonRange

public Range getLonRange()

getLatRange

public Range getLatRange()

getParamRange

public Range getParamRange()