Class STILDataProvider

    • Constructor Detail

      • STILDataProvider

        public STILDataProvider()
    • Method Detail

      • setDatasetOptions

        public void setDatasetOptions​(DatasetOptions dops)
      • loadData

        public java.util.List<ParticleGroup.ParticleBean> loadData​(java.lang.String file,
                                                                   double factor,
                                                                   boolean compat)
        Description copied from interface: IStarGroupDataProvider
        Loads the data applying a factor.
        Parameters:
        file - The file to load
        factor - Factor to apply to the positions
        compat - Use compatibility mode (DR1/DR2)
        Returns:
        Array of particle beans
      • loadData

        public java.util.List<? extends ParticleGroup.ParticleBean> loadData​(uk.ac.starlink.util.DataSource ds,
                                                                             double factor)
      • loadData

        public java.util.List<? extends ParticleGroup.ParticleBean> loadData​(uk.ac.starlink.util.DataSource ds,
                                                                             double factor,
                                                                             java.lang.Runnable preCallback,
                                                                             RunnableLongLong updateCallback,
                                                                             java.lang.Runnable postCallback)
      • loadData

        public java.util.List<? extends ParticleGroup.ParticleBean> loadData​(uk.ac.starlink.util.DataSource ds,
                                                                             double factor,
                                                                             boolean compat)
      • loadData

        public java.util.List<? extends ParticleGroup.ParticleBean> loadData​(uk.ac.starlink.util.DataSource ds,
                                                                             double factor,
                                                                             boolean compat,
                                                                             java.lang.Runnable preCallback,
                                                                             RunnableLongLong updateCallback,
                                                                             java.lang.Runnable postCallback)
        Parameters:
        ds -
        factor -
        compat -
        preCallback - A function that runs before.
        updateCallback - A function that runs after each object has loaded. Gets two longs, the first holds the current number of loaded objects and the second holds the total number of objects to load.
        postCallback - A function that runs after the data has been loaded.
        Returns:
      • loadData

        public java.util.List<ParticleGroup.ParticleBean> loadData​(java.io.InputStream is,
                                                                   double factor,
                                                                   boolean compat)
        Description copied from interface: IStarGroupDataProvider
        Loads the data applying a factor.
        Parameters:
        is - Input stream to load the data from
        factor - Factor to apply to the positions
        compat - Use compatibility mode (DR1/DR2)
        Returns:
        Array of particle beans
      • loadDataMapped

        public java.util.List<ParticleGroup.ParticleBean> loadDataMapped​(java.lang.String file,
                                                                         double factor,
                                                                         boolean compat)
        Description copied from interface: IStarGroupDataProvider
        Loads the data applying a factor using a memory mapped file for improved speed.
        Parameters:
        file - The file to load
        factor - Factor to apply to the positions
        compat - Use compatibility mode (DR1/DR2)
        Returns:
        Array of particle beans
      • setParallaxErrorFactorFaint

        public void setParallaxErrorFactorFaint​(double parallaxErrorFactor)
        Description copied from interface: IStarGroupDataProvider

        The loader will only load stars for which the parallax error is at most the percentage given here, in [0..1]. This applies to faint stars (gmag >= 13.1) More specifically, the following must be met:

        pllx_err < pllx * pllxErrFactor
        Specified by:
        setParallaxErrorFactorFaint in interface IStarGroupDataProvider
        Overrides:
        setParallaxErrorFactorFaint in class AbstractStarGroupDataProvider
        Parameters:
        parallaxErrorFactor - The percentage value of parallax errors with respect to parallax
      • setParallaxErrorFactorBright

        public void setParallaxErrorFactorBright​(double parallaxErrorFactor)
        Description copied from interface: IStarGroupDataProvider

        The loader will only load stars for which the parallax error is at most the percentage given here, in [0..1]. This applies to bright stars (gmag < 13.1) More specifically, the following must be met:

        pllx_err < pllx * pllxErrFactor
        Specified by:
        setParallaxErrorFactorBright in interface IStarGroupDataProvider
        Overrides:
        setParallaxErrorFactorBright in class AbstractStarGroupDataProvider
        Parameters:
        parallaxErrorFactor - The percentage value of parallax errors with respect to parallax