Skip to content

Add non-gridded data notebooks#49

Merged
jemrobinson merged 6 commits intomainfrom
23-non-gridded-data-notebooks
Aug 12, 2025
Merged

Add non-gridded data notebooks#49
jemrobinson merged 6 commits intomainfrom
23-non-gridded-data-notebooks

Conversation

@npedrazzini
Copy link
Copy Markdown
Contributor

This PR introduces the following changes:

  1. notebook extract_anomalies.ipynb, which
    • downloads daily mean sea level pressure (psl) data (2014–2020) using the download_toolbox
    • downloads monthly average psl data (1979–2020) via the CDS API
    • calculates climatologies from the monthly data
    • computes daily psl anomalies using the calculated climatologies
  2. notebook degrid_and_visualise.ipynb, which
    • demonstrates how to generate synthetic station and buoy datasets from gridded data:
      • stations: extracts N random lat–lon points and interpolates their values from the surrounding grid over the full period
      • buoys: extracts N random points and simulates movement by finding nearest neighbours in subsequent time steps, adding positional jitter to mimic real‑world buoy drift
  3. Conda environment config (nongriddedenv.yaml)
    • adds a conda environment YAML file to run notebooks

Closes #23

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@npedrazzini npedrazzini changed the title 23 non gridded data notebooks Add non-gridded data notebooks #23 Aug 6, 2025
@npedrazzini npedrazzini changed the title Add non-gridded data notebooks #23 Add non-gridded data notebooks Aug 6, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 6, 2025

Coverage report

This PR does not seem to contain any modification to coverable code.

@jemrobinson
Copy link
Copy Markdown
Member

I've looked through these notebooks - they look fine but I haven't actually run them.

@jemrobinson jemrobinson force-pushed the 23-non-gridded-data-notebooks branch from f164de0 to 88eb5bd Compare August 8, 2025 12:11
Copy link
Copy Markdown
Contributor

@IFenton IFenton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of minor comments, but apart from that looking fine, and ready to merge.

Comment thread notebooks/extract_anomalies.ipynb
Comment thread notebooks/degrid_and_visualise.ipynb
@jemrobinson jemrobinson merged commit 793d9a6 into main Aug 12, 2025
3 checks passed
@jemrobinson jemrobinson deleted the 23-non-gridded-data-notebooks branch August 12, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create synthetic non-gridded data

3 participants