Package cds.healpix
Interface HealpixNestedFixedRadiusConeComputer
-
public interface HealpixNestedFixedRadiusConeComputerThe 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 Classes Modifier and Type Interface Description static classHealpixNestedFixedRadiusConeComputer.ReturnedCells
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetRadius()Returns the radius of the cones, in radians.HealpixNestedFixedRadiusConeComputernewComputer()To obtain new instances in case we want to use multi-threading, since an object is possibly not thread-safe.HealpixNestedBMOCoverlappingCells(double coneCenterLonRad, double coneCenterLatRad)MOC of the cells having a part of their surface area in common with the given coneHealpixNestedBMOCoverlappingCells(double coneCenterLonRad, double coneCenterLatRad, HealpixNestedFixedRadiusConeComputer.ReturnedCells returnedCells)Conveniency method to have a simgle entry point for the various possible cells-in-cone outputs.HealpixNestedBMOCoverlappingCenters(double coneCenterLonRad, double coneCenterLatRad)MOC of the cells which centers lie inside the given cone.
-
-
-
Method Detail
-
getRadius
double getRadius()
Returns the radius of the cones, in radians.- Returns:
- he radius of the cones, in radians.
-
overlappingCells
HealpixNestedBMOC overlappingCells(double coneCenterLonRad, double coneCenterLatRad)
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
HealpixNestedBMOC overlappingCenters(double coneCenterLonRad, double coneCenterLatRad)
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.
-
-