Object

com.spark3d.spatialOperator

PixelCrossMatch

Related Doc: package spatialOperator

Permalink

object PixelCrossMatch

Object containing routines to perform cross match between two sets A & B based on an underlying pixelisation. The space is first pixelised, and match is done between cells of this pixelisation. As a first example, we include the Healpix pixelisation (2D pixelisation). Each RDD partition is a shell, projected on a 2D plan, and pixelized.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PixelCrossMatch
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def CrossMatchHealpixIndex[A <: Shape3D, B <: Shape3D](rddA: RDD[A], rddB: RDD[B], nside: Int, returnType: String = "B")(implicit arg0: ClassTag[A], arg1: ClassTag[B]): RDD[_]

    Permalink

    Cross match 2 RDD based on the healpix index of geometry center.

    Cross match 2 RDD based on the healpix index of geometry center. The cross-match is done partition-by-partition, which means the two RDD must have been partitioned by the same partitioner. You have to choice to return: (1) Elements of (A, B) matching (returnType="AB") (2) Elements of A matching B (returnType="A") (3) Elements of B matching A (returnType="B") (4) Healpix pixel indices matching (returnType="healpix")

    Which one you should choose? That depends on what you need: (1) gives you all elements but is slow. (2) & (3) give you all elements only in one side but is faster. (4) gives you only healpix center but is even faster.

    rddA

    : (RDD[A<:Shape3D]) RDD whose elements are Shape3D or any extension (Point3D, ...)

    rddB

    : (RDD[B<:Shape3D]) RDD whose elements are Shape3D or any extension (Point3D, ...)

    nside

    : (Int) Resolution of the underlying healpix map used to convert angle coordinates to healpix index.

    returnType

    : (String) Kind of crossmatch to perform:

    • Elements of (A, B) matching (returnType="AB")
    • Elements of A matching B (returnType="A")
    • Elements of B matching A (returnType="B")
    • Healpix pixel indices matching (returnType="healpix")
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. def healpixMatchAndReturnAB[A <: Shape3D, B <: Shape3D](iterA: Iterator[A], iterB: Iterator[B], nside: Int): Iterator[(A, B)]

    Permalink

    Perform a cross match between partition A and partition B based on the healpix index of object centers, and return all elements matching as tuple(A, B).

    Perform a cross match between partition A and partition B based on the healpix index of object centers, and return all elements matching as tuple(A, B).

    iterA

    : (Iterator[A]) Iterator containing elements of A in a partition

    iterB

    : (Iterator[B]) Iterator containing elements of B in the same partition

    nside

    : (Int) Resolution of the healpix grid.

    returns

    (Iterator[(A, B)]) iterator containing A and B elements matching.

  13. def healpixMatchAndReturnB[A <: Shape3D, B <: Shape3D](iterA: Iterator[A], iterB: Iterator[B], nside: Int): Iterator[B]

    Permalink

    Perform a cross match between partition A and partition B based on the healpix index of object centers, and return elements of B which match with A.

    Perform a cross match between partition A and partition B based on the healpix index of object centers, and return elements of B which match with A.

    iterA

    : (Iterator[A]) Iterator containing elements of A in a partition

    iterB

    : (Iterator[B]) Iterator containing elements of B in the same partition

    nside

    : (Int) Resolution of the healpix grid.

    returns

    (Iterator[B]) iterator containing elements of B matching with A.

  14. def healpixMatchAndReturnPixel[A <: Shape3D, B <: Shape3D](iterA: Iterator[A], iterB: Iterator[B], nside: Int): Iterator[Long]

    Permalink

    Perform a cross match between partition A and partition B based on the healpix index of object centers, and return healpix indices found in both partitions.

    Perform a cross match between partition A and partition B based on the healpix index of object centers, and return healpix indices found in both partitions. Duplicates are removed in the sense we do not keep the multiplicity for each pixel.

    iterA

    : (Iterator[A]) Iterator containing elements of A in a partition

    iterB

    : (Iterator[B]) Iterator containing elements of B in the same partition

    nside

    : (Int) Resolution of the healpix grid.

    returns

    (Iterator[Long]) iterator containing healpix indices matching.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped