This function writes standardised structure factors data into an ASCII file. The files includes cell size, space group character symbol and Miller indices vector. It can include all of some of observed and/or calculated structure factors amplitudes and phases, either for anomalous or non-anomalous data.
A character string. Prefix of the structure factors file name. The file name has the form "[prefix]_h.dat".
A names list, usually created with functions
This function does not return anything, but will create an ASCII file of name *_h.dat which contains structure factors and other type of information.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# Data from thiocyanate structure datadir <- system.file("extdata",package="crone") filename <- file.path(datadir,"thiocyanate_x.dat") sdata <- read_x(filename) # Miller indices hidx <- 1:10 # Observed structure factors with errors ltmp <- sfobs(hidx,sdata) Fobs <- ltmp$F sigFobs <- ltmp$sF # Phases from calculated structure factors ftmp <- strufac(hidx,sdata) phicalc <- ftmp$Fpha # Create standardised fdata structure fdata <- standardise_fdata(sdata$a,sdata$SG,hidx,Fobs=Fobs, sigFobs=sigFobs,Phicalc=phicalc) # Name of structure factors file (in home directory) homedir <- Sys.getenv("HOME") fname <- file.path(homedir,"test") # Write data to file write_h(fname,fdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.