pelagos-py 0.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. pelagos_py-0.0.0/.github/workflows/buildDocs.yml +55 -0
  2. pelagos_py-0.0.0/.github/workflows/bump-patch.yml +43 -0
  3. pelagos_py-0.0.0/.github/workflows/publish.yml +59 -0
  4. pelagos_py-0.0.0/.github/workflows/runPytest.yml +43 -0
  5. pelagos_py-0.0.0/.gitignore +110 -0
  6. pelagos_py-0.0.0/.vscode/launch.json +15 -0
  7. pelagos_py-0.0.0/.vscode/settings.json +4 -0
  8. pelagos_py-0.0.0/CITATION.cff +51 -0
  9. pelagos_py-0.0.0/CONTRIBUTING.md +66 -0
  10. pelagos_py-0.0.0/LICENSE +201 -0
  11. pelagos_py-0.0.0/PKG-INFO +151 -0
  12. pelagos_py-0.0.0/README.md +99 -0
  13. pelagos_py-0.0.0/docs/Makefile +20 -0
  14. pelagos_py-0.0.0/docs/_static/custom.css +106 -0
  15. pelagos_py-0.0.0/docs/_static/favicon.svg +3 -0
  16. pelagos_py-0.0.0/docs/_static/index_api.svg +97 -0
  17. pelagos_py-0.0.0/docs/_static/index_api_dark.svg +97 -0
  18. pelagos_py-0.0.0/docs/_static/index_contribute.svg +76 -0
  19. pelagos_py-0.0.0/docs/_static/index_contribute_dark.svg +76 -0
  20. pelagos_py-0.0.0/docs/_static/index_getting_started.svg +66 -0
  21. pelagos_py-0.0.0/docs/_static/index_getting_started_dark.svg +66 -0
  22. pelagos_py-0.0.0/docs/_static/index_user_guide.svg +67 -0
  23. pelagos_py-0.0.0/docs/_static/index_user_guide_dark.svg +67 -0
  24. pelagos_py-0.0.0/docs/_static/pelagos_logo.png +0 -0
  25. pelagos_py-0.0.0/docs/_templates/autoapi/python/module.rst +46 -0
  26. pelagos_py-0.0.0/docs/api_reference.rst +25 -0
  27. pelagos_py-0.0.0/docs/conf.py +222 -0
  28. pelagos_py-0.0.0/docs/development.rst +179 -0
  29. pelagos_py-0.0.0/docs/getting_started.rst +137 -0
  30. pelagos_py-0.0.0/docs/index.rst +132 -0
  31. pelagos_py-0.0.0/docs/make.bat +35 -0
  32. pelagos_py-0.0.0/docs/quality_control.rst +68 -0
  33. pelagos_py-0.0.0/docs/requirements.txt +13 -0
  34. pelagos_py-0.0.0/docs/steps.rst +48 -0
  35. pelagos_py-0.0.0/docs/user_guide.rst +356 -0
  36. pelagos_py-0.0.0/environment.yaml +61 -0
  37. pelagos_py-0.0.0/examples/configs/MissionControl.yaml +84 -0
  38. pelagos_py-0.0.0/examples/configs/all_step_configs.yaml +570 -0
  39. pelagos_py-0.0.0/examples/configs/example_config_formatchk.yaml +76 -0
  40. pelagos_py-0.0.0/examples/configs/example_config_nelson.yaml +164 -0
  41. pelagos_py-0.0.0/examples/configs/example_config_reporting.yaml +67 -0
  42. pelagos_py-0.0.0/examples/configs/voto_config.yaml +138 -0
  43. pelagos_py-0.0.0/examples/notebooks/format_checker.ipynb +329 -0
  44. pelagos_py-0.0.0/examples/notebooks/manager_demo.ipynb +333 -0
  45. pelagos_py-0.0.0/examples/notebooks/pipeline_demo.ipynb +1294 -0
  46. pelagos_py-0.0.0/examples/notebooks/report_demo.ipynb +282 -0
  47. pelagos_py-0.0.0/examples/python/external_config_demo.py +28 -0
  48. pelagos_py-0.0.0/examples/python/internal_config_demo.py +138 -0
  49. pelagos_py-0.0.0/examples/python/multi_config_demo.py +260 -0
  50. pelagos_py-0.0.0/pyproject.toml +81 -0
  51. pelagos_py-0.0.0/requirements.txt +30 -0
  52. pelagos_py-0.0.0/setup.cfg +4 -0
  53. pelagos_py-0.0.0/src/pelagos_py/__init__.py +30 -0
  54. pelagos_py-0.0.0/src/pelagos_py/_version.py +1 -0
  55. pelagos_py-0.0.0/src/pelagos_py/pipeline.py +344 -0
  56. pelagos_py-0.0.0/src/pelagos_py/pipeline_manager.py +824 -0
  57. pelagos_py-0.0.0/src/pelagos_py/steps/__init__.py +135 -0
  58. pelagos_py-0.0.0/src/pelagos_py/steps/base_qc.py +113 -0
  59. pelagos_py-0.0.0/src/pelagos_py/steps/base_step.py +142 -0
  60. pelagos_py-0.0.0/src/pelagos_py/steps/input_output/__init__.py +1 -0
  61. pelagos_py-0.0.0/src/pelagos_py/steps/input_output/export.py +99 -0
  62. pelagos_py-0.0.0/src/pelagos_py/steps/input_output/format_check.py +83 -0
  63. pelagos_py-0.0.0/src/pelagos_py/steps/input_output/gen_data.py +154 -0
  64. pelagos_py-0.0.0/src/pelagos_py/steps/input_output/load_data.py +194 -0
  65. pelagos_py-0.0.0/src/pelagos_py/steps/input_output/write_report.py +940 -0
  66. pelagos_py-0.0.0/src/pelagos_py/steps/processing/__init__.py +1 -0
  67. pelagos_py-0.0.0/src/pelagos_py/steps/processing/bbp.py +218 -0
  68. pelagos_py-0.0.0/src/pelagos_py/steps/processing/chla.py +514 -0
  69. pelagos_py-0.0.0/src/pelagos_py/steps/processing/derive_ctd.py +177 -0
  70. pelagos_py-0.0.0/src/pelagos_py/steps/processing/find_profiles.py +361 -0
  71. pelagos_py-0.0.0/src/pelagos_py/steps/processing/interpolate_data.py +157 -0
  72. pelagos_py-0.0.0/src/pelagos_py/steps/processing/oxygen.py +607 -0
  73. pelagos_py-0.0.0/src/pelagos_py/steps/processing/profile_direction.py +193 -0
  74. pelagos_py-0.0.0/src/pelagos_py/steps/processing/salinity.py +440 -0
  75. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/__init__.py +1 -0
  76. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/apply_qc.py +261 -0
  77. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/flag_full_profile.py +149 -0
  78. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/gross_range_qc.py +175 -0
  79. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/impossible_date_qc.py +102 -0
  80. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/impossible_location_qc.py +104 -0
  81. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/impossible_range_qc.py +203 -0
  82. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/impossible_speed_qc.py +129 -0
  83. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/par_irregularity_qc.py +392 -0
  84. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/position_on_land_qc.py +118 -0
  85. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/spike_qc.py +216 -0
  86. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/stuck_value_qc.py +196 -0
  87. pelagos_py-0.0.0/src/pelagos_py/steps/quality_control/valid_profile_qc.py +117 -0
  88. pelagos_py-0.0.0/src/pelagos_py/steps/templates/__init__.py +1 -0
  89. pelagos_py-0.0.0/src/pelagos_py/steps/templates/blank_qc.py +49 -0
  90. pelagos_py-0.0.0/src/pelagos_py/steps/templates/blank_step.py +52 -0
  91. pelagos_py-0.0.0/src/pelagos_py/utils/__init__.py +17 -0
  92. pelagos_py-0.0.0/src/pelagos_py/utils/alignment.py +1018 -0
  93. pelagos_py-0.0.0/src/pelagos_py/utils/config_mirror.py +121 -0
  94. pelagos_py-0.0.0/src/pelagos_py/utils/diagnostics.py +542 -0
  95. pelagos_py-0.0.0/src/pelagos_py/utils/processing_utils.py +102 -0
  96. pelagos_py-0.0.0/src/pelagos_py/utils/qc_handling.py +199 -0
  97. pelagos_py-0.0.0/src/pelagos_py/utils/time.py +65 -0
  98. pelagos_py-0.0.0/src/pelagos_py/utils/valid_config_check.py +83 -0
  99. pelagos_py-0.0.0/src/pelagos_py/utils/validation.py +341 -0
  100. pelagos_py-0.0.0/src/pelagos_py.egg-info/PKG-INFO +151 -0
  101. pelagos_py-0.0.0/src/pelagos_py.egg-info/SOURCES.txt +109 -0
  102. pelagos_py-0.0.0/src/pelagos_py.egg-info/dependency_links.txt +1 -0
  103. pelagos_py-0.0.0/src/pelagos_py.egg-info/requires.txt +34 -0
  104. pelagos_py-0.0.0/src/pelagos_py.egg-info/top_level.txt +1 -0
  105. pelagos_py-0.0.0/tests/test_format_checker.py +161 -0
  106. pelagos_py-0.0.0/tests/test_impossible_date_qc.py +30 -0
  107. pelagos_py-0.0.0/tests/test_impossible_location_qc.py +49 -0
  108. pelagos_py-0.0.0/tests/test_pipeline_integration.py +124 -0
  109. pelagos_py-0.0.0/tests/test_position_on_land_qc.py +55 -0
  110. pelagos_py-0.0.0/tests/test_write_report.py +721 -0
  111. pelagos_py-0.0.0/tests/utils/test_utils.py +41 -0
@@ -0,0 +1,55 @@
1
+ name: Build Documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - dev
8
+
9
+ permissions:
10
+ contents: write
11
+
12
+ jobs:
13
+ build-docs:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - name: Checkout Repository
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Set Up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: '3.10'
24
+
25
+ - name: Install Dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ pip install -r docs/requirements.txt
29
+
30
+ - name: Clean Python Cache and Docs Artifacts
31
+ run: |
32
+ find . -name '__pycache__' -type d -exec rm -r {} +
33
+ find . -name '*.pyc' -delete
34
+ rm -rf docs/_build/
35
+ rm -rf docs/api/
36
+ ls .
37
+
38
+ - name: Build Documentation
39
+ run: |
40
+ sphinx-build -b html docs/ docs/_build/html/
41
+
42
+ - name: Ensure Static Files Are Present
43
+ run: |
44
+ ls -p docs/_build/html/
45
+
46
+ - name: Disable Jekyll Processing
47
+ run: touch docs/_build/html/.nojekyll
48
+
49
+ - name: Deploy to GitHub Pages
50
+ if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
51
+ uses: JamesIves/github-pages-deploy-action@v4
52
+ with:
53
+ branch: gh-pages # Deploy to the root of gh-pages
54
+ folder: docs/_build/html # Ensure this points to the html folder
55
+ clean: true # Deletes old files before deployment
@@ -0,0 +1,43 @@
1
+ name: Auto patch tag
2
+
3
+ # On every merge to main, create the next patch tag (vX.Y.Z+1). These tags
4
+ # are NOT releases, so they never trigger publish.yml — they just advance the
5
+ # version reported by setuptools-scm between PyPI releases. Tags pushed with
6
+ # GITHUB_TOKEN do not trigger other workflows, so there is no publish risk.
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+
13
+ jobs:
14
+ tag:
15
+ # Never runs on forks.
16
+ if: github.repository == 'NOC-OBG-Autonomy/pelagos-py'
17
+ runs-on: ubuntu-latest
18
+
19
+ permissions:
20
+ contents: write # required to push the new tag
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ with:
25
+ fetch-depth: 0
26
+
27
+ - name: Create next patch tag
28
+ run: |
29
+ git fetch --tags --force
30
+ LATEST=$(git tag --list 'v[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | head -n1)
31
+ if [ -z "$LATEST" ]; then
32
+ echo "::notice::No version tag found. Create the initial release (v0.0.0) before auto-bumping."
33
+ exit 0
34
+ fi
35
+ VER="${LATEST#v}"
36
+ MAJOR="${VER%%.*}"
37
+ REST="${VER#*.}"
38
+ MINOR="${REST%%.*}"
39
+ PATCH="${REST#*.}"
40
+ NEXT="v${MAJOR}.${MINOR}.$((PATCH + 1))"
41
+ echo "Latest tag $LATEST -> new tag $NEXT"
42
+ git tag "$NEXT"
43
+ git push origin "$NEXT"
@@ -0,0 +1,59 @@
1
+ name: Publish to PyPI
2
+
3
+ # Publishing is INTENTIONAL: it only happens when a maintainer creates a
4
+ # GitHub Release on the canonical repo. setuptools-scm turns the release tag
5
+ # (e.g. v0.1.0) into the package version. By convention only minor/major
6
+ # releases (patch == 0, i.e. vX.Y.0) are published; patch tags created
7
+ # automatically on merge are ignored.
8
+
9
+ on:
10
+ release:
11
+ types: [published]
12
+
13
+ jobs:
14
+ publish:
15
+ # Never runs on forks — only the canonical repo can publish.
16
+ if: github.repository == 'NOC-OBG-Autonomy/pelagos-py'
17
+ runs-on: ubuntu-latest
18
+
19
+ # GitHub environment: add required reviewers / tag restrictions here for
20
+ # an extra human gate before anything reaches PyPI.
21
+ environment:
22
+ name: pypi
23
+ url: https://pypi.org/p/pelagos_py
24
+
25
+ permissions:
26
+ id-token: write # required for PyPI Trusted Publishing (OIDC)
27
+
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ with:
31
+ fetch-depth: 0 # setuptools-scm needs full history + tags
32
+
33
+ - name: Gate on release version (publish only vX.Y.0)
34
+ id: gate
35
+ run: |
36
+ TAG="${GITHUB_REF_NAME#v}"
37
+ PATCH="${TAG##*.}"
38
+ if [ "$PATCH" = "0" ]; then
39
+ echo "publish=true" >> "$GITHUB_OUTPUT"
40
+ echo "Release $GITHUB_REF_NAME is a minor/major release -> publishing."
41
+ else
42
+ echo "publish=false" >> "$GITHUB_OUTPUT"
43
+ echo "::notice::Release $GITHUB_REF_NAME has patch != 0 -> skipping PyPI publish by convention."
44
+ fi
45
+
46
+ - uses: actions/setup-python@v5
47
+ if: steps.gate.outputs.publish == 'true'
48
+ with:
49
+ python-version: "3.12"
50
+
51
+ - name: Build sdist and wheel
52
+ if: steps.gate.outputs.publish == 'true'
53
+ run: |
54
+ python -m pip install --upgrade build
55
+ python -m build
56
+
57
+ - name: Publish to PyPI
58
+ if: steps.gate.outputs.publish == 'true'
59
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,43 @@
1
+ name: Run Pytest
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "**"
7
+ pull_request:
8
+ branches:
9
+ - "**"
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ os: ["ubuntu-latest", "macos-latest", "windows-latest"]
17
+ # python-version: ["3.11", "3.12", "3.13", "3.14"]
18
+ python-version: ["3.14"]
19
+
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+
28
+ - name: Install dependencies
29
+ run: |
30
+ pip install -e .[test]
31
+
32
+ - name: Run tests
33
+ run: |
34
+ pytest tests/ -v
35
+
36
+ # pytest tests/ -v --cov-report xml --cov=NOCAT
37
+ # - name: Upload coverage to Codecov
38
+ # uses: codecov/codecov-action@v4
39
+ # with:
40
+ # fail_ci_if_error: false
41
+ # flags: pytest
42
+ # files: ./coverage.xml
43
+ # token: ${{ secrets.CODECOV_TOKEN }} # required
@@ -0,0 +1,110 @@
1
+ # OS Generated Files
2
+ .DS_Store
3
+
4
+ # Project Specific
5
+ *.nc
6
+ data/
7
+ /data/
8
+ testing/
9
+ /testing/
10
+
11
+ # Keep test data (these are reduced size .nc files for unit testing)
12
+ !tests/test_data/*.nc
13
+
14
+ # Python Core & Compilation
15
+ __pycache__/
16
+ *.py[cod]
17
+ *$py.class
18
+ *.so
19
+ .Python
20
+
21
+ # Environments & Dependency Management
22
+ .env
23
+ .venv
24
+ env/
25
+ venv/
26
+ ENV/
27
+ env.bak/
28
+ venv.bak/
29
+ .pdm.toml
30
+ .pdm-python
31
+ .pdm-build/
32
+ __pypackages__/
33
+
34
+ # Distribution & Packaging
35
+ build/
36
+ develop-eggs/
37
+ dist/
38
+ downloads/
39
+ eggs/
40
+ .eggs/
41
+ lib/
42
+ lib64/
43
+ parts/
44
+ sdist/
45
+ var/
46
+ wheels/
47
+ share/python-wheels/
48
+ *.egg-info/
49
+ .installed.cfg
50
+ *.egg
51
+ MANIFEST
52
+ *.manifest
53
+ *.spec
54
+ pip-log.txt
55
+ pip-delete-this-directory.txt
56
+
57
+ # Testing & Coverage
58
+ htmlcov/
59
+ .tox/
60
+ .nox/
61
+ .coverage
62
+ .coverage.*
63
+ .cache
64
+ nosetests.xml
65
+ coverage.xml
66
+ *.cover
67
+ *.py,cover
68
+ .hypothesis/
69
+ .pytest_cache/
70
+ cover/
71
+
72
+ # Jupyter & Notebooks
73
+ .ipynb_checkpoints
74
+ profile_default/
75
+ ipython_config.py
76
+ *.sage.py
77
+
78
+ # Databases & Logs
79
+ *.log
80
+ local_settings.py
81
+ db.sqlite3
82
+ db.sqlite3-journal
83
+
84
+ # Web Frameworks & Background Tasks
85
+ instance/
86
+ .webassets-cache
87
+ .scrapy
88
+ docs/_build/
89
+ celerybeat-schedule
90
+ celerybeat.pid
91
+
92
+ # Editors, IDEs & Tooling
93
+ .spyderproject
94
+ .spyproject
95
+ .ropeproject
96
+ .idea/
97
+ .pybuilder/
98
+ target/
99
+ /site
100
+ .mypy_cache/
101
+ .dmypy.json
102
+ dmypy.json
103
+ .pyre/
104
+ .pytype/
105
+ cython_debug/
106
+ .pypirc
107
+ *.mo
108
+ *.pot
109
+ src/pelagos_py/_version.py
110
+ .vscode/
@@ -0,0 +1,15 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Python Debugger: main.py File",
9
+ "type": "debugpy",
10
+ "request": "launch",
11
+ "program": "${workspaceFolder}/src/pelagos_py/main.py",
12
+ "console": "integratedTerminal"
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "python-envs.defaultEnvManager": "ms-python.python:conda",
3
+ "python-envs.defaultPackageManager": "ms-python.python:conda"
4
+ }
@@ -0,0 +1,51 @@
1
+ # This CITATION.cff file was generated with cffinit.
2
+ # Visit https://bit.ly/cffinit to generate yours today!
3
+
4
+ cff-version: 1.2.0
5
+ title: Pelagos_py
6
+ message: >-
7
+ If you use this software, please cite it using the
8
+ metadata from this file.
9
+ type: software
10
+ authors:
11
+ - given-names: Adam
12
+ family-names: Ward
13
+ affiliation: National Oceanography Centre
14
+ orcid: 'https://orcid.org/0009-0008-3463-2694'
15
+ - given-names: Daniel
16
+ family-names: Bangay
17
+ affiliation: National Oceanography Centre
18
+ orcid: 'https://orcid.org/0009-0000-4285-1952'
19
+ - given-names: Louis
20
+ family-names: Clement
21
+ orcid: 'https://orcid.org/0000-0002-6935-9455'
22
+ affiliation: National Oceanography Centre
23
+ - given-names: Colin
24
+ family-names: Sauze
25
+ affiliation: National Oceanography Centre
26
+ orcid: 'https://orcid.org/0000-0001-5368-9217'
27
+ - given-names: Filipa
28
+ family-names: Carvalho
29
+ orcid: 'https://orcid.org/0000-0002-8355-4329'
30
+ affiliation: National Oceanography Centre
31
+ - given-names: Flavien
32
+ family-names: Petit
33
+ orcid: 'https://orcid.org/0000-0002-2068-7933'
34
+ affiliation: National Oceanography Centre
35
+ - given-names: Hans
36
+ family-names: Hilder
37
+ orcid: 'https://orcid.org/0009-0008-8882-0754'
38
+ affiliation: National Oceanography Centre
39
+ - given-names: Nathan
40
+ family-names: Briggs
41
+ orcid: 'https://orcid.org/0000-0003-1549-1386'
42
+ affiliation: National Oceanography Centre
43
+ - given-names: Callum
44
+ family-names: Rollo
45
+ affiliation: ' Voice of the Ocean Foundation'
46
+ orcid: 'https://orcid.org/0000-0002-5134-7886'
47
+ - given-names: Aaron
48
+ family-names: Mau
49
+ affiliation: Voice of the Ocean Foundation
50
+ repository-code: 'https://github.com/NOC-OBG-Autonomy/pelagos_py'
51
+ license: Apache-2.0
@@ -0,0 +1,66 @@
1
+ <!-- omit in toc -->
2
+ # Contributing to pelagos_py
3
+
4
+ First off, thanks for taking the time to contribute!
5
+
6
+ All types of contributions are encouraged and valued. Please make sure to read the relevant section of this document before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved.
7
+
8
+ <!-- omit in toc -->
9
+ ## Table of Contents
10
+
11
+ - [I Have a Question](#i-have-a-question)
12
+ - [I Want To Contribute](#i-want-to-contribute)
13
+ - [Reporting Bugs](#reporting-bugs)
14
+
15
+ ## I Have a Question
16
+
17
+ Before you ask a question, it is best to search for existing [Issues](https://github.com/NOC-OBG-Autonomy/pelagos_py/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
18
+
19
+ If you then still feel the need to ask a question and need clarification, we recommend the following:
20
+
21
+ - Open an [Issue](https://github.com/NOC-OBG-Autonomy/pelagos_py/issues/new).
22
+ - Provide as much context as you can about what you're running into.
23
+ - Provide project, Python version and details of your Python environment (pip/conda and versions of dependencies).
24
+
25
+ We will then take care of the issue as soon as possible.
26
+
27
+ ## I Want To Contribute
28
+
29
+ > ### Legal Notice <!-- omit in toc -->
30
+ > When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute will be provided under the project's Apache2 license.
31
+
32
+ ### Reporting Bugs
33
+
34
+ <!-- omit in toc -->
35
+ #### Before Submitting a Bug Report
36
+
37
+ A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
38
+
39
+ - Make sure that you are using the latest version.
40
+ - Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions.
41
+ - To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/NOC-OBG-Autonomy/pelagos_py/issues?q=label%3Abug).
42
+ - Collect information about the bug:
43
+ - Stack trace (Traceback)
44
+ - OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
45
+ - Version of Python, package manager (conda/pip etc), depending on what seems relevant.
46
+ - Possibly your input, the output any error messages you are seeing.
47
+ - Can you reliably reproduce the issue?
48
+
49
+ <!-- omit in toc -->
50
+ #### How Do I Submit a Good Bug Report?
51
+
52
+ We use GitHub issues to track bugs and errors. If you run into an issue with the project:
53
+
54
+ - Open an [Issue](https://github.com/NOC-OBG-Autonomy/pelagos_py/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
55
+ - Explain the behavior you would expect and the actual behavior.
56
+ - Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
57
+ - Provide the information you collected in the previous section.
58
+
59
+ Once it's filed:
60
+
61
+ - The project team will label the issue accordingly.
62
+ - A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps. Bugs will not be addressed until they are reproducible.
63
+
64
+ <!-- omit in toc -->
65
+ ## Attribution
66
+ This guide is based on the [contributing.md](https://contributing.md/generator)!
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025-2026 The National Oceanography Centre and The Contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.