# Obspy to S4 Data Format

**URL:** https://discourse.obspy.org/t/obspy-to-s4-data-format/1249
**Category:** Usage Questions
**Created:** [June 4, 2021, 12:08pm UTC](https://discourse.obspy.org/t/obspy-to-s4-data-format/1249 "2021-06-04T12:08:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jimt](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@jimt](https://discourse.obspy.org/u/jimt)
#### Post date: [June 4, 2021, 12:08pm UTC](https://discourse.obspy.org/t/obspy-to-s4-data-format/1249/1 "2021-06-04T12:08:31Z")

</div>

I need to push waveform data from an obspy read object to a binary file in S4 format. As per my understanding my S4 format requirements are: 32 bit long in big ending format.

I am reading from a reftek130 using:  
data = read(file\_path, format=“REFTEK130”)

I am in need of an example demonstrating how to write to this format. Any help is greatly appreciated.
