Kinemetrics EVT data format support.

Added support for the format + tests + reference PDF.
I am not sure that the length is constant.
And the length is not known before reading the channel's blocks
Each TAG give me the type and the lenght of the next frame

Henri

On 01/10/2014 23:43, Elliott Sales de Andrade wrote:
>
> In obspy/kinemetrics/evt.py:
>
> > +        # Support reading from filenames of file-like objects.
> > +        if hasattr(filename_or_object, "seek") and \
> > +                hasattr(filename_or_object, "tell") and \
> > +                hasattr(filename_or_object, "read"):
> > +            is_fileobject = True
> > +            file_pointer = filename_or_object
> > +        else:
> > +            is_fileobject = False
> > +            file_pointer = open(filename_or_object, "rb")
> > +
> > +        self.ETag.read(file_pointer)
> > +        endian = self.ETag.endian
> > +        self.EHeader.unsetdico()
> > +        self.EHeader.read(file_pointer, self.ETag.length, endian)
> > +
> > +        self.data = np.ndarray([self.EHeader.nchannels, 0])
>
> It looks like the length of each channel's data is constant, right? 
> It's more efficient to allocate this in one big block.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/obspy/obspy/pull/781/files#r18310273>.
>