Class

com.astrolabsoftware.sparkfits.FitsHduImage

ImageHDU

Related Doc: package FitsHduImage

Permalink

case class ImageHDU(header: Array[String]) extends HDU with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, HDU, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ImageHDU
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HDU
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ImageHDU(header: Array[String])

    Permalink

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. val BYTE_SIZE: Int

    Permalink
    Definition Classes
    HDU
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val axis: Array[Long]

    Permalink
  7. val axisBuilder: ArrayBuilder[Long]

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val dimensions: Int

    Permalink
  10. val elementSize: Int

    Permalink
  11. val elementType: List[String]

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

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getColTypes(keyValues: Map[String, String]): List[String]

    Permalink

    Return the type of image elements.

    Return the type of image elements. BITPIX is positive for short/int/long and negative for float/double.

    keyValues

    : (Map[String, String]) Key/Value pairs from the Fits header (see parseHeader)

    returns

    (List[String]), list of one element containing the type.

    Definition Classes
    ImageHDUHDU
  16. def getElementFromBuffer(subbuf: Array[Byte], fitstype: String): Any

    Permalink

    Convert one array of bytes corresponding to one element of the table into its primitive type.

    Convert one array of bytes corresponding to one element of the table into its primitive type.

    subbuf

    : (Array[Byte]) Array of byte describing one element of the table.

    fitstype

    : (String) The type of this table element according to the header.

    returns

    the table element converted from binary.

    Definition Classes
    HDU
  17. def getNCols(keyValues: Map[String, String]): Long

    Permalink

    Number of columns for image is set by default to one.

    Number of columns for image is set by default to one.

    keyValues

    : (Map[String, String]) (Key, Values) from the header (see parseHeader)

    returns

    (Long) : 1L

    Definition Classes
    ImageHDUHDU
  18. def getNRows(keyValues: Map[String, String]): Long

    Permalink

    Get the number of row of a image HDU, that is the product of NAXISn for n>1.

    Get the number of row of a image HDU, that is the product of NAXISn for n>1. We rely on what's written in the header, meaning here we do not access the data directly.

    keyValues

    : (Map[String, String]) Key/Value from the header of the HDU.

    returns

    (Long), the number of rows as PI_{n>1}(NAXISn)

    Definition Classes
    ImageHDUHDU
  19. def getRow(buf: Array[Byte]): List[List[Any]]

    Permalink

    Convert an image row from binary to primitives.

    Convert an image row from binary to primitives.

    buf

    : (Array[Byte]) Array of bytes.

    returns

    (List[List[Any]]) : Decoded row as a list of one list of primitives.

    Definition Classes
    ImageHDUHDU
  20. def getSizeRowBytes(keyValues: Map[String, String]): Int

    Permalink

    Return the size in bytes of one image row.

    Return the size in bytes of one image row. This is given by NAXIS1 in the FITS header.

    keyValues

    : (Map[String, String]) Key/Values from the Fits header (see parseHeader)

    returns

    (Int) the size in bytes of one image row.

    Definition Classes
    ImageHDUHDU
  21. val header: Array[String]

    Permalink
  22. def implemented: Boolean

    Permalink

    Image HDU are implemented

    Image HDU are implemented

    returns

    (Boolean)

    Definition Classes
    ImageHDUHDU
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val keyValues: Map[String, String]

    Permalink
  25. def listOfStruct: List[StructField]

    Permalink

    Build a list of one StructField from header information.

    Build a list of one StructField from header information. The list of StructField is then used to build the DataFrame schema.

    returns

    (List[StructField]) List of StructField with column names [Image, ImgIndex], data type, and whether the data is nullable.

    Definition Classes
    ImageHDUHDU
  26. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HDU

Inherited from AnyRef

Inherited from Any

Ungrouped