synthetic-gravity-waves

Python package for generating synthetic gravity waves used in machine learning training

https://github.com/leifdenby/synthetic-gravity-waves

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: acm.org, zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Python package for generating synthetic gravity waves used in machine learning training

Basic Info
  • Host: GitHub
  • Owner: leifdenby
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: master
  • Size: 1.35 MB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Created about 3 years ago · Last pushed about 3 years ago
Metadata Files
Readme License Citation

README.md

Synthetic gravity waves

synthetic-gravity-waves DOI

This python package facilitates the creation of 2D synthetic atmospheric gravity-wave wave-packets mimicking the vertical velocity structure seen in numerical weather prediction models at fixed height or pressure levels.

Installation and usage

Install the package with pip from pypi.org

bash python -m pip install synthetic_gravity_waves

And the import synthetic_gravity_waves and use it to create a uniformly gridded vertical velocity field with synthetic gravity wave wave-packets:

```python import syntheticgravitywaves as sgw

phi = sgw.makesyntheticgravitywavecomposite(N=512, r_sigma=10.0, r0=80.0, lw0=10.0)

w0 = 5.0 # max characteristc vertical velocity [m/s] w = phi * w0

w now contains synthetic gravity wave packets with amplitude between -w0 and w0

```

Method

The method uses a point-sampling method based on the Poisson-disc sampling algorithm by Robert Bridson, but modified to in place of using a 2D density field to define the local density of points the spatial separation between points is sampled from a Gaussian distribution with mean r0 and standard deviation r_sigma. The sampling is done on a grid of shape (N, N). At the sampled points 2D Gaussians envelopes modulating plane-parallel carrier waves with a controllable characterisc wavelength.

See notebooks/usage.ipynb for details.

References

Owner

  • Name: Leif Denby
  • Login: leifdenby
  • Kind: user
  • Company: Copenhagen, DK

Senior Scientist, Danish Meteorological Institute, DK & Visiting Scientist, University of Leeds, UK

Citation (CITATION.cff)

cff-version: 1.1.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Leif
    given-names: Denby
    orcid: https://orcid.org/0000-0002-7611-9222
title: leifdenby/synthetic-gravity-waves: v0.1.0
version: v0.1.0
date-released: 2023-01-27

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 8
  • Total Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Leif Denby l****f@d****u 8
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 minutes
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • leifdenby (6)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 10 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: synthetic-gravity-waves

Python package for generation of synthetic gravity waves

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 10 Last month
Rankings
Dependent packages count: 6.6%
Downloads: 15.4%
Average: 24.4%
Forks count: 30.5%
Dependent repos count: 30.6%
Stargazers count: 39.1%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/ci-pre-commit.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • pre-commit/action v2.0.3 composite
.github/workflows/ci-pypi-deploy.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • casperdcl/deploy-pypi v2 composite
.github/workflows/python-package-pip.yml actions
  • actions/checkout v2 composite