Load an XDS_ASCII file's header.
readXDS_ASCIIHeader.Rd
This function reads information from the header of an
XDS_ASCII.HKL data file and organises it into a named list
with a variable number of components, according to the type
of XDS_ASCII.HKL file (see details in
readXDS_ASCII
).
Value
A named list. Each name correspond to a valid field in
the xds header. If filename
is not a valid XDS
ascii file, the function returns `NULL` and prints out
a warning message.
Examples
# Load one of the XDS ASCII files included with
# this distribution of cry
datadir <- system.file("extdata",package="cry")
filename <- file.path(datadir,"xds00_ascii.hkl")
ltmp <- readXDS_ASCIIHeader(filename)
print(names(ltmp))
#> [1] "processing_info" "header" "reflections"