public interface HealpixMask
This interface defines what is required for use by the
SkyCoverage class.
The defined behaviour is somewhat like a MOC,
and can be implemented using a MOC, but standard MOC implementations
may not have suitable performance characteristics;
in particular the addPixel(int, long) method ought to be fast.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HealpixMask.PixelTester
Defines a way to test inclusion of HEALPix pixels in an area.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPixel(int order,
long ipix)
Adds the area corresponding to a HEALPix pixel to this mask.
|
HealpixMask.PixelTester |
createPixelTester()
Returns an object that can test inclusion in the sky area defined
by the current state of this mask.
|
double |
getSkyFraction()
Returns the fraction of the sky currently covered by this mask.
|
void |
intersection(HealpixMask other)
Narrows this area to represent the intersection of this mask
and another compatible mask.
|
boolean |
isEmpty()
Returns true if this mask's area is empty.
|
void |
union(HealpixMask other)
Extends this area to represent the union of this mask
and another compatible mask.
|
boolean isEmpty()
createPixelTester() test
is guaranteed to return falsevoid intersection(HealpixMask other)
other - different mask of a type assumed compatible with this onevoid union(HealpixMask other)
other - different mask of a type assumed compatible with this onedouble getSkyFraction()
void addPixel(int order,
long ipix)
order - HEALPix orderipix - HEALPix pixel index at order orderHealpixMask.PixelTester createPixelTester()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.