I’ve found the solution myself cloning from GIT.
Thanks anyway!
M.
Dear all,
I’m having troubles reading a GCF, here is the full traceback:
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-3-9abf49f1a1b3> in <module>() ----> 1 st = read("20151025T1400Z-EAT-14987-7408.gcf") <decorator-gen-164> in read(pathname_or_url, format, headonly, starttime, endtime, nearest_sample, dtype, apply_calib, **kwargs) /usr/local/lib/python2.7/site-packages/obspy/core/util/decorator.pyc in _map_example_filename(func, *args, **kwargs) 292 except IOError: 293 pass --> 294 return func(*args, **kwargs) 295 return _map_example_filename 296 /usr/local/lib/python2.7/site-packages/obspy/core/stream.pyc in read(pathname_or_url, format, headonly, starttime, endtime, nearest_sample, dtype, apply_calib, **kwargs) 228 pathname = pathname_or_url 229 for file in sorted(glob(pathname)): --> 230 st.extend(_read(file, format, headonly, **kwargs).traces) 231 if len(st) == 0: 232 # try to give more specific information why the stream is empty <decorator-gen-165> in _read(filename, format, headonly, **kwargs) /usr/local/lib/python2.7/site-packages/obspy/core/util/decorator.pyc in uncompress_file(func, filename, *args, **kwargs) 202 else: 203 # no compressions --> 204 result = func(filename, *args, **kwargs) 205 return result 206 /usr/local/lib/python2.7/site-packages/obspy/core/stream.pyc in _read(filename, format, headonly, **kwargs) 270 """ 271 stream, format = _read_from_plugin('waveform', filename, format=format, --> 272 headonly=headonly, **kwargs) 273 # set _format identifier for each element 274 for trace in stream: /usr/local/lib/python2.7/site-packages/obspy/core/util/base.pyc in _read_from_plugin(plugin_type, filename, format, **kwargs) 442 break 443 else: --> 444 raise TypeError('Unknown format for file %s' % filename) 445 else: 446 # format given via argument TypeError: Unknown format for file 20151025T1400Z-EAT-14987-7408.gcf
The file is attached (after gzip) for reference.
By using obspy.core I got as far as a message warning ASCII string headers can’t be read yet… is that the reason?
Thanks for the help!
M.A.<20151025T1400Z-EAT-14987-7408.gcf.gz>
this message and any attachments are intended for the use of the addressee or addressees only.
The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its
content is not permitted.
If you received this message in error, please notify the sender and delete it from your system.
Emails can be altered and their integrity cannot be guaranteed by the sender.
Please consider the environment before printing this email.