# obspy.core.stream.Stream.simulate

`Stream.``simulate`(paz_remove=None, paz_simulate=None, remove_sensitivity=True, simulate_sensitivity=True, **kwargs)

  Correct for instrument response / Simulate new instrument response.

  Parameters: | paz_remove (dict, None) Dictionary containing keys `'poles'`, `'zeros'`, `'gain'` (A0 normalization factor). Poles and zeros must be a list of complex floating point numbers, gain must be of type float. Poles and Zeros are assumed to correct to m/s, SEED convention. Use `None` for no inverse filtering. Use `'self'` to use paz AttribDict in `trace.stats` for every trace in stream. paz_simulate (dict, None) Dictionary containing keys `'poles'`, `'zeros'`, `'gain'`. Poles and zeros must be a list of complex floating point numbers, gain must be of type float. Or `None` for no simulation. remove_sensitivity (bool) Determines if data is divided by `paz_remove['sensitivity']` to correct for overall sensitivity of recording instrument (seismometer/digitizer) during instrument correction. simulate_sensitivity (bool) Determines if data is multiplied with `paz_simulate['sensitivity']` to simulate overall sensitivity of new instrument (seismometer/digitizer) during instrument simulation.

  This function corrects for the original instrument response given by `paz_remove` and/or simulates a new instrument response given by `paz_simulate`.

  For additional information and more options to control the instrument correction/simulation (e.g. water level, demeaning, tapering, ...) see `simulate_seismometer()`.

  The keywords paz_remove and paz_simulate are expected to be dictionaries containing information on poles, zeros and gain (and usually also sensitivity).

  If both `paz_remove` and `paz_simulate` are specified, both steps are performed in one go in the frequency domain, otherwise only the specified step is performed.

  Note

  Instead of the builtin deconvolution based on Poles and Zeros information, the deconvolution can be performed using evalresp instead by using the option seedresp (see documentation of `simulate_seismometer()` and the ObsPy Tutorial.

  Note

  This operation is performed in place on the actual data arrays. The raw data is not accessible anymore afterwards. To keep your original data, use `copy()` to create a copy of your stream object. This also makes an entry with information on the applied processing in `stats.processing` of every trace.

  Example

      >>> from obspy import read
      >>> from obspy.signal.invsim import corn_freq_2_paz
      >>> st = read()
      >>> paz_sts2 = {'poles': [-0.037004+0.037016j, -0.037004-0.037016j,
      ...                       -251.33+0j,
      ...                       -131.04-467.29j, -131.04+467.29j],
      ...             'zeros': [0j, 0j],
      ...             'gain': 60077000.0,
      ...             'sensitivity': 2516778400.0}
      >>> paz_1hz = corn_freq_2_paz(1.0, damp=0.707)
      >>> st.simulate(paz_remove=paz_sts2, paz_simulate=paz_1hz)
      ...
      <...Stream object at 0x...>
      >>> st.plot()

  (Source code, png, hires.png)

### Thank you!

We would like to thank our contributors, whose efforts make this software what it is. These people have helped by writing code and documentation, and by testing. They have created and maintained this product, its associated libraries and applications, our build tools and our web sites.

#### Contributors

- Ackerley, Nick
- Allgeyer, Sebastien
- Ammon, Charles J.
- Antunes, Emanuel
- Arnarsson, Ólafur St.
- Bank, Markus
- Barsch, Robert
- Behr, Yannik
- Bernardi, Fabrizio
- Bernauer, Felix
- Bes de Berc, Maxime
- Beyreuther, Moritz
- Boltz, Shawn
- Bonaimé, Sébastien
- Carothers, Lloyd
- Chamberlain, Calum
- Chambers, Derrick
- Chen, Zhao
- Clark, Adam
- Danecek, Peter
- Egdorf, Sven
- Engels, Fabian
- Ermert, Laura
- Eulenfeld, Tom

- Fabbri, Tommaso
- Falco, Nicholas
- Fee, Jeremy
- Grellier, Clément
- Grunberg, Marc
- Hammer, Conny
- Heimann, Sebastian
- Heiniger, Lukas
- Hope, Gaute
- Igel, Heiner
- Inza, Adolfo
- Isken, Marius
- Ketchum, David
- Koymans, Mathijs
- Kremers, Simon
- Kress, Victor
- Krieger, Lars
- Krischer, Lion
- Kula, Damian
- Käufl, Paul
- Köhler, Andreas
- Lecocq, Thomas
- Leeman, John
- Legovini, Paride

- Lesage, Philippe
- Li, Yulin
- Lomax, Anthony
- Lopes, Rui L.
- MacCarthy, Jonathan
- Maggi, Alessia
- Martin, Henri
- Medlin, Andrew
- Megies, Tobias
- Meschede, Matthias
- Michelini, Alberto
- Miller, Nathaniel C.
- Morgenstern, Bernhard
- Nof, Ran Novitsky
- Panning, Mark P.
- Parker, Tom
- Pestourie, Romain
- Rapagnani, Giovanni
- Reyes, Celso
- Ringler, Adam
- Rothenhäusler, Nicolas
- Russo, Emiliano
- Sales de Andrade, Elliott

- Satriano, Claudio
- Saul, Joachim
- Scheingraber, Chris
- Schneider, Simon
- Sippl, Christian
- Snoke, Arthur
- Stange, Stefan
- Stähler, Simon C.
- Sullivan, Benjamin
- Tian, Dongdong
- Trabant, Chad
- Trani, Luca
- Uieda, Leonardo
- Walker, Andrew
- Walther, Marcus
- Wassermann, Joachim
- Williams, Mark C.
- Winkelman, Andrew
- Zaccarelli, Riccardo
- Zad, Seyed Kasra Hosseini
- Zhu, Lijun
- van Driel, Martin
- van Wijk, Kasper

#### Funds

ObsPy was partially funded by the

- German Science Foundation (DFG) via grant DFG IG 16/9-1
- German Ministry for Education and Research (BMBF), GEOTECHNOLOGIEN grant 03G0646H.
- NERA project (Network of European Research Infrastructures for Earthquake Risk Assessment and Mitigation) under the European Community's Seventh Framework Programme (FP7/2007-2013) grant agreement n° 262330
- Leibniz Institute for Applied Geophysics (LIAG)
- VERCE EU-FP7 project (no. 283543)