|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.utils.InterpolationTableLoader
public class InterpolationTableLoader
Used to read an interpolation table from a data file.
Constructor Summary | |
---|---|
InterpolationTableLoader()
|
Method Summary | |
---|---|
double[] |
getAbscissaGrid()
Returns a copy of the abscissa grid for the interpolation function. |
double[] |
getOrdinateGrid()
Returns a copy of the ordinate grid for the interpolation function. |
double[][] |
getValuesSamples()
Returns a copy of the values samples for the interpolation function. |
void |
loadData(InputStream input,
String name)
Loads an bi-variate interpolation table from the given InputStream . |
boolean |
stillAcceptsData()
Check if the loader still accepts new data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterpolationTableLoader()
Method Detail |
---|
public double[] getAbscissaGrid()
null
if the file could not be readpublic double[] getOrdinateGrid()
null
if the file could not be readpublic double[][] getValuesSamples()
null
if the file could not be readpublic boolean stillAcceptsData()
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.
stillAcceptsData
in interface DataLoader
public void loadData(InputStream input, String name) throws IOException, ParseException, OrekitException
InputStream
.
The format of the table is as follows (number of rows/columns can be extended):
Table: tableName | 0.0 | 60.0 | 66.0 ------------------------- 0 | 0.0 | 0.003 | 0.006 500 | 0.0 | 0.003 | 0.006
loadData
in interface DataLoader
input
- the input stream to read data fromname
- the name of the input file
IOException
- if data can't be read
ParseException
- if data can't be parsed
OrekitException
- if some data is missing or unexpected
data is encountered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |