Skip to content

CI-CMG/OceanAcoustics-LabManual

Repository files navigation

CIRES Ocean Acoustics Lab Manual

Welcome to the Ocean Acoustics Lab Manual. As part of the NOAA National Centers for Environmental Information Marine Geology and Geophysics section, our team at CIRES is committed to preserving, monitoring, and providing access to vital ocean acoustics data. NCEI manages over 60 petabytes of data, ensuring its availability for science and decision-making across multiple sectors. This manual highlights our contributions to NOAA's mission of supporting environmental understanding and resource conservation.

We are the NCEI Ocean Acoustics Archive Team (Team Fish), part of the University of Colorado Boulder’s CIRES at the NCEI office in Boulder, CO. Our team provides long-term stewardship of water column sonar and passive acoustic data, ensuring global access to half a petabyte of archived data through web-based tools. While most files are publicly accessible, some require administrative permission. Our work supports NOAA's mission to understand and protect the environment, contributing to fisheries assessments, endangered species monitoring, and more.

Here's the link to the template for a simple Quarto website (type: website). It looks like an HTML book (type: book) but unlike the book type it only has html format and you will not have the download options. type: website is a common format for documentation. The repo includes a GitHub Action that will build the website automatically when you make changes to the files. The webpage will use the gh-pages branch. Serving the website files from this branch is a common way to keep all the website files from cluttering your main branch.

Warning: Check that the settings will allow the GitHub Action to run. See the instructions below under "GitHub Set-up". Scroll down to the troubleshooting section if the website is not built by the GitHub Action.

Note: The GitHub Action installs R so you can render qmd files with R code. You will need to edit to install Python or Julia if your qmd uses those instead. If you have substantial computations, you don't want to be re-running all the computations for files that didn't change. Read about the freeze option for this situation. R users with complex reports with dependencies (so qmd B depends on qmd A or data file A) should be aware of the {targets} package which will help you keep track of files that need to be re-rendered due to changes in dependencies.

GitHub Set-up

  • Click the green "Use This Template" button to make a repository with this content. Make sure to make your repo public (since GitHub Pages don't work on private repos unless you have a paid account) and check the box to include all the branches (so that you get the gh-pages branch).

image

  • Turn on GitHub Pages under Settings > Pages. You will set pages to be made from the gh-pages branch and root directory.

image

  • Allow GitHub Actions under Settings > Actions > General

image

  • Allow GitHub Actions to write to the gh-pages branch. Scroll to the bottom under Settings > Actions > General, and make sure "Read and Write" is selected.

image

  • Edit the repo description and Readme to add a link to the webpage. When you edit the description, you will see the link URL in the URL box or you can click on the Actions tab or the Settings > Pages page to find the URL to the Quarto website

Customize

  • Edit the qmd or md files in the content folder. qmd files can include code (R, Python, Julia) and lots of Quarto markdown bells and whistles (like call-outs, cross-references, auto-citations, and much more).
  • Add the files to _quarto.yml

Publishing Your Webpage

To publish your Quarto webpage with a URL like:
yourname.github.io/yourrepo, follow these steps:

1. Turn on GitHub Pages

  • Go to Settings > Pages in your repository.
  • Set the source to be the gh-pages branch and the root directory.
  • Enable GitHub Actions under Settings > Actions > General.

Once set up, the GitHub Action will automatically rebuild your website every time you push changes to the repository.

2. First Publish to gh-pages

The first time you publish your site, you need to do it locally:

  • Open a terminal and navigate to your repository directory.
  • Run the command to publish your site to the gh-pages branch:
    • quarto publish gh-pages

This will render your webpage and push the content to the gh-pages branch.

3. Don’t Want to Use gh-pages?

If you prefer to host your website on the main branch (for example, if you want the website to be archived with each release):

  • Modify your Quarto project to output the website to the docs directory.
  • Change GitHub Pages settings to use the main branch and the docs directory.
  • Ensure that the docs directory is not in your .gitignore file.
  • Publish your website locally for the first time by running:
    • quarto publish

Finally, make sure to configure your GitHub Actions workflow to push the website to the main branch instead of the gh-pages branch.

Troubleshooting builds

The most common trouble users run into is that the book is not rendering. Check the following:

  • The gh-pages branch does not exist. If you forgot to check the check box to include all the branches when you created the repo from the template then it won't exist. The Action will fail if the gh-pages branch does not already exist. You can create the branch and then push a change to the main to trigger the Action to run again.
  • The GitHub Pages have not been set. It would help if you went to Pages under settings, and set Pages to build from the gh-pages branch.
  • You did not allow GitHub Actions to run and did not give read/write permission. Go to Settings > Actions > General, and make sure Actions are allowed (top section) and they have read/write permission (bottom section).
  • You did not push a change to the main branch. The Action is triggered by a push to the main, so try making an edit to README.md and pushing that change.

Disclaimer

This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal laws. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation, or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.

License

U.S. Government employees created this content as part of their official duties. This content is not subject to copyright in the United States (17 U.S.C. §105) and is in the public domain within the United States of America. Additionally, copyright is waived worldwide through the CC0 1.0 Universal public domain dedication.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •