def from_seishub(catalog, url, lowcut, highcut, samp_rate, filt_order,<EOL>length, prepick, swin, process_len=<NUM_LIT>, data_pad=<NUM_LIT>,<EOL>all_horiz=False, delayed=True, plot=False, debug=<NUM_LIT:0>,<EOL>return_event=False, min_snr=None):
EQcorrscanDeprecationWarning(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>temp_list = template_gen(<EOL>method="<STR_LIT>", catalog=catalog, url=url,<EOL>lowcut=lowcut, highcut=highcut, samp_rate=samp_rate,<EOL>filt_order=filt_order, length=length, prepick=prepick,<EOL>swin=swin, process_len=process_len, data_pad=data_pad,<EOL>all_horiz=all_horiz, delayed=delayed, plot=plot, debug=debug,<EOL>return_event=return_event, min_snr=min_snr)<EOL>return temp_list<EOL>
Generate multiplexed template from SeisHub database.

Function to generate templates from a SeisHub database. Must be given
an obspy.Catalog class and the SeisHub url as input. The function returns
a list of obspy.Stream classes containting steams for each desired
template.

:type catalog: :class:`obspy.core.event.Catalog`
:param catalog: Catalog class containing desired template events
:type url: str
:param url: url of SeisHub database instance
:type lowcut: float
:param lowcut: Low cut (Hz), if set to None will not apply a lowcut.
:type highcut: float
:param highcut: High cut (Hz), if set to None will not apply a highcut.
:type samp_rate: float
:param samp_rate: New sampling rate in Hz.
:type filt_order: int
:param filt_order: Filter level (number of corners).
:type length: float
:param length: Extract length in seconds.
:type prepick: float
:param prepick: Pre-pick time in seconds
:type swin: str
:param swin:
    P, S, P_all, S_all or all, defaults to all: see note in
    :func:`eqcorrscan.core.template_gen.template_gen`
:type process_len: int
:param process_len: Length of data in seconds to download and process.
:param data_pad:
    Length of data (in seconds) required before and after any event for
    processing, use to reduce edge-effects of filtering on the templates.
:type data_pad: int
:type all_horiz: bool
:param all_horiz:
    To use both horizontal channels even if there is only a pick on one
    of them.  Defaults to False.
:type delayed: bool
:param delayed:
    If True, each channel will begin relative to it's own pick-time, if
    set to False, each channel will begin at the same time.
:type plot: bool
:param plot: Plot templates or not.
:type debug: int
:param debug: Level of debugging output, higher=more
:type return_event: bool
:param return_event: Whether to return the event and process length or not.
:type min_snr: float
:param min_snr:
    Minimum signal-to-noise ratio for a channel to be included in the
    template, where signal-to-noise ratio is calculated as the ratio of
    the maximum amplitude in the template window to the rms amplitude in
    the whole window given.

:returns: List of :class:`obspy.core.stream.Stream` of newly cut templates
:rtype: list

.. note::
    process_len should be set to the same length as used when computing
    detections using match_filter.match_filter, e.g. if you read
    in day-long data fro match_filter, process_len should be 86400.

.. warning::
    Not tested in continuous integration (due to lack of seishub client),
    let us know of any failures.