Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Contributing to NCAR GDEX Examples

We welcome contributions from anyone who has an NCAR HPC account (Casper/Derecho access) or simply uses GDEX data! This guide will walk you through the process of contributing your geoscientific workflow examples to the repository.

Contribution Workflow

Step 1: Fork the Repository

  1. Navigate to the NCAR gdex-examples repository

  2. Click the Fork button in the upper right corner

  3. This creates a copy of the repository under your GitHub account

Step 2: Clone Your Fork Locally

# Clone your forked repository to your local machine
git clone https://github.com/YOUR-USERNAME/gdex-examples.git
cd gdex-examples

# Add the upstream repository as a remote
git remote add upstream https://github.com/NCAR/gdex-examples.git

Step 3: Create a Feature Branch

Always create a new branch for your contributions:

# Create and switch to a new branch
git checkout -b example/my-dataset-example

Use a descriptive branch name that reflects your contribution (e.g., example/cesm-analysis, example/era5-comparison).

Step 4: Make Your Changes

Adding a New Example Notebook

  1. Use the Template: Start with the template notebook as your foundation

  2. Place Your Notebook: Add your Jupyter notebook to the notebooks/ directory

  3. Follow Naming Conventions: Use descriptive, lowercase names with underscores (e.g., my_dataset_analysis.ipynb)

  4. Include Images: If your notebook uses images, place them in docs/images/ with descriptive filenames

Notebook Requirements

Your notebook should include:

Step 5: Test Your Notebook

Before submitting, ensure your notebook:

Step 6: Commit Your Changes

# Stage your changes
git add notebooks/my_dataset_analysis.ipynb
git add docs/images/my_figure.png  # if applicable

# Commit with a descriptive message
git commit -m "Add example workflow for [Dataset Name] analysis"

Step 7: Push to Your Fork

# Push your branch to your forked repository
git push origin example/my-dataset-example

Step 8: Submit a Pull Request

  1. Go to your forked repository on GitHub

  2. Click the Compare & pull request button

  3. Provide a clear title and description:

    • What dataset does your example use?

    • What scientific question or workflow does it demonstrate?

    • Any special requirements or dependencies?

  4. Submit the pull request to merge into the upstream NCAR gdex-examples repository

Step 9: Address Review Feedback

Best Practices

Code Quality

Documentation

Performance

Getting Help

Template Reference

For a complete guide on structuring your notebook, see the example template in the next section. This template provides:

Code of Conduct

Please be respectful and constructive in all interactions. We aim to foster an inclusive and collaborative community.

License

By contributing to this repository, you agree that your contributions will be licensed under the same license as the project.


Thank you for contributing to the NCAR GDEX Examples! Your workflows help the broader geoscience community leverage GDEX data effectively.