diff --git a/slurm/quakeflow_demo.ipynb b/slurm/quakeflow_demo.ipynb index 5ad636a..ecbe228 100644 --- a/slurm/quakeflow_demo.ipynb +++ b/slurm/quakeflow_demo.ipynb @@ -1234,8 +1234,8 @@ } ], "source": [ - "# run(root_path, \"run_phasenet.py\")\n", - "run(root_path, \"run_phasenet_v2.py\")" + "run(root_path, \"run_phasenet.py\")\n", + "# run(root_path, \"run_phasenet_v2.py\")" ] }, { @@ -1435,12 +1435,12 @@ "end_time = event.time + pd.Timedelta(seconds=30)\n", "waveforms = obspy.Stream()\n", "try:\n", - " waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{begin_time.year}-{begin_time.dayofyear}/{begin_time.hour}/*.mseed\")\n", + " waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{begin_time.year}-{begin_time.dayofyear:03d}/{begin_time.hour:02d}/*.mseed\")\n", "except Exception as e:\n", " print(e)\n", "if end_time.hour != begin_time.hour:\n", " try:\n", - " waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{end_time.year}-{end_time.dayofyear}/{end_time.hour}/*.mseed\")\n", + " waveforms += obspy.read(f\"{root_path}/{region}/waveforms/{end_time.year}-{end_time.dayofyear:03d}/{end_time.hour:02d}/*.mseed\")\n", " except Exception as e:\n", " print(e)\n", "stream = waveforms.copy()\n", @@ -1618,7 +1618,7 @@ "import cartopy.feature as cfeature\n", "import cartopy.io.img_tiles as cimgt\n", "\n", - "gamma_events = gamma_events[gamma_events[\"gamma_score\"] > 30]\n", + "# gamma_events = gamma_events[gamma_events[\"gamma_score\"] > 30]\n", "\n", "fig = plt.figure(figsize=plt.rcParams[\"figure.figsize\"] * np.array([1.5, 1]))\n", "box = dict(boxstyle=\"round\", facecolor=\"white\", alpha=1)\n", @@ -1756,62 +1756,6 @@ ")\n", "plt.show()\n" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {