Thread: Station info errors with Obspy fdsn client

Started: 2022-09-29 12:43:50
Last activity: 2022-09-30 11:38:04
John West
2022-09-29 12:43:50
Greetings. I have a python system which retrieves station and channel
information using the Obspy client get_stations() call, as
DCclient.get_stations(startbefore=FileStart, endafter=FileEnd,
network=N.code, channel=CHANNELS, level='channel')

Recently I have been getting errors on some networks, and the error code
seems to indicate that the data center is returning strings instead of
datetimes(?)
The following requests fail (values in order of the request parameters
above)
2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z AG HH*,BH*
level='channel'
2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CC HH*,BH*
level='channel'
2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CI HH*,BH*
level='channel'
2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z GS HH*,BH*
level='channel'
2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z NM HH*,BH*
level='channel'
2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z PR HH*,BH*
level='channel'
2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z RB HH*,BH*
level='channel'

A typical error traceback looks like this:
Channels.py FDSNchannels() could not retrieve channels for datacenter IRIS:
CI an integer is required (got type str) Traceback (most recent call last):
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
line 623, in _generic_reader
generic = callback_func(pathname_or_url, **kwargs)
File "<decorator-gen-50>", line 2, in _read
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
line 142, in uncompress_file
return func(filename, *args, **kwargs)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
line 100, in _read
inventory, format = _read_from_plugin('inventory', filename,
format=format,
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
line 422, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 180, in _read_stationxml
networks.append(_read_network(network, _ns, level))
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 242, in _read_network
stations.append(_read_station(station, _ns, level))
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 286, in _read_station
cha = _read_channel(channel, _ns, level=level)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 429, in _read_channel
channel.sensor = _read_equipment(sensor, _ns)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 807, in _read_equipment
[obspy.core.UTCDateTime(_i.text)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 807, in <listcomp>
[obspy.core.UTCDateTime(_i.text)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py",
line 406, in __init__
dt = datetime.datetime(*args, **kwargs)
TypeError: an integer is required (got type str)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "ChannelTrouble.py", line 80, in FDSNchannels
Channels = DCclient.get_stations(startbefore=FileStart,
endafter=FileEnd,
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/clients/fdsn/client.py",
line 753, in get_stations
inventory = read_inventory(data_stream)
File "<decorator-gen-49>", line 2, in read_inventory
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
line 291, in _map_example_filename
return func(*args, **kwargs)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
line 91, in read_inventory
return _generic_reader(path_or_file_object, _read, format=format,
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
line 630, in _generic_reader
generic = callback_func(fh.name, **kwargs)
File "<decorator-gen-50>", line 2, in _read
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
line 100, in _read
inventory, format = _read_from_plugin('inventory', filename,
format=format,
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
line 422, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 180, in _read_stationxml
networks.append(_read_network(network, _ns, level))
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 242, in _read_network
stations.append(_read_station(station, _ns, level))
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 286, in _read_station
cha = _read_channel(channel, _ns, level=level)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 429, in _read_channel
channel.sensor = _read_equipment(sensor, _ns)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 807, in _read_equipment
[obspy.core.UTCDateTime(_i.text)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
line 807, in <listcomp>
[obspy.core.UTCDateTime(_i.text)
File
"/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py",
line 406, in __init__
dt = datetime.datetime(*args, **kwargs)
TypeError: an integer is required (got type str)

Does this represent a metadata problem, or should I look elsewhere?

Thank you!

-- John

  • Robert Casey
    2022-09-30 09:02:10


    Hi John-

    That's a head scratcher. We're going to have to run some test cases on this to see what is going on. Thank you for reporting this.

    -Rob


    On Sep 30, 2022, at 8:49 AM, John West (via IRIS) <data-request-help-bounce<at>lists.ds.iris.edu> wrote:

    Greetings. I have a python system which retrieves station and channel information using the Obspy client get_stations() call, as
    DCclient.get_stations(startbefore=FileStart, endafter=FileEnd, network=N.code, channel=CHANNELS, level='channel')

    Recently I have been getting errors on some networks, and the error code seems to indicate that the data center is returning strings instead of datetimes(?)
    The following requests fail (values in order of the request parameters above)
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z AG HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CC HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CI HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z GS HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z NM HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z PR HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z RB HH*,BH* level='channel'

    A typical error traceback looks like this:
    Channels.py FDSNchannels() could not retrieve channels for datacenter IRIS: CI an integer is required (got type str) Traceback (most recent call last):
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 623, in _generic_reader
    generic = callback_func(pathname_or_url, **kwargs)
    File "<decorator-gen-50>", line 2, in _read
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 142, in uncompress_file
    return func(filename, *args, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 100, in _read
    inventory, format = _read_from_plugin('inventory', filename, format=format,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin
    list_obj = read_format(filename, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 180, in _read_stationxml
    networks.append(_read_network(network, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 242, in _read_network
    stations.append(_read_station(station, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 286, in _read_station
    cha = _read_channel(channel, _ns, level=level)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 429, in _read_channel
    channel.sensor = _read_equipment(sensor, _ns)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in _read_equipment
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in <listcomp>
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 406, in __init__
    dt = datetime.datetime(*args, **kwargs)
    TypeError: an integer is required (got type str)

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "ChannelTrouble.py", line 80, in FDSNchannels
    Channels = DCclient.get_stations(startbefore=FileStart, endafter=FileEnd,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/clients/fdsn/client.py", line 753, in get_stations
    inventory = read_inventory(data_stream)
    File "<decorator-gen-49>", line 2, in read_inventory
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename
    return func(*args, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 91, in read_inventory
    return _generic_reader(path_or_file_object, _read, format=format,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 630, in _generic_reader
    generic = callback_func(fh.name http://fh.name/, **kwargs)
    File "<decorator-gen-50>", line 2, in _read
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file
    result = func(filename, *args, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 100, in _read
    inventory, format = _read_from_plugin('inventory', filename, format=format,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin
    list_obj = read_format(filename, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 180, in _read_stationxml
    networks.append(_read_network(network, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 242, in _read_network
    stations.append(_read_station(station, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 286, in _read_station
    cha = _read_channel(channel, _ns, level=level)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 429, in _read_channel
    channel.sensor = _read_equipment(sensor, _ns)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in _read_equipment
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in <listcomp>
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 406, in __init__
    dt = datetime.datetime(*args, **kwargs)
    TypeError: an integer is required (got type str)

    Does this represent a metadata problem, or should I look elsewhere?

    Thank you!

    -- John

    ----------------------
    Data Request Help
    Topic home: http://ds.iris.edu/message-center/topic/data-request-help/ | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


  • Adam Clark
    2022-09-30 09:56:28
    Hi John,

    I was not able to reproduce this error with:

    ```
    from obspy.clients.fdsn import Client
    client = Client()
    client.get_stations(
    startbefore='2021-07-04T01:29:00.000000Z',
    endafter='2021-07-04T03:29:00.000000Z',
    network='CI',
    channel='HH*,BH*',
    level='channel',
    )
    ```

    What version of ObsPy/Python/etc are you running?

    Cheers,
    Adam

    ----------------------
    Adam Clark
    Web Application Developer
    IRIS Data Management Center
    adam.clark<at>iris.edu


    On Sep 30, 2022, at 8:49 AM, John West (via IRIS) <data-request-help-bounce<at>lists.ds.iris.edu> wrote:

    Greetings. I have a python system which retrieves station and channel information using the Obspy client get_stations() call, as
    DCclient.get_stations(startbefore=FileStart, endafter=FileEnd, network=N.code, channel=CHANNELS, level='channel')

    Recently I have been getting errors on some networks, and the error code seems to indicate that the data center is returning strings instead of datetimes(?)
    The following requests fail (values in order of the request parameters above)
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z AG HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CC HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CI HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z GS HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z NM HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z PR HH*,BH* level='channel'
    2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z RB HH*,BH* level='channel'

    A typical error traceback looks like this:
    Channels.py FDSNchannels() could not retrieve channels for datacenter IRIS: CI an integer is required (got type str) Traceback (most recent call last):
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 623, in _generic_reader
    generic = callback_func(pathname_or_url, **kwargs)
    File "<decorator-gen-50>", line 2, in _read
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 142, in uncompress_file
    return func(filename, *args, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 100, in _read
    inventory, format = _read_from_plugin('inventory', filename, format=format,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin
    list_obj = read_format(filename, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 180, in _read_stationxml
    networks.append(_read_network(network, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 242, in _read_network
    stations.append(_read_station(station, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 286, in _read_station
    cha = _read_channel(channel, _ns, level=level)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 429, in _read_channel
    channel.sensor = _read_equipment(sensor, _ns)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in _read_equipment
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in <listcomp>
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 406, in __init__
    dt = datetime.datetime(*args, **kwargs)
    TypeError: an integer is required (got type str)

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "ChannelTrouble.py", line 80, in FDSNchannels
    Channels = DCclient.get_stations(startbefore=FileStart, endafter=FileEnd,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/clients/fdsn/client.py", line 753, in get_stations
    inventory = read_inventory(data_stream)
    File "<decorator-gen-49>", line 2, in read_inventory
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename
    return func(*args, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 91, in read_inventory
    return _generic_reader(path_or_file_object, _read, format=format,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 630, in _generic_reader
    generic = callback_func(fh.name http://fh.name/, **kwargs)
    File "<decorator-gen-50>", line 2, in _read
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file
    result = func(filename, *args, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 100, in _read
    inventory, format = _read_from_plugin('inventory', filename, format=format,
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin
    list_obj = read_format(filename, **kwargs)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 180, in _read_stationxml
    networks.append(_read_network(network, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 242, in _read_network
    stations.append(_read_station(station, _ns, level))
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 286, in _read_station
    cha = _read_channel(channel, _ns, level=level)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 429, in _read_channel
    channel.sensor = _read_equipment(sensor, _ns)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in _read_equipment
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in <listcomp>
    [obspy.core.UTCDateTime(_i.text)
    File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 406, in __init__
    dt = datetime.datetime(*args, **kwargs)
    TypeError: an integer is required (got type str)

    Does this represent a metadata problem, or should I look elsewhere?

    Thank you!

    -- John

    ----------------------
    Data Request Help
    Topic home: http://ds.iris.edu/message-center/topic/data-request-help/ | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


    • John West
      2022-09-30 11:38:04
      Hi, Adam.

      I'm running Python 3.8.10 on Linux Mint.

      And you are entirely correct, I can't reproduce it either. The program
      loops through all available networks and requests channel data, yesterday
      it worked on most networks but failed on the ones I listed above. Today it
      runs flawlessly. No updates were applied in the meantime. So I don't know
      what to say.

      -- John


      On Fri, Sep 30, 2022 at 10:57 AM Adam Clark (via IRIS) <
      data-request-help-bounce<at>lists.ds.iris.edu> wrote:

      Hi John,

      I was not able to reproduce this error with:

      ```
      from obspy.clients.fdsn import Client
      client = Client()
      client.get_stations(
      startbefore='2021-07-04T01:29:00.000000Z',
      endafter='2021-07-04T03:29:00.000000Z',
      network='CI',
      channel='HH*,BH*',
      level='channel',
      )
      ```

      What version of ObsPy/Python/etc are you running?

      Cheers,
      Adam

      ----------------------
      Adam Clark
      Web Application Developer
      IRIS Data Management Center
      adam.clark<at>iris.edu


      On Sep 30, 2022, at 8:49 AM, John West (via IRIS) <
      data-request-help-bounce<at>lists.ds.iris.edu> wrote:

      Greetings. I have a python system which retrieves station and channel
      information using the Obspy client get_stations() call, as
      DCclient.get_stations(startbefore=FileStart, endafter=FileEnd,
      network=N.code, channel=CHANNELS, level='channel')

      Recently I have been getting errors on some networks, and the error code
      seems to indicate that the data center is returning strings instead of
      datetimes(?)
      The following requests fail (values in order of the request parameters
      above)
      2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z AG HH*,BH*
      level='channel'
      2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CC HH*,BH*
      level='channel'
      2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CI HH*,BH*
      level='channel'
      2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z GS HH*,BH*
      level='channel'
      2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z NM HH*,BH*
      level='channel'
      2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z PR HH*,BH*
      level='channel'
      2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z RB HH*,BH*
      level='channel'

      A typical error traceback looks like this:
      Channels.py FDSNchannels() could not retrieve channels for datacenter
      IRIS: CI an integer is required (got type str) Traceback (most recent call
      last):
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
      line 623, in _generic_reader
      generic = callback_func(pathname_or_url, **kwargs)
      File "<decorator-gen-50>", line 2, in _read
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
      line 142, in uncompress_file
      return func(filename, *args, **kwargs)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
      line 100, in _read
      inventory, format = _read_from_plugin('inventory', filename,
      format=format,
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
      line 422, in _read_from_plugin
      list_obj = read_format(filename, **kwargs)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 180, in _read_stationxml
      networks.append(_read_network(network, _ns, level))
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 242, in _read_network
      stations.append(_read_station(station, _ns, level))
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 286, in _read_station
      cha = _read_channel(channel, _ns, level=level)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 429, in _read_channel
      channel.sensor = _read_equipment(sensor, _ns)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 807, in _read_equipment
      [obspy.core.UTCDateTime(_i.text)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 807, in <listcomp>
      [obspy.core.UTCDateTime(_i.text)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py",
      line 406, in __init__
      dt = datetime.datetime(*args, **kwargs)
      TypeError: an integer is required (got type str)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "ChannelTrouble.py", line 80, in FDSNchannels
      Channels = DCclient.get_stations(startbefore=FileStart,
      endafter=FileEnd,
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/clients/fdsn/client.py",
      line 753, in get_stations
      inventory = read_inventory(data_stream)
      File "<decorator-gen-49>", line 2, in read_inventory
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
      line 291, in _map_example_filename
      return func(*args, **kwargs)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
      line 91, in read_inventory
      return _generic_reader(path_or_file_object, _read, format=format,
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
      line 630, in _generic_reader
      generic = callback_func(fh.name
      https://urldefense.com/v3/__http://fh.name/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGXZMYxSQ$>,
      **kwargs)
      File "<decorator-gen-50>", line 2, in _read
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
      line 202, in uncompress_file
      result = func(filename, *args, **kwargs)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
      line 100, in _read
      inventory, format = _read_from_plugin('inventory', filename,
      format=format,
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
      line 422, in _read_from_plugin
      list_obj = read_format(filename, **kwargs)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 180, in _read_stationxml
      networks.append(_read_network(network, _ns, level))
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 242, in _read_network
      stations.append(_read_station(station, _ns, level))
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 286, in _read_station
      cha = _read_channel(channel, _ns, level=level)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 429, in _read_channel
      channel.sensor = _read_equipment(sensor, _ns)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 807, in _read_equipment
      [obspy.core.UTCDateTime(_i.text)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
      line 807, in <listcomp>
      [obspy.core.UTCDateTime(_i.text)
      File
      "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py",
      line 406, in __init__
      dt = datetime.datetime(*args, **kwargs)
      TypeError: an integer is required (got type str)

      Does this represent a metadata problem, or should I look elsewhere?

      Thank you!

      -- John

      ----------------------
      Data Request Help
      Topic home: http://ds.iris.edu/message-center/topic/data-request-help/
      https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGYjkfTYQ$>
      | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/
      https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGUCD-3LQ$>
      )
      Update subscription preferences at http://ds.iris.edu/account/profile/
      https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJFuxrelyw$>



      ----------------------
      Data Request Help
      Topic home:
      https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGYjkfTYQ$
      | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (
      https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGUCD-3LQ$
      )
      Update subscription preferences at
      https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJFuxrelyw$



      • Robert Casey
        2022-09-30 10:43:49

        Thank you for taking this on Adam, and for providing followup feedback, John. I am not sure if the difference in behavior was due to overall load on our system or if there was some other factor involved, but let us know if this problem happens again. We've been recovering our alternate data center from some maintenance downtime and it caused some fluttering of services this week in the attempt to restore full capacity. I want to make sure we are running stably.

        -Rob



        On Sep 30, 2022, at 10:39 AM, John West (via IRIS) <data-request-help-bounce<at>lists.ds.iris.edu> wrote:

        Hi, Adam.

        I'm running Python 3.8.10 on Linux Mint.

        And you are entirely correct, I can't reproduce it either. The program loops through all available networks and requests channel data, yesterday it worked on most networks but failed on the ones I listed above. Today it runs flawlessly. No updates were applied in the meantime. So I don't know what to say.

        -- John


        On Fri, Sep 30, 2022 at 10:57 AM Adam Clark (via IRIS) <data-request-help-bounce<at>lists.ds.iris.edu <data-request-help-bounce<at>lists.ds.iris.edu>> wrote:
        Hi John,

        I was not able to reproduce this error with:

        ```
        from obspy.clients.fdsn import Client
        client = Client()
        client.get_stations(
        startbefore='2021-07-04T01:29:00.000000Z',
        endafter='2021-07-04T03:29:00.000000Z',
        network='CI',
        channel='HH*,BH*',
        level='channel',
        )
        ```

        What version of ObsPy/Python/etc are you running?

        Cheers,
        Adam

        ----------------------
        Adam Clark
        Web Application Developer
        IRIS Data Management Center
        adam.clark<at>iris.edu <adam.clark<at>iris.edu>


        On Sep 30, 2022, at 8:49 AM, John West (via IRIS) <data-request-help-bounce<at>lists.ds.iris.edu <data-request-help-bounce<at>lists.ds.iris.edu>> wrote:

        Greetings. I have a python system which retrieves station and channel information using the Obspy client get_stations() call, as
        DCclient.get_stations(startbefore=FileStart, endafter=FileEnd, network=N.code, channel=CHANNELS, level='channel')

        Recently I have been getting errors on some networks, and the error code seems to indicate that the data center is returning strings instead of datetimes(?)
        The following requests fail (values in order of the request parameters above)
        2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z AG HH*,BH* level='channel'
        2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CC HH*,BH* level='channel'
        2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CI HH*,BH* level='channel'
        2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z GS HH*,BH* level='channel'
        2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z NM HH*,BH* level='channel'
        2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z PR HH*,BH* level='channel'
        2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z RB HH*,BH* level='channel'

        A typical error traceback looks like this:
        Channels.py FDSNchannels() could not retrieve channels for datacenter IRIS: CI an integer is required (got type str) Traceback (most recent call last):
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 623, in _generic_reader
        generic = callback_func(pathname_or_url, **kwargs)
        File "<decorator-gen-50>", line 2, in _read
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 142, in uncompress_file
        return func(filename, *args, **kwargs)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 100, in _read
        inventory, format = _read_from_plugin('inventory', filename, format=format,
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin
        list_obj = read_format(filename, **kwargs)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 180, in _read_stationxml
        networks.append(_read_network(network, _ns, level))
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 242, in _read_network
        stations.append(_read_station(station, _ns, level))
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 286, in _read_station
        cha = _read_channel(channel, _ns, level=level)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 429, in _read_channel
        channel.sensor = _read_equipment(sensor, _ns)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in _read_equipment
        [obspy.core.UTCDateTime(_i.text)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in <listcomp>
        [obspy.core.UTCDateTime(_i.text)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 406, in __init__
        dt = datetime.datetime(*args, **kwargs)
        TypeError: an integer is required (got type str)

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
        File "ChannelTrouble.py", line 80, in FDSNchannels
        Channels = DCclient.get_stations(startbefore=FileStart, endafter=FileEnd,
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/clients/fdsn/client.py", line 753, in get_stations
        inventory = read_inventory(data_stream)
        File "<decorator-gen-49>", line 2, in read_inventory
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename
        return func(*args, **kwargs)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 91, in read_inventory
        return _generic_reader(path_or_file_object, _read, format=format,
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 630, in _generic_reader
        generic = callback_func(fh.name https://urldefense.com/v3/__http://fh.name/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGXZMYxSQ$>, **kwargs)
        File "<decorator-gen-50>", line 2, in _read
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file
        result = func(filename, *args, **kwargs)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 100, in _read
        inventory, format = _read_from_plugin('inventory', filename, format=format,
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin
        list_obj = read_format(filename, **kwargs)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 180, in _read_stationxml
        networks.append(_read_network(network, _ns, level))
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 242, in _read_network
        stations.append(_read_station(station, _ns, level))
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 286, in _read_station
        cha = _read_channel(channel, _ns, level=level)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 429, in _read_channel
        channel.sensor = _read_equipment(sensor, _ns)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in _read_equipment
        [obspy.core.UTCDateTime(_i.text)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py", line 807, in <listcomp>
        [obspy.core.UTCDateTime(_i.text)
        File "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 406, in __init__
        dt = datetime.datetime(*args, **kwargs)
        TypeError: an integer is required (got type str)

        Does this represent a metadata problem, or should I look elsewhere?

        Thank you!

        -- John

        ----------------------
        Data Request Help
        Topic home: http://ds.iris.edu/message-center/topic/data-request-help/ https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGYjkfTYQ$> | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu <data-request-help-unsubscribe<at>lists.ds.iris.edu>

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/ https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGUCD-3LQ$>)
        Update subscription preferences at http://ds.iris.edu/account/profile/ https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJFuxrelyw$>


        ----------------------
        Data Request Help
        Topic home: https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGYjkfTYQ$ https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGYjkfTYQ$> | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu <data-request-help-unsubscribe<at>lists.ds.iris.edu>

        Sent from the IRIS Message Center (https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGUCD-3LQ$ https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGUCD-3LQ$> )
        Update subscription preferences at https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJFuxrelyw$ https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJFuxrelyw$>

        ----------------------
        Data Request Help
        Topic home: http://ds.iris.edu/message-center/topic/data-request-help/ | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu <data-request-help-unsubscribe<at>lists.ds.iris.edu>

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
        Update subscription preferences at http://ds.iris.edu/account/profile/

        • John West
          2022-09-30 11:12:27
          Thanks, Rob and Adam. I should note that the problem occurred both on my
          production server at ASU and on my laptop in a different location and on a
          different ISP.

          -- John

          On Fri, Sep 30, 2022, 10:44 AM rob<at>iris.washington.edu (via IRIS) <
          data-request-help-bounce<at>lists.ds.iris.edu> wrote:


          Thank you for taking this on Adam, and for providing followup feedback,
          John. I am not sure if the difference in behavior was due to overall load
          on our system or if there was some other factor involved, but let us know
          if this problem happens again. We've been recovering our alternate data
          center from some maintenance downtime and it caused some fluttering of
          services this week in the attempt to restore full capacity. I want to make
          sure we are running stably.

          -Rob



          On Sep 30, 2022, at 10:39 AM, John West (via IRIS) <
          data-request-help-bounce<at>lists.ds.iris.edu> wrote:

          Hi, Adam.

          I'm running Python 3.8.10 on Linux Mint.

          And you are entirely correct, I can't reproduce it either. The program
          loops through all available networks and requests channel data, yesterday
          it worked on most networks but failed on the ones I listed above. Today it
          runs flawlessly. No updates were applied in the meantime. So I don't know
          what to say.

          -- John


          On Fri, Sep 30, 2022 at 10:57 AM Adam Clark (via IRIS) <
          data-request-help-bounce<at>lists.ds.iris.edu> wrote:

          Hi John,

          I was not able to reproduce this error with:

          ```
          from obspy.clients.fdsn import Client
          client = Client()
          client.get_stations(
          startbefore='2021-07-04T01:29:00.000000Z',
          endafter='2021-07-04T03:29:00.000000Z',
          network='CI',
          channel='HH*,BH*',
          level='channel',
          )
          ```

          What version of ObsPy/Python/etc are you running?

          Cheers,
          Adam

          ----------------------
          Adam Clark
          Web Application Developer
          IRIS Data Management Center
          adam.clark<at>iris.edu


          On Sep 30, 2022, at 8:49 AM, John West (via IRIS) <
          data-request-help-bounce<at>lists.ds.iris.edu> wrote:

          Greetings. I have a python system which retrieves station and channel
          information using the Obspy client get_stations() call, as
          DCclient.get_stations(startbefore=FileStart, endafter=FileEnd,
          network=N.code, channel=CHANNELS, level='channel')

          Recently I have been getting errors on some networks, and the error code
          seems to indicate that the data center is returning strings instead of
          datetimes(?)
          The following requests fail (values in order of the request parameters
          above)
          2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z AG HH*,BH*
          level='channel'
          2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CC HH*,BH*
          level='channel'
          2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z CI HH*,BH*
          level='channel'
          2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z GS HH*,BH*
          level='channel'
          2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z NM HH*,BH*
          level='channel'
          2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z PR HH*,BH*
          level='channel'
          2021-07-04T01:29:00.000000Z 2021-07-04T03:29:00.000000Z RB HH*,BH*
          level='channel'

          A typical error traceback looks like this:
          Channels.py FDSNchannels() could not retrieve channels for datacenter
          IRIS: CI an integer is required (got type str) Traceback (most recent call
          last):
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
          line 623, in _generic_reader
          generic = callback_func(pathname_or_url, **kwargs)
          File "<decorator-gen-50>", line 2, in _read
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
          line 142, in uncompress_file
          return func(filename, *args, **kwargs)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
          line 100, in _read
          inventory, format = _read_from_plugin('inventory', filename,
          format=format,
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
          line 422, in _read_from_plugin
          list_obj = read_format(filename, **kwargs)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 180, in _read_stationxml
          networks.append(_read_network(network, _ns, level))
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 242, in _read_network
          stations.append(_read_station(station, _ns, level))
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 286, in _read_station
          cha = _read_channel(channel, _ns, level=level)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 429, in _read_channel
          channel.sensor = _read_equipment(sensor, _ns)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 807, in _read_equipment
          [obspy.core.UTCDateTime(_i.text)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 807, in <listcomp>
          [obspy.core.UTCDateTime(_i.text)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py",
          line 406, in __init__
          dt = datetime.datetime(*args, **kwargs)
          TypeError: an integer is required (got type str)

          During handling of the above exception, another exception occurred:

          Traceback (most recent call last):
          File "ChannelTrouble.py", line 80, in FDSNchannels
          Channels = DCclient.get_stations(startbefore=FileStart,
          endafter=FileEnd,
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/clients/fdsn/client.py",
          line 753, in get_stations
          inventory = read_inventory(data_stream)
          File "<decorator-gen-49>", line 2, in read_inventory
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
          line 291, in _map_example_filename
          return func(*args, **kwargs)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
          line 91, in read_inventory
          return _generic_reader(path_or_file_object, _read, format=format,
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
          line 630, in _generic_reader
          generic = callback_func(fh.name
          https://urldefense.com/v3/__http://fh.name/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGXZMYxSQ$>,
          **kwargs)
          File "<decorator-gen-50>", line 2, in _read
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/decorator.py",
          line 202, in uncompress_file
          result = func(filename, *args, **kwargs)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/inventory/inventory.py",
          line 100, in _read
          inventory, format = _read_from_plugin('inventory', filename,
          format=format,
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/util/base.py",
          line 422, in _read_from_plugin
          list_obj = read_format(filename, **kwargs)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 180, in _read_stationxml
          networks.append(_read_network(network, _ns, level))
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 242, in _read_network
          stations.append(_read_station(station, _ns, level))
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 286, in _read_station
          cha = _read_channel(channel, _ns, level=level)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 429, in _read_channel
          channel.sensor = _read_equipment(sensor, _ns)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 807, in _read_equipment
          [obspy.core.UTCDateTime(_i.text)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/io/stationxml/core.py",
          line 807, in <listcomp>
          [obspy.core.UTCDateTime(_i.text)
          File
          "/home/jdw/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py",
          line 406, in __init__
          dt = datetime.datetime(*args, **kwargs)
          TypeError: an integer is required (got type str)

          Does this represent a metadata problem, or should I look elsewhere?

          Thank you!

          -- John

          ----------------------
          Data Request Help
          Topic home: http://ds.iris.edu/message-center/topic/data-request-help/
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGYjkfTYQ$>
          | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

          Sent from the IRIS Message Center (http://ds.iris.edu/message-center/
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGUCD-3LQ$>
          )
          Update subscription preferences at http://ds.iris.edu/account/profile/
          https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJFuxrelyw$>



          ----------------------
          Data Request Help
          Topic home:
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGYjkfTYQ$
          | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

          Sent from the IRIS Message Center (
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJGUCD-3LQ$
          )
          Update subscription preferences at
          https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!cnRz2uERxhcHO4VRzyM6iQ2xMhHOUBUUxSCZcsdI1iOEH85oewJduTTboF9WVrLlV2pDSgPt35vPNMg7uCiKDRJ9ER6FXJFuxrelyw$



          ----------------------
          Data Request Help
          Topic home: http://ds.iris.edu/message-center/topic/data-request-help/
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!e_JzOlpum0SbsNUzMfrWyP_Phx6SdPj__EElqfMdqtf_Znpcvt3iojT-jNba1gAgxj7Z3n_d305B5q7-8mfazhUSVIPZfNw92L3Wfw$>
          | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

          Sent from the IRIS Message Center (http://ds.iris.edu/message-center/
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!e_JzOlpum0SbsNUzMfrWyP_Phx6SdPj__EElqfMdqtf_Znpcvt3iojT-jNba1gAgxj7Z3n_d305B5q7-8mfazhUSVIPZfNx6e9xKpA$>
          )
          Update subscription preferences at http://ds.iris.edu/account/profile/
          https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!e_JzOlpum0SbsNUzMfrWyP_Phx6SdPj__EElqfMdqtf_Znpcvt3iojT-jNba1gAgxj7Z3n_d305B5q7-8mfazhUSVIPZfNzGkE14Ww$>



          ----------------------
          Data Request Help
          Topic home:
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/topic/data-request-help/__;!!IKRxdwAv5BmarQ!e_JzOlpum0SbsNUzMfrWyP_Phx6SdPj__EElqfMdqtf_Znpcvt3iojT-jNba1gAgxj7Z3n_d305B5q7-8mfazhUSVIPZfNw92L3Wfw$
          | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu

          Sent from the IRIS Message Center (
          https://urldefense.com/v3/__http://ds.iris.edu/message-center/__;!!IKRxdwAv5BmarQ!e_JzOlpum0SbsNUzMfrWyP_Phx6SdPj__EElqfMdqtf_Znpcvt3iojT-jNba1gAgxj7Z3n_d305B5q7-8mfazhUSVIPZfNx6e9xKpA$
          )
          Update subscription preferences at
          https://urldefense.com/v3/__http://ds.iris.edu/account/profile/__;!!IKRxdwAv5BmarQ!e_JzOlpum0SbsNUzMfrWyP_Phx6SdPj__EElqfMdqtf_Znpcvt3iojT-jNba1gAgxj7Z3n_d305B5q7-8mfazhUSVIPZfNzGkE14Ww$



05:21:10 v.ad6b513c