public class SkyObjectDatabase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
SkyObjectDatabase.Neighbour
Object comprising a Star and its separation (Angle) from a given SkyPoint.
|
Constructor and Description |
---|
SkyObjectDatabase() |
Modifier and Type | Method and Description |
---|---|
java.util.List<SkyObjectDatabase.Neighbour> |
findBrightStarsNear(SkyPoint here,
int n)
Find n stars brighter than magnitude 5 nearest to the given SkyPoint (here).
|
SkyObject |
findSkyObjectByName(java.lang.String name)
Returns null if the name is not matched in the index.
|
java.util.List<SkyObject> |
findSkyObjectsInCone(SkyPoint axis,
double radiusDegs)
Find all known objects within the given radius of the given sky direction.
|
java.util.List<SkyObject> |
findSkyObjectsInRectangle(ChartLimits limits,
float maxMagnitude)
Find all known objects within a rectangular range of RA and Dec.
|
static SkyObjectDatabase |
getInstance() |
RangeDouble |
load()
Load all object data into memory for quicker access, returning the range of magnitudes occurring in the data.
|
public static SkyObjectDatabase getInstance()
public RangeDouble load()
public java.util.List<SkyObject> findSkyObjectsInCone(SkyPoint axis, double radiusDegs)
public java.util.List<SkyObject> findSkyObjectsInRectangle(ChartLimits limits, float maxMagnitude)
public SkyObject findSkyObjectByName(java.lang.String name)
public java.util.List<SkyObjectDatabase.Neighbour> findBrightStarsNear(SkyPoint here, int n)