AVSfldIO.jl Documentation
Contents
Overview
File I/O routines for AVS .fld
format data files; see (AVSfldIO)
Index
AVSfldIO.AVSfldIO
AVSfldIO.arg_get
AVSfldIO.datatype_fld_to_mat
AVSfldIO.fld_header
AVSfldIO.fld_open
AVSfldIO.fld_read
AVSfldIO.fld_write
AVSfldIO.fld_write_data_fix
AVSfldIO.load
AVSfldIO.save
AVSfldIO.string_to_array
Functions
AVSfldIO.AVSfldIO
— ModuleAVSfldIO
module for AVS .fld file IO
AVSfldIO.arg_get
— Functionarg_get(head, name, toint)
Parse an argument from header, of the name=value
form
AVSfldIO.datatype_fld_to_mat
— Methodformat, endian, bytes = datatype_fld_to_mat(datatype)
Determine data format from .fld
header datatype.
AVSfldIO.fld_header
— Methodhead = fld_header(file::String ; dir::String="", chat=false)
Read header data from AVS format .fld
file, then close file.
in
file::String
file name, usually ending in.fld
option
dir::String
prepend file name with this directory; default ""chat::Bool
verbose? default:false
out
head::String
array of header information
AVSfldIO.fld_open
— Methodhead, is_external_file, fid = fld_open(file ; dir::String="", chat=false)
Read header data from AVS format .fld
file. Leaves file open for more reading.
in
file::String
file name, usually ending in.fld
option
dir::String
prepend file name with this directory; default ""chat::Bool
verbose? default:false
out
head::String
array of header informationis_external_file::Bool
true if AVS external formatfid::IOstream
AVSfldIO.fld_read
— Methoddata = fld_read(file::String ; dir::String="", chat=false)
Read data from AVS format .fld
file
in
file
file name, usually ending in.fld
option
dir::String
prepend file name with this directory; default ""chat::Bool
verbose?
out
data
Array (1D - 5D) in the data type of the file itself
AVSfldIO.fld_write
— Methodfld_write(file, data ; kwargs...)
Write data into AVS format .fld
file. See README for file format.
in
file
name of file typically ending in.fld
data
real data array
option
check::Bool
report error if file exists; defaulttrue
dir::String
directory name to prepend file name; default""
endian::
Symbol:le
little endian (default),
:be` big endianhead::Array{String}
comment information for file headerraw::Bool
put raw data inname.raw
, header inname.fld
wherefile
=name.fld
; defaultfalse
AVSfldIO.fld_write_data_fix
— Methoddata = fld_write_data_fix(data)
Convert data to format suitable for writing to .fld
file.
AVSfldIO.load
— Methoddata = load(ff::File{format"AVSfld"} ; kwargs...)
AVSfld load method
AVSfldIO.save
— Methodsave(ff::File{format"AVSfld"}, data::AbstractArray{<:Real} ; kwargs...)
AVSfld save method
AVSfldIO.string_to_array
— Methodheader = string_to_array(header_lines)
Convert long string with embedded newlines into string array.