|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.join.HealpixSkyPixellator
public class HealpixSkyPixellator
Implements sky pixellisation using the HEALPix scheme. This works better than the HTM-based one for two reasons:
This implementation is based on the PixTools Java HEALPix classes written by Nickolai Kouropatkine at Fermilab.
Constructor Summary | |
---|---|
HealpixSkyPixellator()
Constructs a pixellator using the default scheme (RING). |
|
HealpixSkyPixellator(boolean nested)
Constructs a pixellator using either the RING or NESTED HEALPix scheme. |
Method Summary | |
---|---|
int |
calculateDefaultK(double scale)
Determines a default value to use for the HEALPix k parameter based on a given scale. |
int |
getHealpixK()
Returns the HEALPix k value, which determines sky pixel size, equivalent to log2(nside). |
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 |
setHealpixK(int healpixK)
Sets the HEALPix k value, which determines sky pixel size, equivalent to log2(nside). |
void |
setScale(double scale)
Sets the characteristic angular scale for this pixellator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HealpixSkyPixellator(boolean nested)
nested
- false for RING scheme, true for NESTEDpublic HealpixSkyPixellator()
Method Detail |
---|
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 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 radians
public void setHealpixK(int healpixK)
healpixK
- new k valuepublic int getHealpixK()
public int calculateDefaultK(double scale)
scale
- distance scale, in radians
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |