Skip to content

Commit

Permalink
(Feat) mod notebooks to download parquet_queries.py, useful for googl…
Browse files Browse the repository at this point in the history
…e colab
  • Loading branch information
lbesnard committed May 2, 2024
1 parent 091984a commit 9cb7b03
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 0 deletions.
16 changes: 16 additions & 0 deletions notebooks/aatams_acoustic_tagging.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"aatams_acoustic_tagging\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
16 changes: 16 additions & 0 deletions notebooks/anfog_nrt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"anfog_slocum_glider\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
16 changes: 16 additions & 0 deletions notebooks/anmn_ctd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"anmn_ctd_ts_fv01\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
16 changes: 16 additions & 0 deletions notebooks/anmn_temperature_logger.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"anmn_temperature_logger_ts_fv01\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
16 changes: 16 additions & 0 deletions notebooks/ardc_wave_nrt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"ardc_wave_nrt\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
16 changes: 16 additions & 0 deletions notebooks/argo_core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"argo_core_yearly_geom\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
16 changes: 16 additions & 0 deletions notebooks/soop_xbt_nrt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"soop_xbt_nrt\""
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
16 changes: 16 additions & 0 deletions notebooks/template_parquet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
"dataset_name = \"dataset_parquet_name\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import os\n",
"if not os.path.exists('parquet_queries.py'):\n",
" print('Downloading parquet_queries.py')\n",
" url = 'https://raw.githubusercontent.com/aodn/aodn_cloud_optimised/main/notebooks/parquet_queries.py'\n",
" response = requests.get(url)\n",
" with open('parquet_queries.py', 'w') as f:\n",
" f.write(response.text)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 9cb7b03

Please sign in to comment.