TSIO++ Time series input/output

◆ readSSFF() [2/8]

SFile ts::sff::readSSFF ( const std::string &  filename,
const Ttracelist selection,
const bool &  verbose = false,
const std::string &  format = datrw::anyID(datrw::Fsff) 
)

read complete SFF file with trace selection

read complete SFF file with trace selection (single precision version).

Read a complete data file with all headers and samples but only for the selected traces.

Returns
structure that contains file data together with command line arguments (here: only file name)
Parameters
filenameinput file name of file to be read
selectionnumerical list of selected traces
verboseselect verbosity
formatdata format to be read

Definition at line 71 of file cmdlinefiles.cc.

References ts::sff::SFile::arguments, ts::sff::SFile::data, and ts::sff::File< C >::read().

75  {
76  SFile retval;
77  retval.arguments.name=filename;
78  if (verbose)
79  {
80  std::cout << "open input file " << filename << std::endl;
81  }
82  std::ifstream ifs(filename.c_str(),
83  datrw::ianystream::openmode(format));
84  datrw::ianystream is(ifs, format);
85  retval.data.read(is.idatstream(), selection, verbose);
86  return(retval);
87  }
Here is the call graph for this function: