diff --git a/jupyterbook/_toc.yml b/jupyterbook/_toc.yml index 1dfc88b2..462e4128 100644 --- a/jupyterbook/_toc.yml +++ b/jupyterbook/_toc.yml @@ -2,11 +2,6 @@ format: jb-book root: content/intro.md title: The IOOS Data Demo Center parts: - - caption: Gallery - chapters: - - file: content/gallery.md - title: Notebooks gallery - - caption: Getting Started chapters: - file: content/ioos_installation_conda.md diff --git a/jupyterbook/content/gallery.md b/jupyterbook/content/gallery.md deleted file mode 100644 index 267d4786..00000000 --- a/jupyterbook/content/gallery.md +++ /dev/null @@ -1,399 +0,0 @@ -(nb-gallery)= -# Gallery - -:::::{container} -::::{grid} 1 3 3 3 -:gutter: 2 - -:::{grid-item-card} Fetching data from CO-OPS ERDDAP with Python tools -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2016-10-12-fetching_data.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`ERDDAP` -{bdg-info}`Python` -^^^ - - -::: - -:::{grid-item-card} Plotting Glider data with Python tools -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2016-11-15-glider_data_example.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`Glider` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Accessing glider data via the Glider DAC API with Python -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2016-12-20-searching_glider_deployments.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`Glider` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Read realtime data from IOOS Sensor Map via ERDDAP tabledap -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2017-03-21-ERDDAP_IOOS_Sensor_Map.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`Sensor Map` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Using NCEI geoportal REST API to collect information about IOOS Regional Association archived data -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2017-06-12-NCEI_RA_archive_history.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`NCEI` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Using the `xtractomatic` R package to track Pacific Blue Marlin -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2017-08-01-xtractoR.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`ERDDAP` -{bdg-info}`R` -^^^ - - -::: - -:::{grid-item-card} Exploring the NHC Advisories and Sea Surface Height during Hurricane Irma -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2017-09-09-hurricane_irma.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`Hurricane` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Calling R libraries from Python -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2017-11-30-rerddap.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`ERDDAP` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Using r-obistools and r-obis to explore the OBIS database -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2018-02-20-obis.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`OBIS` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} erddapy: a python client/URL builder for ERDDAP -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2018-03-01-erddapy.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`ERDDAP` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} IOOS models: Temperature Horizontal Slices -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2019-03-08-grids-temperature.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`Modelling` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Accessing data from SOS using NHC GIS files -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2019-05-27-hurricane_gis_part02.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`Hurricane` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} IOOS GTS Statistics -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2020-10-10-GTS.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`GTS` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Searching multiple ERDDAP servers -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2021-10-19-multiple-erddap-search.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`ERDDAP` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Using pyobis to query for known datasets -:margin: 3 0 0 0 -:link: ./code_gallery/data_access_notebooks/2022-11-23_pyobis_example.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Access` -{bdg-secondary}`OBIS` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Parsing Conventions and standards with Python -:margin: 3 0 0 0 -:link: ./code_gallery/data_analysis_and_visualization_notebooks/2016-11-16-CF-UGRID-SGRID-conventions.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Analysis And Visualization` -{bdg-secondary}`CF-UGRID-SGRID` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Quick demonstration of R-notebooks using the r-oce library -:margin: 3 0 0 0 -:link: ./code_gallery/data_analysis_and_visualization_notebooks/2017-01-23-R-notebook.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Analysis And Visualization` -{bdg-secondary}`r-oce` -{bdg-info}`R` -^^^ - - -::: - -:::{grid-item-card} A Matlab notebook primer -:margin: 3 0 0 0 -:link: ./code_gallery/data_analysis_and_visualization_notebooks/2017-03-30-octave_notebook_example.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Analysis And Visualization` -{bdg-secondary}`Matlab` -{bdg-info}`octave` -^^^ - - -::: - -:::{grid-item-card} IOOS models -:margin: 3 0 0 0 -:link: ./code_gallery/data_analysis_and_visualization_notebooks/2018-12-04-grids.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Analysis And Visualization` -{bdg-secondary}`Modelling` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} IOOS QARTOD software (ioos_qc) -:margin: 3 0 0 0 -:link: ./code_gallery/data_analysis_and_visualization_notebooks/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Analysis And Visualization` -{bdg-secondary}`QARTOD` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Interpolating data remotely with ERDDAP -:margin: 3 0 0 0 -:link: ./code_gallery/data_analysis_and_visualization_notebooks/2021-10-25-ERDDAP-interpolate.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Analysis And Visualization` -{bdg-secondary}`ERDDAP` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Shore Station Compliance Checker Script -:margin: 3 0 0 0 -:link: ./code_gallery/data_management_notebooks/2017-05-14-running_compliance_checker.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Management` -{bdg-secondary}`Compliance-Checker` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Using BagIt to tag oceanographic data -:margin: 3 0 0 0 -:link: ./code_gallery/data_management_notebooks/2017-11-01-Creating-Archives-Using-Bagit.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Management` -{bdg-secondary}`BagIt` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Creating a CF-1.6 timeSeries using pocean -:margin: 3 0 0 0 -:link: ./code_gallery/data_management_notebooks/2018-02-27-pocean-timeSeries-demo.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Management` -{bdg-secondary}`CF` -{bdg-info}`python` -^^^ - - -::: - -:::{grid-item-card} Aligning Data to Darwin Core -:margin: 3 0 0 0 -:link: ./code_gallery/data_management_notebooks/2020-12-08-DataToDwC.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Management` -{bdg-secondary}`ERDDAP` -{bdg-info}`Darwin Core` -^^^ - - -::: - -:::{grid-item-card} Reading and writting zarr files with xarray -:margin: 3 0 0 0 -:link: ./code_gallery/data_management_notebooks/2023-03-20-Reading_and_writing_zarr.html -:link-type: url -:text-align: center -:shadow: md - -{bdg-primary}`Data Management` -{bdg-secondary}`Zarr` -{bdg-info}`python` -^^^ - - -::: - -:::: -::::: \ No newline at end of file diff --git a/jupyterbook/content/images/2016-10-12-fetching_data.png b/jupyterbook/content/images/2016-10-12-fetching_data.png deleted file mode 100644 index 9a874702..00000000 Binary files a/jupyterbook/content/images/2016-10-12-fetching_data.png and /dev/null differ diff --git a/jupyterbook/content/images/2016-11-15-glider_data_example.png b/jupyterbook/content/images/2016-11-15-glider_data_example.png deleted file mode 100644 index c6e1a8fa..00000000 Binary files a/jupyterbook/content/images/2016-11-15-glider_data_example.png and /dev/null differ diff --git a/jupyterbook/content/images/2016-11-16-CF-UGRID-SGRID-conventions.png b/jupyterbook/content/images/2016-11-16-CF-UGRID-SGRID-conventions.png deleted file mode 100644 index 1e8efb17..00000000 Binary files a/jupyterbook/content/images/2016-11-16-CF-UGRID-SGRID-conventions.png and /dev/null differ diff --git a/jupyterbook/content/images/2016-12-19-exploring_csw.archived.png b/jupyterbook/content/images/2016-12-19-exploring_csw.archived.png deleted file mode 100644 index 604fef0b..00000000 Binary files a/jupyterbook/content/images/2016-12-19-exploring_csw.archived.png and /dev/null differ diff --git a/jupyterbook/content/images/2016-12-20-searching_glider_deployments.png b/jupyterbook/content/images/2016-12-20-searching_glider_deployments.png deleted file mode 100644 index 7a0e6848..00000000 Binary files a/jupyterbook/content/images/2016-12-20-searching_glider_deployments.png and /dev/null differ diff --git a/jupyterbook/content/images/2016-12-22-boston_light_swim.archived.png b/jupyterbook/content/images/2016-12-22-boston_light_swim.archived.png deleted file mode 100644 index 3eb96b33..00000000 Binary files a/jupyterbook/content/images/2016-12-22-boston_light_swim.archived.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-01-18-siphon-explore-thredds.archived.png b/jupyterbook/content/images/2017-01-18-siphon-explore-thredds.archived.png deleted file mode 100644 index 5ce81018..00000000 Binary files a/jupyterbook/content/images/2017-01-18-siphon-explore-thredds.archived.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-01-23-R-notebook.png b/jupyterbook/content/images/2017-01-23-R-notebook.png deleted file mode 100644 index 3385dd4e..00000000 Binary files a/jupyterbook/content/images/2017-01-23-R-notebook.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-03-21-ERDDAP_IOOS_Sensor_Map.png b/jupyterbook/content/images/2017-03-21-ERDDAP_IOOS_Sensor_Map.png deleted file mode 100644 index acf3e7d0..00000000 Binary files a/jupyterbook/content/images/2017-03-21-ERDDAP_IOOS_Sensor_Map.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-03-30-octave_notebook_example.png b/jupyterbook/content/images/2017-03-30-octave_notebook_example.png deleted file mode 100644 index 5b04a085..00000000 Binary files a/jupyterbook/content/images/2017-03-30-octave_notebook_example.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-06-12-NCEI_RA_archive_history.png b/jupyterbook/content/images/2017-06-12-NCEI_RA_archive_history.png deleted file mode 100644 index 60ff29d4..00000000 Binary files a/jupyterbook/content/images/2017-06-12-NCEI_RA_archive_history.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-07-25-HFRadar_currents.archived.png b/jupyterbook/content/images/2017-07-25-HFRadar_currents.archived.png deleted file mode 100644 index 63890324..00000000 Binary files a/jupyterbook/content/images/2017-07-25-HFRadar_currents.archived.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-08-01-xtractoR.png b/jupyterbook/content/images/2017-08-01-xtractoR.png deleted file mode 100644 index 338a2329..00000000 Binary files a/jupyterbook/content/images/2017-08-01-xtractoR.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-09-09-hurricane_irma.png b/jupyterbook/content/images/2017-09-09-hurricane_irma.png deleted file mode 100644 index 4aa2c7bb..00000000 Binary files a/jupyterbook/content/images/2017-09-09-hurricane_irma.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-11-30-rerddap.png b/jupyterbook/content/images/2017-11-30-rerddap.png deleted file mode 100644 index 4664bf17..00000000 Binary files a/jupyterbook/content/images/2017-11-30-rerddap.png and /dev/null differ diff --git a/jupyterbook/content/images/2017-12-15-finding_HFRadar_currents.archived.png b/jupyterbook/content/images/2017-12-15-finding_HFRadar_currents.archived.png deleted file mode 100644 index 4526087a..00000000 Binary files a/jupyterbook/content/images/2017-12-15-finding_HFRadar_currents.archived.png and /dev/null differ diff --git a/jupyterbook/content/images/2018-02-20-obis.png b/jupyterbook/content/images/2018-02-20-obis.png deleted file mode 100644 index 064dab8a..00000000 Binary files a/jupyterbook/content/images/2018-02-20-obis.png and /dev/null differ diff --git a/jupyterbook/content/images/2018-02-27-pocean-timeSeries-demo.png b/jupyterbook/content/images/2018-02-27-pocean-timeSeries-demo.png deleted file mode 100644 index b6926569..00000000 Binary files a/jupyterbook/content/images/2018-02-27-pocean-timeSeries-demo.png and /dev/null differ diff --git a/jupyterbook/content/images/2018-03-01-erddapy.png b/jupyterbook/content/images/2018-03-01-erddapy.png deleted file mode 100644 index 484d0ba2..00000000 Binary files a/jupyterbook/content/images/2018-03-01-erddapy.png and /dev/null differ diff --git a/jupyterbook/content/images/2018-03-30-wave_height_assessment.archived.png b/jupyterbook/content/images/2018-03-30-wave_height_assessment.archived.png deleted file mode 100644 index 21f00769..00000000 Binary files a/jupyterbook/content/images/2018-03-30-wave_height_assessment.archived.png and /dev/null differ diff --git a/jupyterbook/content/images/2018-12-04-grids.png b/jupyterbook/content/images/2018-12-04-grids.png deleted file mode 100644 index 08035739..00000000 Binary files a/jupyterbook/content/images/2018-12-04-grids.png and /dev/null differ diff --git a/jupyterbook/content/images/2019-03-08-grids-temperature.png b/jupyterbook/content/images/2019-03-08-grids-temperature.png deleted file mode 100644 index 4a000ab8..00000000 Binary files a/jupyterbook/content/images/2019-03-08-grids-temperature.png and /dev/null differ diff --git a/jupyterbook/content/images/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.png b/jupyterbook/content/images/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.png deleted file mode 100644 index 84038797..00000000 Binary files a/jupyterbook/content/images/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.png and /dev/null differ diff --git a/jupyterbook/content/images/2020-10-10-GTS.png b/jupyterbook/content/images/2020-10-10-GTS.png deleted file mode 100644 index 9c6b9e6e..00000000 Binary files a/jupyterbook/content/images/2020-10-10-GTS.png and /dev/null differ diff --git a/jupyterbook/content/images/2021-10-25-ERDDAP-interpolate.png b/jupyterbook/content/images/2021-10-25-ERDDAP-interpolate.png deleted file mode 100644 index 58b76224..00000000 Binary files a/jupyterbook/content/images/2021-10-25-ERDDAP-interpolate.png and /dev/null differ diff --git a/jupyterbook/content/images/2022-11-23_pyobis_example.png b/jupyterbook/content/images/2022-11-23_pyobis_example.png deleted file mode 100644 index 0aa37221..00000000 Binary files a/jupyterbook/content/images/2022-11-23_pyobis_example.png and /dev/null differ diff --git a/jupyterbook/content/images/2023-03-20-Reading_and_writing_zarr.png b/jupyterbook/content/images/2023-03-20-Reading_and_writing_zarr.png deleted file mode 100644 index e068fa3d..00000000 Binary files a/jupyterbook/content/images/2023-03-20-Reading_and_writing_zarr.png and /dev/null differ diff --git a/jupyterbook/content/images/placeholder.png b/jupyterbook/content/images/placeholder.png deleted file mode 100644 index adfee068..00000000 Binary files a/jupyterbook/content/images/placeholder.png and /dev/null differ diff --git a/jupyterbook/content/make_gallery.py b/jupyterbook/content/make_gallery.py deleted file mode 100644 index 1716d9b9..00000000 --- a/jupyterbook/content/make_gallery.py +++ /dev/null @@ -1,61 +0,0 @@ -import nbformat -import glob -import os - -from nbconvert.exporters import markdown - -SITE_DIR = "." -IMAGE_DIR = os.path.join(SITE_DIR, "images") - - -def extract_notebook_info(nb_path): - title = "No title" - image = "images/placeholder.png" - exporter = markdown.MarkdownExporter() - output, resources = exporter.from_filename(nb_path) - for line in output.splitlines(): - line = line.strip() - if line.startswith("#"): - title = line.strip("#").strip() - break - - images = sorted(resources["outputs"]) - if images: - img_file = images[-1] - thumb_name = os.path.join( - IMAGE_DIR, - os.path.splitext(os.path.basename(nb_path))[0] - + os.path.splitext(img_file)[-1], - ) - - with open(os.path.join(thumb_name), "wb") as thumb: - thumb.write(resources["outputs"][img_file]) - - image = os.path.relpath(thumb_name, SITE_DIR) - link = f"./{nb_path.replace('.ipynb', '.html')}" - return title, image, link - - -def make_gallery_entry(nb_path): - title, image, link = extract_notebook_info(nb_path) - nb = nbformat.read(nb_path, as_version=4) - return f"""\ - :::{{grid-item-card}} {title} - :margin: 3 0 0 0 - :link: {link} - :link-type: url - :text-align: center - :shadow: md - - {{bdg-primary}}`{nb_path.split("/")[1].replace("_", " ").title().strip("Notebooks").strip()}` - {{bdg-secondary}}`ERDDAP` - {{bdg-info}}`{nb["metadata"]["language_info"]["name"]}` - ^^^ - - - ::: - """ - - -for nb_path in sorted(glob.glob("code_gallery/**/*.ipynb")): - print(make_gallery_entry(nb_path))