Get the type of the elements of a column with index colIndex
of a HDU.
Get the type of the elements of a column with index colIndex
of a HDU.
: (Map[String, String]) The header of the HDU.
: (Int) Index (zero-based) of a column.
(String), the type (FITS convention) of the elements of the column.
Return the types of elements for each column as a list.
Return the types of elements for each column as a list.
: (Map[String, String]) keyValues from the header of the HDU (see parseHeader).
(List[String]), list with the types of elements for each column as given by the header.
Get the position (zero based) of a column with name colName
of a HDU.
Get the position (zero based) of a column with name colName
of a HDU.
: (String) The name of the column
(Int), position (zero-based) of the column.
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.
: (Array[Byte]) Array of byte describing one element of the table.
: (String) The type of this table element according to the header.
the table element converted from binary.
Get the number of column of a HDU.
Get the number of column of a HDU. We rely on what's written in the header, meaning here we do not access the data directly.
: (Map[String, String]) keyValues from the header of the HDU (see parseHeader).
(Long), the number of rows as written in KEYWORD=TFIELDS.
Get the number of row of a HDU.
Get the number of row of a HDU. We rely on what's written in the header, meaning here we do not access the data directly.
: (Map[String, String]) keyValues from the header of the HDU (see parseHeader).
(Long), the number of rows as written in KEYWORD=NAXIS2.
Convert a bintable row from binary to primitives.
Convert a bintable row from binary to primitives.
: (Array[Byte]) Array of bytes.
(List[Any]) : Decoded row as a list of primitives.
Get the size (bytes) of each row of a HDU.
Get the size (bytes) of each row of a HDU. We rely on what's written in the header, meaning here we do not access the data directly.
: (Map[String, String]) keyValues from the header of the HDU (see parseHeader).
(Int), the size (bytes) of one row as written in KEYWORD=NAXIS1.
Companion routine to rowSplitLocations.
Companion routine to rowSplitLocations. Returns the size of a primitive according to its type from the FITS header.
: (String) Element type according to FITS standards (I, J, K, E, D, L, A, etc)
(Int), the size (bytes) of the element.
Bintables are implemented
Build a list of StructField from header information.
Build a list of StructField from header information. The list of StructField is then used to build the DataFrame schema.
(List[StructField]) List of StructField with column name, column type, and whether the column is nullable.
Description of a row in terms of bytes indices.
Description of a row in terms of bytes indices. rowSplitLocations returns an array containing the position of elements (byte index) in a row. Example if we have a row with [20A, E, E], one will have rowSplitLocations -> [0, 20, 24, 28] that is a string on 20 Bytes, followed by 2 floats on 4 bytes each.
: (Int) Column position used for the recursion. Should be left at 0.
(List[Int]), the position of elements (byte index) in a row.
Main class for Bintable HDU