Class

com.spark3d.spatial3DRDD

SphereRDDFromFITS

Related Doc: package spatial3DRDD

Permalink

class SphereRDDFromFITS extends Shape3DRDD[ShellEnvelope]

Class to make a ShellEnvelope RDD from FITS data.

val fn = "src/test/resources/cartesian_spheres.fits"
val sphereRDD = new ShellEnvelopeRDD(spark, fn, 1, "Z_COSMO,RA,Dec,Radius")
Linear Supertypes
Shape3DRDD[ShellEnvelope], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SphereRDDFromFITS
  2. Shape3DRDD
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SphereRDDFromFITS(spark: SparkSession, filename: String, hdu: Int, colnames: String, isSpherical: Boolean = false)

    Permalink

    spark

    : (SparkSession) The spark session

    filename

    : (String) File name where the data is stored

    hdu

    : (Int) HDU to load.

    colnames

    : (String) Comma-separated names of (x, y, z, r) columns. Example: "Z_COSMO,RA,Dec,Radius".

    isSpherical

    : (Boolean) If true, it assumes that the coordinates of the center of the ShellEnvelope are (r, theta, phi). Otherwise, it assumes cartesian coordinates (x, y, z). Default is false.

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. var boundary: BoxEnvelope

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val csplit: Array[String]

    Permalink
  8. val df: DataFrame

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getDataEnvelope(): BoxEnvelope

    Permalink
    Definition Classes
    Shape3DRDD
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val isSpherical: Boolean

    Permalink

    : (Boolean) If true, it assumes that the coordinates of the center of the ShellEnvelope are (r, theta, phi).

    : (Boolean) If true, it assumes that the coordinates of the center of the ShellEnvelope are (r, theta, phi). Otherwise, it assumes cartesian coordinates (x, y, z). Default is false.

    Definition Classes
    SphereRDDFromFITSShape3DRDD
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def partition(partitioner: SpatialPartitioner)(implicit c: ClassTag[ShellEnvelope]): RDD[ShellEnvelope]

    Permalink

    Repartion a RDD[T] according to a custom partitioner.

    Repartion a RDD[T] according to a custom partitioner.

    partitioner

    : (SpatialPartitioner) Instance of SpatialPartitioner or any extension of it.

    returns

    (RDD[T]) Repartitioned RDD[T].

    Definition Classes
    Shape3DRDD
  21. val rawRDD: RDD[ShellEnvelope]

    Permalink

    RDD containing the initial data formated as T.

    RDD containing the initial data formated as T.

    Definition Classes
    SphereRDDFromFITSShape3DRDD
  22. def spatialPartitioning(gridtype: GridType, numPartitions: Int = 1)(implicit c: ClassTag[ShellEnvelope]): RDD[ShellEnvelope]

    Permalink

    Apply a spatial partitioning to this.rawRDD, and return a RDD[T] with the new partitioning.

    Apply a spatial partitioning to this.rawRDD, and return a RDD[T] with the new partitioning. The list of available partitioning can be found in utils/GridType. By default, the outgoing level of parallelism is the same as the incoming one (i.e. same number of partitions).

    gridtype

    : (GridType) Type of partitioning to apply. See utils/GridType.

    numPartitions

    : (Int) Number of partitions for the partitioned RDD. By default (-1), the number of partitions is that of the raw RDD. You can force it to be different by setting manually this parameter. Be aware of shuffling though...

    returns

    (RDD[T]) RDD whose elements are T (Point3D, Sphere, etc...)

    Definition Classes
    Shape3DRDD
  23. def spatialPartitioning(partitioner: SpatialPartitioner)(implicit c: ClassTag[ShellEnvelope]): RDD[ShellEnvelope]

    Permalink

    Apply any Spatial Partitioner to this.rawRDD[T], and return a RDD[T] with the new partitioning.

    Apply any Spatial Partitioner to this.rawRDD[T], and return a RDD[T] with the new partitioning.

    partitioner

    : (SpatialPartitioner) Spatial partitioner as defined in utils.GridType

    returns

    (RDD[T]) RDD whose elements are T (Point3D, Sphere, etc...)

    Definition Classes
    Shape3DRDD
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from Shape3DRDD[ShellEnvelope]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped