Class ElementsGroupVOTableProvider

java.lang.Object
gaiasky.data.group.ElementsGroupVOTableProvider
All Implemented Interfaces:
IParticleGroupDataProvider

@Deprecated public class ElementsGroupVOTableProvider extends Object implements IParticleGroupDataProvider
Deprecated.
Use STILDataProvider instead.
Loader for Keplerian orbital elements from a VOTable, CSV, or ASCII source. Data is parsed into a List of IParticleRecord objects. *

VOTable Column Mapping:

This provider relies on fixed positional indexing. The source table must provide the following columns in this exact sequence: *
IndexInternal IDTypeUnits / Description
0sourceIdlongUnique Gaia source identifier
1number_mplongMPC Minor Planet number (0 for satellites)
2nameStringObject designation or name
3typeShortshortType code: 3 for "A" (Asteroid), else "C" (Comet)
4nObsintTotal number of observations
5epochdoubleReference epoch in Julian Days (JD)
6semiMajorAxisdoubleSemi-major axis in AU
7eccentricitydoubleOrbital eccentricity
8inclinationdoubleInclination to the ecliptic (degrees)
9ascendingNodedoubleLongitude of ascending node Ω (degrees)
10argOfPericenterdoubleArgument of perihelion ω (degrees)
11meanAnomalydoubleMean anomaly M at epoch (degrees)
12perioddoubleOrbital period in Days
Source table format for this loader.
*

Data Processing:

  • Units: The semi-major axis is converted from AU to Kilometers internally using AU_TO_U * U_TO_KM.
  • Metadata: Columns 3 and 4 must have valid UCD (Unified Content Descriptor) strings as they are used to initialize the metadata ObjectMap.
  • Object Type: A hardcoded mapping is used where a short value of 3 designates an Asteroid ("A"), and all other values default to Comet ("C").
See Also:
  • Constructor Details

    • ElementsGroupVOTableProvider

      public ElementsGroupVOTableProvider()
      Deprecated.
  • Method Details

    • loadData

      public List<IParticleRecord> loadData(String file, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Loads the data as it is.
      Specified by:
      loadData in interface IParticleGroupDataProvider
      Parameters:
      file - The file to load.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • loadDataMapped

      public List<IParticleRecord> loadDataMapped(String file, double factor, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Loads the data applying a factor using a memory mapped file for improved speed.
      Specified by:
      loadDataMapped in interface IParticleGroupDataProvider
      Parameters:
      file - The file to load.
      factor - Factor to apply to the positions.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • loadData

      public List<IParticleRecord> loadData(String file, double factor, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Loads the data applying a factor.
      Specified by:
      loadData in interface IParticleGroupDataProvider
      Parameters:
      file - The file to load.
      factor - Factor to apply to the positions.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • loadData

      public List<IParticleRecord> loadData(InputStream is, double factor, Runnable preCallback, BiConsumer<Long,Long> updateCallback, Runnable postCallback)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Loads the data applying a factor.
      Specified by:
      loadData in interface IParticleGroupDataProvider
      Parameters:
      is - Input stream to load the data from.
      factor - Factor to apply to the positions.
      preCallback - Callback to run before loading starts.
      updateCallback - Callback to run during loading, for every object. Contains the current object number and the total number.
      postCallback - Callback to run after loading is done.
      Returns:
      The array of particle records.
    • setFileNumberCap

      public void setFileNumberCap(int cap)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Sets a cap on the number of files to load. Set to negative for unlimited.
      Specified by:
      setFileNumberCap in interface IParticleGroupDataProvider
      Parameters:
      cap - The file cap number.
    • setStarNumberCap

      public void setStarNumberCap(int cap)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Sets the maximum number of stars to be processed per file. Set to negative for unlimited.
      Specified by:
      setStarNumberCap in interface IParticleGroupDataProvider
      Parameters:
      cap - The star cap number.
    • setProviderParams

      public void setProviderParams(Map<String,Object> params)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Set provider parameters as a map.
      Specified by:
      setProviderParams in interface IParticleGroupDataProvider
      Parameters:
      params - The parameters map.
    • isUniformEpoch

      public boolean isUniformEpoch()
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Do all particles in the group have the same epoch?
      Specified by:
      isUniformEpoch in interface IParticleGroupDataProvider
      Returns:
      Whether all particles in the group have the same epoch;
    • setTransformMatrix

      public void setTransformMatrix(Matrix4D matrix)
      Deprecated.
      Description copied from interface: IParticleGroupDataProvider
      Sets a transform matrix to apply to all data points.
      Specified by:
      setTransformMatrix in interface IParticleGroupDataProvider
      Parameters:
      matrix - The transform matrix.