Class TLESeries
- java.lang.Object
-
- org.orekit.propagation.analytical.tle.TLESeries
-
- All Implemented Interfaces:
DataLoader
@Deprecated public class TLESeries extends Object implements DataLoader
Deprecated.as of 9.0, this class is deprecated without replacement. The file format used was considered to be too specific and the API not really well designed. Users are encouraged to use their own parser for series of TLEThis class reads and handles series of TLEs for one space object.TLE data is read using the standard Orekit mechanism based on a configured
DataProvidersManager
. This means TLE data may be retrieved from many different storage media (local disk files, remote servers, database ...).This class provides bounded ephemerides by finding the best initial TLE to propagate and then handling the propagation.
- Author:
- Fabien Maussion, Luc Maisonobe
- See Also:
TLE
,DataProvidersManager
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<Integer>
getAvailableSatelliteNumbers()
Deprecated.Get the available satellite numbers.TLE
getClosestTLE(AbsoluteDate date)
Deprecated.Get the closest TLE to the selected date.TLE
getFirst()
Deprecated.Get the first TLE.AbsoluteDate
getFirstDate()
Deprecated.Get the start date of the series.TLE
getLast()
Deprecated.Get the last TLE.AbsoluteDate
getLastDate()
Deprecated.Get the last date of the series.PVCoordinates
getPVCoordinates(AbsoluteDate date)
Deprecated.Get the extrapolated position and velocity from an initial date.void
loadData(InputStream input, String name)
Deprecated.Load data from a stream.void
loadTLEData()
Deprecated.Load TLE data for a specified object.void
loadTLEData(int satelliteNumber)
Deprecated.Load TLE data for a specified object.void
loadTLEData(int launchYear, int launchNumber, String launchPiece)
Deprecated.Load TLE data for a specified object.boolean
stillAcceptsData()
Deprecated.Check if the loader still accepts new data.
-
-
-
Constructor Detail
-
TLESeries
public TLESeries(String supportedNames, boolean ignoreNonTLELines)
Deprecated.Simple constructor with a TLE file.This constructor does not load any data by itself. Data must be loaded later on by calling one of the
loadTLEData()
method, theloadTLEData(filterSatelliteNumber)
method or theloadTLEData(filterLaunchYear, filterLaunchNumber, filterLaunchPiece)
method.- Parameters:
supportedNames
- regular expression for supported files names (if null, a default pattern matching files with a ".tle" extension will be used)ignoreNonTLELines
- if true, extra non-TLE lines are silently ignored, if false an exception will be generated when such lines are encountered- See Also:
loadTLEData()
,loadTLEData(int)
,loadTLEData(int, int, String)
-
-
Method Detail
-
loadTLEData
public void loadTLEData()
Deprecated.Load TLE data for a specified object.The TLE data already loaded in the instance will be discarded and replaced by the newly loaded data.
The filtering values will be automatically set to the first loaded satellite. This feature is useful when the satellite selection is already set up by either the instance configuration (supported file names) or by the
data providers manager
configuration and the local filtering feature provided here can be ignored.- See Also:
loadTLEData(int)
,loadTLEData(int, int, String)
-
getAvailableSatelliteNumbers
public Set<Integer> getAvailableSatelliteNumbers()
Deprecated.Get the available satellite numbers.- Returns:
- available satellite numbers file content is corrupted or no TLE data is available
-
loadTLEData
public void loadTLEData(int satelliteNumber)
Deprecated.Load TLE data for a specified object.The TLE data already loaded in the instance will be discarded and replaced by the newly loaded data.
Calling this method with the satellite number set to a negative value, is equivalent to call
loadTLEData()
.- Parameters:
satelliteNumber
- satellite number- See Also:
loadTLEData()
,loadTLEData(int, int, String)
-
loadTLEData
public void loadTLEData(int launchYear, int launchNumber, String launchPiece)
Deprecated.Load TLE data for a specified object.The TLE data already loaded in the instance will be discarded and replaced by the newly loaded data.
Calling this method with either the launch year or the launch number set to a negative value, or the launch piece set to null or an empty string are all equivalent to call
loadTLEData()
.- Parameters:
launchYear
- launch year (all digits)launchNumber
- launch numberlaunchPiece
- launch piece- See Also:
loadTLEData()
,loadTLEData(int)
-
stillAcceptsData
public boolean stillAcceptsData()
Deprecated.Check if the loader still accepts new data.This method is used to speed up data loading by interrupting crawling the data sets as soon as a loader has found the data it was waiting for. For loaders that can merge data from any number of sources (for example JPL ephemerides or Earth Orientation Parameters that are split among several files), this method should always return true to make sure no data is left over.
- Specified by:
stillAcceptsData
in interfaceDataLoader
- Returns:
- true while the loader still accepts new data
-
loadData
public void loadData(InputStream input, String name) throws IOException, OrekitException
Deprecated.Load data from a stream.- Specified by:
loadData
in interfaceDataLoader
- Parameters:
input
- data input streamname
- name of the file (or zip entry)- Throws:
IOException
- if data can't be readOrekitException
-
getPVCoordinates
public PVCoordinates getPVCoordinates(AbsoluteDate date)
Deprecated.Get the extrapolated position and velocity from an initial date. For a good precision, this date should not be too far from the range : [first date
;last date
].- Parameters:
date
- the final date- Returns:
- the final PVCoordinates
-
getClosestTLE
public TLE getClosestTLE(AbsoluteDate date)
Deprecated.Get the closest TLE to the selected date.- Parameters:
date
- the date- Returns:
- the TLE that will suit the most for propagation.
-
getFirstDate
public AbsoluteDate getFirstDate()
Deprecated.Get the start date of the series.- Returns:
- the first date
-
getLastDate
public AbsoluteDate getLastDate()
Deprecated.Get the last date of the series.- Returns:
- the end date
-
getFirst
public TLE getFirst()
Deprecated.Get the first TLE.- Returns:
- first TLE
-
getLast
public TLE getLast()
Deprecated.Get the last TLE.- Returns:
- last TLE
-
-