Class MultiSpectralDataSource

java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
edu.wisc.ssec.mcidasv.data.HydraDataSource
edu.wisc.ssec.mcidasv.data.hydra.MultiSpectralDataSource
All Implemented Interfaces:
ucar.unidata.collab.Sharable, ucar.unidata.data.DataSource, ucar.unidata.data.DataSourceFactory, ucar.unidata.xml.XmlPersistable

A data source for Multi Dimension Data
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
    private List
     
     
    private static int
     
    private static final String
     
    private Map<String,double[]>
     
    private boolean
     
    protected String
    Sources file
    private boolean
     
    private boolean
     
    private static final org.slf4j.Logger
     
     
     
    static final String
     
    private FlatField
     
     
     
     
    private SwathAdapter
     

    Fields inherited from class edu.wisc.ssec.mcidasv.data.HydraDataSource

    oldSourceFromBundles, request, 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

    Constructors
    Constructor
    Description
    Zero-argument constructor for construction via unpersistence.
     
    MultiSpectralDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, String fileName, Hashtable properties)
    Construct a new HYDRA hdf data source.
    MultiSpectralDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, List newSources, Hashtable properties)
    Construct a new HYDRA hdf data source.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addChoice(String name, Data data)
     
    protected Data
    applyProperties(Data data, Hashtable requestProperties, Map<String,double[]> subset)
     
    private ucar.unidata.data.DataChoice
     
    void
    Make and insert the DataChoices for this DataSource.
    boolean
    Check to see if this HDFHydraDataSource is equal to the object in question.
     
    getData(String name, Map<String,double[]> subset)
    public HashMap getSubsetFromLonLatRect(MultiDimensionSubset select, GeoSelection geoSelection) { GeoLocationInfo ginfo = geoSelection.getBoundingBox(); return adapters[0].getSubsetFromLonLatRect(select.getSubset(), ginfo.getMinLat(), ginfo.getMaxLat(), ginfo.getMinLon(), ginfo.getMaxLon()); }
    getData(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection dataSelection, Hashtable requestProperties)
    Get the data applicable to the DataChoice and selection criteria.
    protected Data
    getDataInner(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection dataSelection, Hashtable requestProperties)
    Get the data for the given DataChoice and selection criteria.
    Called by the IDV's persistence manager in an effort to collect all of the files that should be included in a zipped bundle.
    getDataProjection(Map<String,double[]> subset)
     
     
     
     
     
     
    getMultiSpectralData(ucar.unidata.data.DataChoice choice)
     
    getSwathProjection(FlatField image, float[][] corners)
     
    void
    Implement the XmlPersistable interface method that is called after this object has been fully created and initialized after being unpersisted by the XmlEncoder.
    protected void
    initDataSelectionComponents(List<ucar.unidata.data.DataSelectionComponent> components, ucar.unidata.data.DataChoice dataChoice)
    Add any data selection components
    makeGrid(MapProjection mp, double res)
     
    makeGrid(MapProjection mp, float[][] corners, float res)
     
    void
     
    void
     
    static FlatField
    swathToGrid(Linear2DSet grid, FlatField[] swaths, double mode)
    Resolution of grid should match the loweset of swaths.
    static FlatField
    swathToGrid(Linear2DSet grid, FlatField[] swaths, RealTupleType newRangeType, double mode)
    Resolution of grid should match the loweset of swaths.
    static FlatField
    swathToGrid(Linear2DSet grid, FlatField swath, double mode)
    Grid and swath must both have a CoordinateSystem with an Earth Reference.
    static boolean
    validLonLat(float[][] lonlat)
     

    Methods inherited from class ucar.unidata.data.DataSourceImpl

    addActions, addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, 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, initDataChoice, 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