obspy.io.gcf.core._fill_gcf_from_file

_fill_gcf_from_file(file, obj, mode)[source]

Read data from file into the given _GcfFile object obj. This function is the Python implementation of the C function gcf_io.read_gcf to allow reading from both file paths and file-like objects, and should not be called directly: see _read_gcf and _is_gcf for details.

Parameters:
  • file – str, Path or file-like object

  • obj – an empty instance of a _GcfFile` object

  • mode – the read mode. See _read_gcf for details