read_h {crone}R Documentation

Read data from a reflections file

Description

Read data from a *_h.dat-type file containing cell size, spacegroup symbol and amplitudes and/or phases of observed and/or calculated structure factors. This function loads the file data into a standardised named list for structure factors data.

Usage

read_h(filename)

Arguments

filename

A character string. Existing file that includes structure factors information. The file name in general has the form "[prefix]_h.dat".

Value

A named list with the following elements:

Examples

# Observed structure factors amplitudes and calculated phases
# from thiocyanate structure
datadir <- system.file("extdata",package="crone")
filename <- file.path(datadir,"thiocyanate_h.dat")
fdata <- read_x(filename)
print(names(fdata))
print(fdata$Fobs)
print(fdata$sigFobs)


[Package crone version 0.1.1 Index]