[obspy-users] Miniseed file accidentally recognised as tar

Roman Racine racine at sed.ethz.ch
Wed Jun 1 15:52:56 CEST 2016


Hi Lion,

oops, I have attached the wrong file. I have attached the miniseed file 
now.

Kind regards

Roman

On 06/01/2016 03:47 PM, Lion Krischer wrote:
> Hi Roman,
>
> can you send us the actual file as well or open an issue on Github?
>
> It is a bit strange as all files that are opened with ObsPy go through
> that decorator and don't get false positives for the tarfile detection.
> So we either have to improve the detection or something else is wrong.
>
> Cheers!
>
> Lion
>
>
>
> On 01/06/16 15:21, Roman Racine wrote:
>> Hi all,
>>
>> I have attached a small miniseed file which cannot be read by obspy.
>> After some debugging, I found out that the problem lies in
>> obspy/core/util/decorator.py
>>
>> It has a function "uncompress_file" which serves as a decorator to _read
>> in stream.py. Obviously, the file is recognised as tar and treated as
>> such despite the fact that it is not. I suppose a simple test whether
>> any data was read successfully from the tar file would prevent this
>> problem.
>>
>> Kind reagards
>>
>> Roman Racine
>>
>>
>>
>> _______________________________________________
>> obspy-users mailing list
>> obspy-users at lists.swapbytes.de
>> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>>
> _______________________________________________
> obspy-users mailing list
> obspy-users at lists.swapbytes.de
> http://lists.swapbytes.de/mailman/listinfo/obspy-users


-- 
Schweizerischer Erdbebendienst (SED)
ETH Zürich

Roman Racine
Software Engineer

NO, FO 69.6
Sonneggstrasse 5
8092 Zürich
Telefon: +41 44 633 24 69
E-Mail: racine at sed.ethz.ch
www.seismo.ethz.ch

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrongcheck.mseed
Type: application/octet-stream
Size: 7168 bytes
Desc: not available
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20160601/7c40946b/attachment.obj>


More information about the obspy-users mailing list