Package cds.healpix
Interface HealpixNestedFixedRadiusConeComputer
public interface HealpixNestedFixedRadiusConeComputer
The idea of this interface is to avoid making multiple time the same operations (like selecting
the optimal starting depth) in case of fixed radius cross-match.
- Author:
- F.-X. Pineau
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the radius of the cones, in radians.To obtain new instances in case we want to use multi-threading, since an object is possibly not thread-safe.overlappingCells
(double coneCenterLonRad, double coneCenterLatRad) MOC of the cells having a part of their surface area in common with the given coneoverlappingCells
(double coneCenterLonRad, double coneCenterLatRad, HealpixNestedFixedRadiusConeComputer.ReturnedCells returnedCells) Conveniency method to have a simgle entry point for the various possible cells-in-cone outputs.overlappingCenters
(double coneCenterLonRad, double coneCenterLatRad) MOC of the cells which centers lie inside the given cone.
-
Method Details
-
getRadius
double getRadius()Returns the radius of the cones, in radians.- Returns:
- he radius of the cones, in radians.
-
overlappingCells
MOC of the cells having a part of their surface area in common with the given cone- Parameters:
coneCenterLonRad
- longitude of the center of the cone, in radiansconeCenterLatRad
- latitude of the center of the cone, in radians- Returns:
- the resulting MOC.
-
overlappingCenters
MOC of the cells which centers lie inside the given cone.- Parameters:
coneCenterLonRad
- longitude of the center of the cone, in radiansconeCenterLatRad
- latitude of the center of the cone, in radians- Returns:
- the resulting MOC.
-
overlappingCells
HealpixNestedBMOC overlappingCells(double coneCenterLonRad, double coneCenterLatRad, HealpixNestedFixedRadiusConeComputer.ReturnedCells returnedCells) Conveniency method to have a simgle entry point for the various possible cells-in-cone outputs. Remark: in the case of FULL_IN, we could have returned a simple MOC.- Parameters:
coneCenterLonRad
- longitude of the center of the cone, in radiansconeCenterLatRad
- latitude of the center of the cone, in radiansreturnedCells
- the type of cells we want in output- Returns:
- the resulting MOC.
-
newComputer
HealpixNestedFixedRadiusConeComputer newComputer()To obtain new instances in case we want to use multi-threading, since an object is possibly not thread-safe. If the objectis thread-safe, the method can simply returnthis
.- Returns:
- a new instance of
HealpixNestedFixedRadiusConeComputer
.
-