Construct a list of StructField
to be used to construct a DataFrame Schema.
Construct a list of StructField
to be used to construct a DataFrame Schema.
This routine is recursive. By default it includes all columns.
: (Fits) Fits instance.
: (Int) The index of the column used for the recursion. Should be left at 0.
a List[StructField]
with informations about name and type for all columns.
Conversion from fits type to DataFrame Schema type.
Conversion from fits type to DataFrame Schema type. This can be used to set the name of a column and the type of elements in that column. Fits types nomenclature explained here: https://fits.gsfc.nasa.gov/standard30/fits_standard30.pdf
: (String) The name of the future column in the DataFrame
: (String) The type of elements from the fits HEADER. See the link provided.
: (Boolean) Column is nullable if True (default).
a StructField
containing name, type and isNullable informations.
A few checks on the header for any header type
A few checks on the header for any header type
: (Array[String]) The header of the HDU.
Return schema for empty DataFrame
Return schema for empty DataFrame
Return a StructType
with one entry stating nothing.
Retrieve DataFrame Schema from HDU header.
Retrieve DataFrame Schema from HDU header.
: (Fits) Fits instance
Return a StructType
which contain a list of StructField
with informations about name and type for all columns.
Object to handle the conversion from a HDU header to a DataFrame Schema.