public class SkyBox extends Object
This class just aggregates a two-element double[] array (x1,x2) for each of right ascension and declination. The meaning in each case is as follows:
Values should be in the range 0<=ra<2*PI and -PI/2<dec<+PI (or equivalent in degrees if degrees are being used).
The static getConeBox(double, double, double)
method is provided to generate a SkyBox
suitable for cone search queries.
Modifier and Type | Method and Description |
---|---|
static double |
calculateDeltaRa(double dec,
double sr)
Works out the minimum change in Right Ascension which will encompass
all points within a given search radius at a given central declination.
|
static SkyBox |
getConeBox(double ra,
double dec,
double sr)
Returns a minimal SkyBox which encloses a given cone using radians.
|
double[] |
getDecRange()
Returns declination range.
|
double[] |
getRaRange()
Returns right ascension range.
|
SkyBox |
toDegrees()
Converts the units of this SkyBox from radians to degrees.
|
SkyBox |
toRadians()
Converts the units of this SkyBox from degrees to radians.
|
public double[] getRaRange()
public double[] getDecRange()
public SkyBox toDegrees()
public SkyBox toRadians()
public static SkyBox getConeBox(double ra, double dec, double sr)
ra
- cone centre right ascension in radiansdec
- cone centre declination in radianssr
- cone radius in radianspublic static double calculateDeltaRa(double dec, double sr)
dec
- declination of the centre of the search region
in radianssr
- radius of the search region in radiansCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.