public abstract class SkyCoverage extends Object implements Coverage
Factory methods are provided for concrete instances of this class.
Modifier and Type | Class and Description |
---|---|
static interface |
SkyCoverage.TupleDecoder
Defines mapping a tuple to sky positional information.
|
Modifier | Constructor and Description |
---|---|
protected |
SkyCoverage()
Constructor using an empty default healpix mask implementation.
|
protected |
SkyCoverage(HealpixMask mask)
Constructor using a custom healpix mask implementation.
|
Modifier and Type | Method and Description |
---|---|
String |
coverageText()
Provides a short, human-readable indication of the coverage.
|
static SkyCoverage |
createFixedErrorCoverage(double errRad,
SkyCoverage.TupleDecoder posDecoder)
Creates a sky coverage suitable for a fixed match radius.
|
static SkyCoverage |
createVariableErrorCoverage(double scaleRad,
SkyCoverage.TupleDecoder coneDecoder)
Creates a sky coverage suitable for a variable match radius.
|
HealpixMask |
getMask()
Returns the HEALPix mask implementation used by this object.
|
void |
intersection(Coverage other)
Narrows this coverage object to contain only the intersection of
its current state and the supplied coverage.
|
boolean |
isEmpty()
Returns true if the coverage represents the empty set.
|
void |
union(Coverage other)
Modifies the state of this coverage object as if all the tuples
fed to the other had been fed to this one as well as its current
contents.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTestFactory, extend
protected SkyCoverage(HealpixMask mask)
mask
- mask implementationprotected SkyCoverage()
public HealpixMask getMask()
public boolean isEmpty()
Coverage
isEmpty
in interface Coverage
Coverage.createTestFactory()
test
is guaranteed to return falsepublic void intersection(Coverage other)
Coverage
intersection
in interface Coverage
other
- different coverage object of a type
assumed compatible with this objectpublic void union(Coverage other)
Coverage
public String coverageText()
Coverage
coverageText
in interface Coverage
public static SkyCoverage createFixedErrorCoverage(double errRad, SkyCoverage.TupleDecoder posDecoder)
errRad
- match error in radiansposDecoder
- thread-safe converter from tuples to sky position;
output is to (longitude, latitude) in radianspublic static SkyCoverage createVariableErrorCoverage(double scaleRad, SkyCoverage.TupleDecoder coneDecoder)
scaleRad
- characteristic scale of errors in radians
(tuning parameter)coneDecoder
- thread-safe converter from tuples to sky region;
output is to (longitude, latitude, radius)
in radiansCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.