AVSfldIO.jl Documentation
Contents
Overview
File I/O routines for AVS .fld format data files; see (AVSfldIO)
Index
AVSfldIO.AVSfldIOAVSfldIO.arg_getAVSfldIO.datatype_fld_to_matAVSfldIO.fld_headerAVSfldIO.fld_openAVSfldIO.fld_readAVSfldIO.fld_writeAVSfldIO.fld_write_data_fixAVSfldIO.loadAVSfldIO.saveAVSfldIO.string_to_array
Functions
AVSfldIO.AVSfldIO — ModuleAVSfldIOmodule 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::Stringfile name, usually ending in.fld
option
dir::Stringprepend file name with this directory; default ""chat::Boolverbose? default:false
out
head::Stringarray 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::Stringfile name, usually ending in.fld
option
dir::Stringprepend file name with this directory; default ""chat::Boolverbose? default:false
out
head::Stringarray of header informationis_external_file::Booltrue 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
filefile name, usually ending in.fld
option
dir::Stringprepend file name with this directory; default ""chat::Boolverbose?
out
dataArray (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
filename of file typically ending in.flddatareal data array
option
check::Boolreport error if file exists; defaulttruedir::Stringdirectory name to prepend file name; default""endian::Symbol:lelittle endian (default),:be` big endianhead::Array{String}comment information for file headerraw::Boolput raw data inname.raw, header inname.fldwherefile=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.