{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Stations to DataFrame\n", "\n", "Station data can be converted to a dataframe using the predefined [DataFrameExtractor](../utils/dataframeextractor.ipynb). This creates an entry for each channel, an inventory with channel information is needed. In the future we hope to make this a bit more general to handle inventories with only station level information." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2024-02-28T22:20:11.458658Z", "iopub.status.busy": "2024-02-28T22:20:11.458230Z", "iopub.status.idle": "2024-02-28T22:20:13.669197Z", "shell.execute_reply": "2024-02-28T22:20:13.668565Z" } }, "outputs": [ { "data": { "text/html": [ "
\n", " | network | \n", "station | \n", "location | \n", "channel | \n", "seed_id | \n", "latitude | \n", "longitude | \n", "elevation | \n", "depth | \n", "azimuth | \n", "dip | \n", "sample_rate | \n", "start_date | \n", "end_date | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "GR | \n", "FUR | \n", "\n", " | HHZ | \n", "GR.FUR..HHZ | \n", "48.162899 | \n", "11.2752 | \n", "565.0 | \n", "0.0 | \n", "0.0 | \n", "-90.0 | \n", "100.0 | \n", "2006-12-16 | \n", "NaT | \n", "
1 | \n", "GR | \n", "FUR | \n", "\n", " | HHN | \n", "GR.FUR..HHN | \n", "48.162899 | \n", "11.2752 | \n", "565.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "100.0 | \n", "2006-12-16 | \n", "NaT | \n", "
2 | \n", "GR | \n", "FUR | \n", "\n", " | HHE | \n", "GR.FUR..HHE | \n", "48.162899 | \n", "11.2752 | \n", "565.0 | \n", "0.0 | \n", "90.0 | \n", "0.0 | \n", "100.0 | \n", "2006-12-16 | \n", "NaT | \n", "
3 | \n", "GR | \n", "FUR | \n", "\n", " | BHZ | \n", "GR.FUR..BHZ | \n", "48.162899 | \n", "11.2752 | \n", "565.0 | \n", "0.0 | \n", "0.0 | \n", "-90.0 | \n", "20.0 | \n", "2006-12-16 | \n", "NaT | \n", "
4 | \n", "GR | \n", "FUR | \n", "\n", " | BHN | \n", "GR.FUR..BHN | \n", "48.162899 | \n", "11.2752 | \n", "565.0 | \n", "0.0 | \n", "0.0 | \n", "0.0 | \n", "20.0 | \n", "2006-12-16 | \n", "NaT | \n", "