public class HtmSkyPixellator extends java.lang.Object implements SkyPixellator
Note that the HealpixSkyPixellator
implementation normally gives
much faster matching than this and should generally be used in
preference.
Constructor and Description |
---|
HtmSkyPixellator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
calculateDefaultLevel(double scale)
Determines a default value to use for the level paramer
based on a given scale.
|
int |
getLevel()
Returns the HTM level, which determines sky pixel size.
|
java.lang.Object[] |
getPixels(double alpha,
double delta,
double radius)
Returns an array of objects representing pixels in a given region.
|
double |
getScale()
Returns the most recently set angular scale.
|
DescribedValue |
getTuningParameter()
Returns a parameter whose value may be adjusted to alter the
pixellisation scale.
|
void |
setLevel(int level)
Sets the HTM level value, which determines sky pixel size.
|
void |
setScale(double scale)
Sets the characteristic angular scale for this pixellator.
|
public void setScale(double scale)
SkyPixellator
setScale
in interface SkyPixellator
scale
- pixel length scale in radianspublic double getScale()
SkyPixellator
getScale
in interface SkyPixellator
public DescribedValue getTuningParameter()
SkyPixellator
getTuningParameter
in interface SkyPixellator
public java.lang.Object[] getPixels(double alpha, double delta, double radius)
SkyPixellator
equals
and hashCode
methods
appropriately, so that objects returned from one call can be
compared for identity with objects returned from a subsequent call.
This comparability is only guaranteed to work if the pixel scale
is not changed in between calls.getPixels
in interface SkyPixellator
alpha
- right ascension of circle centre in radiansdelta
- declination of circle centre in radiansradius
- radius of circle in radianspublic void setLevel(int level)
level
- new level valuepublic int getLevel()
public int calculateDefaultLevel(double scale)
scale
- sky distance scale angle, in radiansCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.