public class PolarOrbitTrackDataSource extends ucar.unidata.data.DataSourceImpl
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<java.lang.String> |
choices |
private name.gano.astro.propogators.sgp4_cssi.SGP4SatData |
data |
private int |
dTime
time step between data points
|
private double |
julDate0 |
private double |
julDate1 |
private static org.slf4j.Logger |
logger |
private jsattrak.objects.SatelliteTleSGP4 |
prop |
private java.util.Hashtable |
selectionProps |
private jsattrak.utilities.TLE |
tle |
private java.util.ArrayList<java.lang.String> |
tleCards |
(package private) TimeRangeSelection |
trs |
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 |
---|
PolarOrbitTrackDataSource()
Default bean constructor for persistence; does nothing.
|
PolarOrbitTrackDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.lang.String filename,
java.util.Hashtable properties)
Create a new PolarOrbitTrackDataSource
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSaveDataToLocalDisk()
Is this data source capable of saving its data to local disk
|
private void |
checkFirstEntry() |
private int |
checksum(java.lang.String str) |
private int |
decodeCard1(java.lang.String card) |
private int |
decodeCard2(java.lang.String card) |
protected void |
doMakeDataChoices()
Make the data choices associated with this source.
|
java.util.ArrayList<java.lang.String> |
getChoices()
choices needs to persist to support bundles
|
protected visad.Data |
getDataInner(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataCategory category,
ucar.unidata.data.DataSelection dataSelection,
java.util.Hashtable requestProperties)
Actually get the data identified by the given DataChoce.
|
private double |
getDouble(int beg,
int end,
java.lang.String card) |
int |
getDTime() |
private int |
getInt(int beg,
int end,
java.lang.String card) |
double |
getNearestAltToGroundStation(double gsLat,
double gsLon) |
java.util.ArrayList<java.lang.String> |
getTleCards()
tleCards needs to persist to support bundles
|
TimeRangeSelection |
getTrs() |
protected void |
initDataSelectionComponents(java.util.List<ucar.unidata.data.DataSelectionComponent> components,
ucar.unidata.data.DataChoice dataChoice)
Add any data selection components
|
static java.lang.String |
makeNameForRemoteSource(java.lang.String urlStr)
Create a nice looking name for this instance.
|
private void |
notTLE() |
protected java.util.List |
saveDataToLocalDisk(java.lang.String filePrefix,
java.lang.Object loadId,
boolean changeLinks)
Save the data source files to local disk
|
void |
setChoices(java.util.ArrayList<java.lang.String> choices)
choices needs to persist to support bundles
|
void |
setDTime(int val) |
void |
setSelectionProps(java.util.Hashtable newProperties) |
void |
setTleCards(java.util.ArrayList<java.lang.String> tleCards)
tleCards needs to persist to support bundles
|
boolean |
showPropertiesDialog(java.lang.String initTabName,
boolean modal)
Show the dialog
|
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, 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, 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, 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, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, updateState, writeFieldMaskFile, writeFieldMaskFile
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
private static final org.slf4j.Logger logger
private java.util.ArrayList<java.lang.String> tleCards
private java.util.ArrayList<java.lang.String> choices
private name.gano.astro.propogators.sgp4_cssi.SGP4SatData data
private jsattrak.utilities.TLE tle
private java.util.Hashtable selectionProps
private int dTime
private jsattrak.objects.SatelliteTleSGP4 prop
private double julDate0
private double julDate1
public PolarOrbitTrackDataSource()
public PolarOrbitTrackDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.lang.String filename, java.util.Hashtable properties)
descriptor
- descriptor for this sourcefilename
- ADDE URLproperties
- extra properties for this sourcepublic static java.lang.String makeNameForRemoteSource(java.lang.String urlStr)
Given a URL like
http://celestrak.com/NORAD/elements/weather.txt
, this method
will return celestrak: /NORAD/elements/weather.txt
.
If the hostname from urlStr
could not be sufficiently reduced,
this method will simply use the entire hostname. A URL like
http://adde.ssec.wisc.edu/weather.txt
will return
adde.ssec.wisc.edu: weather.txt
.
If there was a problem parsing urlStr
, the method will try
to return the filename. A URL like
http://celestrak.com/NORAD/elements/weather.txt
would return
weather.txt
.
If all of the above fails, urlStr
will be returned.
urlStr
- URL of the TLE information. Cannot be null
.null
if there was
a problem.private void checkFirstEntry()
private int checksum(java.lang.String str)
private int decodeCard1(java.lang.String card)
private int decodeCard2(java.lang.String card)
protected void doMakeDataChoices()
doMakeDataChoices
in class ucar.unidata.data.DataSourceImpl
protected visad.Data getDataInner(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getDataInner
in class ucar.unidata.data.DataSourceImpl
dataChoice
- The data choice that identifies the requested
data.category
- The data category of the request.dataSelection
- Identifies any subsetting of the data.requestProperties
- Hashtable that holds any detailed request
properties.java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprivate double getDouble(int beg, int end, java.lang.String card)
public int getDTime()
private int getInt(int beg, int end, java.lang.String card)
public java.util.ArrayList<java.lang.String> getChoices()
public void setChoices(java.util.ArrayList<java.lang.String> choices)
choices
- the choices to setpublic java.util.ArrayList<java.lang.String> getTleCards()
public void setTleCards(java.util.ArrayList<java.lang.String> tleCards)
tleCards
- the tleCards to setpublic TimeRangeSelection getTrs()
public double getNearestAltToGroundStation(double gsLat, double gsLon)
public boolean canSaveDataToLocalDisk()
ucar.unidata.data.DataSourceImpl
canSaveDataToLocalDisk
in interface ucar.unidata.data.DataSource
canSaveDataToLocalDisk
in class ucar.unidata.data.DataSourceImpl
protected java.util.List saveDataToLocalDisk(java.lang.String filePrefix, java.lang.Object loadId, boolean changeLinks) throws java.lang.Exception
ucar.unidata.data.DataSourceImpl
saveDataToLocalDisk
in class ucar.unidata.data.DataSourceImpl
filePrefix
- This is the directory path to write the files to with the unique file identifier
append to itloadId
- For stopping the load through the JobManagerchangeLinks
- Should this data source also change its internal data referencesjava.lang.Exception
- On badnessprotected void initDataSelectionComponents(java.util.List<ucar.unidata.data.DataSelectionComponent> components, ucar.unidata.data.DataChoice dataChoice)
ucar.unidata.data.DataSourceImpl
initDataSelectionComponents
in class ucar.unidata.data.DataSourceImpl
components
- list of componentsdataChoice
- the data choiceprivate void notTLE()
public void setDTime(int val)
public boolean showPropertiesDialog(java.lang.String initTabName, boolean modal)
showPropertiesDialog
in class ucar.unidata.data.DataSourceImpl
initTabName
- What tab should we show. May be null.modal
- Is dialog modalpublic void setSelectionProps(java.util.Hashtable newProperties)