# station inventory from PAZ files

**URL:** <https://discourse.obspy.org/t/station-inventory-from-paz-files/589>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [January 17, 2017, 11:16am UTC](https://discourse.obspy.org/t/station-inventory-from-paz-files/589 "2017-01-17T11:16:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hadi\_Ghasemi](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/h/82dd89/32.png) [@Hadi\_Ghasemi](https://discourse.obspy.org/u/Hadi_Ghasemi)\
**Post date:** [January 17, 2017, 11:16am UTC](https://discourse.obspy.org/t/station-inventory-from-paz-files/589/1 "2017-01-17T11:16:33Z")

</div>

Hi community,

I was wondering if there is a way to:

1- convert PAZ file to RESP file and  
2- build station inventory file from a series of PAZ files in Obspy.

any help would be appreciated.

Best,  
Hadi

---

<div class="post-metadata">

**Author:** ![yaman\_ozakin](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/y/7ab992/32.png) [@yaman\_ozakin](https://discourse.obspy.org/u/yaman_ozakin)\
**Post date:** [January 17, 2017, 6:18pm UTC](https://discourse.obspy.org/t/station-inventory-from-paz-files/589/2 "2017-01-17T18:18:44Z")

</div>

I wrote some code for parsing SEISAN PZ files. It might be useful for you as it includes creating inventories with poles and zeroes response stages.

[parsePZ.py](https://discourse.obspy.org/uploads/short-url/iodPYoC25toqLMVgy6VtO3bTqBT.py) (17.5 KB)

---

<div class="post-metadata">

**Author:** ![Dirk](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@Dirk](https://discourse.obspy.org/u/Dirk)\
**Post date:** [January 17, 2017, 7:58pm UTC](https://discourse.obspy.org/t/station-inventory-from-paz-files/589/3 "2017-01-17T19:58:07Z")

</div>

Dear Yaman,

you can freely use SMP () for working on inventories. SMP allows you to create inventories from scratch, to import your own or other community member’s inventory and to modify it. For most well-known instruments and data loggers, the responses exist in NRL which you have access to from SMP. So you do not need to worry about putting response stages together. You can export your inventory from SMP to files in SeisComP3 XML which ObsPy can read.

Cheers,  
Dirk

---

<div class="post-metadata">

**Author:** ![Hadi\_Ghasemi](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/h/82dd89/32.png) [@Hadi\_Ghasemi](https://discourse.obspy.org/u/Hadi_Ghasemi)\
**Post date:** [January 18, 2017, 11:53am UTC](https://discourse.obspy.org/t/station-inventory-from-paz-files/589/4 "2017-01-18T11:53:37Z")

</div>

Hi Yaman,

Thanks heaps for sharing the script. I’ll give it a go 🙂

Cheers,  
Hadi
