{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "3dd95852",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\Users\\Administrateur\\anaconda3\\envs\\obspy\\lib\\site-packages\\numpy\\_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:\n",
      "C:\\Users\\Administrateur\\anaconda3\\envs\\obspy\\lib\\site-packages\\numpy\\.libs\\libopenblas.GK7GX5KEQ4F6UYO3P26ULGBQYHGQO7J4.gfortran-win_amd64.dll\n",
      "C:\\Users\\Administrateur\\anaconda3\\envs\\obspy\\lib\\site-packages\\numpy\\.libs\\libopenblas64__v0.3.21-gcc_10_3_0.dll\n",
      "  warnings.warn(\"loaded more than 1 DLL from .libs:\"\n"
     ]
    }
   ],
   "source": [
    "import datetime\n",
    "from obspy.core import UTCDateTime\n",
    "from obspy.clients.fdsn import Client"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b8a5394e",
   "metadata": {},
   "outputs": [],
   "source": [
    "current = datetime.date(2018,4,27)\n",
    "c = Client(\"IRIS\")\n",
    "st = c.get_waveforms(\"HV\", \"NPT\", \"*\", \"*Z\", current, \n",
    "                         current+datetime.timedelta(days=1))\n",
    "print(st)\n",
    "st.write(out, format='MSEED')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9928876a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
