Package gaiasky.data.group
Class SDSSDataProvider
java.lang.Object
gaiasky.data.group.SDSSDataProvider
- All Implemented Interfaces:
IParticleGroupDataProvider
Loads SDSS data from a text file with a series of [ra, dec, z]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadData(InputStream is, double factor)Loads the data applying a factor.Loads the data as it is.Loads the data applying a factor.loadDataMapped(String file, double factor)Loads the data applying a factor using a memory mapped file for improved speed.voidsetFileNumberCap(int cap)Sets a cap on the number of files to load.voidsetStarNumberCap(int cap)Sets the maximum number of stars to be processed per file.
-
Constructor Details
-
SDSSDataProvider
public SDSSDataProvider()
-
-
Method Details
-
loadData
Description copied from interface:IParticleGroupDataProviderLoads the data as it is.- Specified by:
loadDatain interfaceIParticleGroupDataProvider- Parameters:
file- The file to load- Returns:
- Array of particle beans
-
loadData
Description copied from interface:IParticleGroupDataProviderLoads the data applying a factor.- Specified by:
loadDatain interfaceIParticleGroupDataProvider- Parameters:
file- The file to loadfactor- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadData
Description copied from interface:IParticleGroupDataProviderLoads the data applying a factor.- Specified by:
loadDatain interfaceIParticleGroupDataProvider- Parameters:
is- Input stream to load the data fromfactor- Factor to apply to the positions- Returns:
- Array of particle beans
-
setFileNumberCap
public void setFileNumberCap(int cap)Description copied from interface:IParticleGroupDataProviderSets a cap on the number of files to load. Set to negative for unlimited- Specified by:
setFileNumberCapin interfaceIParticleGroupDataProvider- Parameters:
cap- The file cap number
-
setStarNumberCap
public void setStarNumberCap(int cap)Description copied from interface:IParticleGroupDataProviderSets the maximum number of stars to be processed per file. Set to negative for unlimited- Specified by:
setStarNumberCapin interfaceIParticleGroupDataProvider- Parameters:
cap- The star cap number
-
loadDataMapped
Description copied from interface:IParticleGroupDataProviderLoads the data applying a factor using a memory mapped file for improved speed.- Specified by:
loadDataMappedin interfaceIParticleGroupDataProvider- Parameters:
file- The file to loadfactor- Factor to apply to the positions- Returns:
- Array of particle beans
-