pydirectional 0.1.3__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 (123) hide show
  1. pydirectional-0.1.3/.github/workflows/publish.yml +105 -0
  2. pydirectional-0.1.3/.github/workflows/tests.yml +80 -0
  3. pydirectional-0.1.3/.gitignore +124 -0
  4. pydirectional-0.1.3/.pre-commit-config.yaml +7 -0
  5. pydirectional-0.1.3/.readthedocs.yaml +16 -0
  6. pydirectional-0.1.3/LICENSE +165 -0
  7. pydirectional-0.1.3/MANIFEST.in +2 -0
  8. pydirectional-0.1.3/PKG-INFO +114 -0
  9. pydirectional-0.1.3/README.md +72 -0
  10. pydirectional-0.1.3/_make_LUTs/Hapke_validation.py +46 -0
  11. pydirectional-0.1.3/_make_LUTs/RTLS_kernel_integration.py +348 -0
  12. pydirectional-0.1.3/_make_LUTs/hemi_int_analysis.py +605 -0
  13. pydirectional-0.1.3/docs/Makefile +20 -0
  14. pydirectional-0.1.3/docs/conf.py +87 -0
  15. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.Hapke.rst +7 -0
  16. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.Maignan.rst +7 -0
  17. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.RPV.rst +7 -0
  18. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.RPV_omega.rst +7 -0
  19. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.RTLS.rst +7 -0
  20. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.Roujean.rst +7 -0
  21. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.base.rst +7 -0
  22. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.brdf_model_factory.rst +7 -0
  23. pydirectional-0.1.3/docs/content/api/brdf_model.brdf_forward_model.rst +22 -0
  24. pydirectional-0.1.3/docs/content/api/brdf_model.comparisons.rst +7 -0
  25. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.brdf_solver.rst +7 -0
  26. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.class_template.rst +7 -0
  27. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.individual_pixels.find_angles.rst +7 -0
  28. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.individual_pixels.fit_BRDF.rst +7 -0
  29. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.individual_pixels.fit_BRDF_no_aerosols.rst +7 -0
  30. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.individual_pixels.measurement_func.rst +7 -0
  31. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.individual_pixels.measurement_func_transfer.rst +7 -0
  32. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.individual_pixels.rst +19 -0
  33. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.resample_script.rst +7 -0
  34. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.rst +30 -0
  35. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.solvePARABOLA_acb.rst +7 -0
  36. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.solvePARABOLA_mes.rst +7 -0
  37. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.transfer_uncertainty.rst +7 -0
  38. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.transfer_uncertainty_nob.rst +7 -0
  39. pydirectional-0.1.3/docs/content/api/brdf_model.old_code.truths_sim.rst +7 -0
  40. pydirectional-0.1.3/docs/content/api/brdf_model.plotting.rst +7 -0
  41. pydirectional-0.1.3/docs/content/api/brdf_model.rst +26 -0
  42. pydirectional-0.1.3/docs/content/api/brdf_model.utilities.rst +7 -0
  43. pydirectional-0.1.3/docs/content/developer/developer_guide.rst +110 -0
  44. pydirectional-0.1.3/docs/content/getting_started.rst +12 -0
  45. pydirectional-0.1.3/docs/content/readme.rst +2 -0
  46. pydirectional-0.1.3/docs/content/theory/index.rst +12 -0
  47. pydirectional-0.1.3/docs/content/theory/models.rst +169 -0
  48. pydirectional-0.1.3/docs/content/theory/quantities.rst +129 -0
  49. pydirectional-0.1.3/docs/content/user_guide/data_containers.rst +305 -0
  50. pydirectional-0.1.3/docs/content/user_guide/forward_models.rst +166 -0
  51. pydirectional-0.1.3/docs/content/user_guide/helper_classes.rst +155 -0
  52. pydirectional-0.1.3/docs/content/user_guide/index.rst +13 -0
  53. pydirectional-0.1.3/docs/index.rst +44 -0
  54. pydirectional-0.1.3/docs/make.bat +36 -0
  55. pydirectional-0.1.3/examples/RTLS_example.py +59 -0
  56. pydirectional-0.1.3/examples/RTLS_polar_plot_650nm.png +0 -0
  57. pydirectional-0.1.3/examples/RTLS_polar_plot_example.py +89 -0
  58. pydirectional-0.1.3/examples/brdf_fitting_example.py +40 -0
  59. pydirectional-0.1.3/examples/run_rpv_example.py +38 -0
  60. pydirectional-0.1.3/pydirectional/__init__.py +71 -0
  61. pydirectional-0.1.3/pydirectional/brdf_data/__init__.py +0 -0
  62. pydirectional-0.1.3/pydirectional/brdf_data/brdf_measurements.py +977 -0
  63. pydirectional-0.1.3/pydirectional/brdf_data/brdf_parameters.py +627 -0
  64. pydirectional-0.1.3/pydirectional/brdf_data/container.py +172 -0
  65. pydirectional-0.1.3/pydirectional/brdf_data/tests/__init__.py +0 -0
  66. pydirectional-0.1.3/pydirectional/brdf_data/tests/test_brdf_measurements.py +706 -0
  67. pydirectional-0.1.3/pydirectional/brdf_data/tests/test_brdf_parameters.py +498 -0
  68. pydirectional-0.1.3/pydirectional/brdf_data/tests/test_container.py +169 -0
  69. pydirectional-0.1.3/pydirectional/brdf_forward_model/Hapke.py +820 -0
  70. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/Hapke6S_BHR_data.nc +0 -0
  71. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/Hapke6S_BRFsky_data.nc +0 -0
  72. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/Hapke6S_DHR_data.nc +0 -0
  73. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/HapkeLibradtran_BHR_data.nc +0 -0
  74. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/HapkeLibradtran_BRFsky_data.nc +0 -0
  75. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/HapkeLibradtran_DHR_data.nc +0 -0
  76. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RPV_B_BHR_data.nc +0 -0
  77. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RPV_B_BRFsky_data.nc +0 -0
  78. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RPV_B_DHR_data.nc +0 -0
  79. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RPV_MF_BHR_data.nc +0 -0
  80. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RPV_MF_BRFsky_data.nc +0 -0
  81. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RPV_MF_DHR_data.nc +0 -0
  82. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RTLS_Sparse_BRFsky_data.csv +90 -0
  83. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RTLS_Thick_BRFsky_data.csv +90 -0
  84. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RTLS_maignan_BRFsky_data.csv +80 -0
  85. pydirectional-0.1.3/pydirectional/brdf_forward_model/LUTs/RTLS_roujean_BRFsky_data.csv +80 -0
  86. pydirectional-0.1.3/pydirectional/brdf_forward_model/Maignan.py +153 -0
  87. pydirectional-0.1.3/pydirectional/brdf_forward_model/RPV.py +297 -0
  88. pydirectional-0.1.3/pydirectional/brdf_forward_model/RPV_omega.py +116 -0
  89. pydirectional-0.1.3/pydirectional/brdf_forward_model/RTLS.py +403 -0
  90. pydirectional-0.1.3/pydirectional/brdf_forward_model/Roujean.py +151 -0
  91. pydirectional-0.1.3/pydirectional/brdf_forward_model/__init__.py +0 -0
  92. pydirectional-0.1.3/pydirectional/brdf_forward_model/base.py +637 -0
  93. pydirectional-0.1.3/pydirectional/brdf_forward_model/brdf_model_factory.py +53 -0
  94. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/__init__.py +0 -0
  95. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_Hapke.py +1031 -0
  96. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_Maignan.py +156 -0
  97. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_RPV.py +484 -0
  98. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_RPV_omega.py +250 -0
  99. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_RTLS.py +446 -0
  100. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_Roujean.py +156 -0
  101. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_base.py +664 -0
  102. pydirectional-0.1.3/pydirectional/brdf_forward_model/tests/test_brdf_model_factory.py +28 -0
  103. pydirectional-0.1.3/pydirectional/comparisons.py +239 -0
  104. pydirectional-0.1.3/pydirectional/config.py +15 -0
  105. pydirectional-0.1.3/pydirectional/corrections.py +137 -0
  106. pydirectional-0.1.3/pydirectional/etc/default_config.yaml +71 -0
  107. pydirectional-0.1.3/pydirectional/fitting.py +131 -0
  108. pydirectional-0.1.3/pydirectional/plotting.py +377 -0
  109. pydirectional-0.1.3/pydirectional/tests/__init__.py +0 -0
  110. pydirectional-0.1.3/pydirectional/tests/test_comparisons.py +282 -0
  111. pydirectional-0.1.3/pydirectional/tests/test_corrections.py +80 -0
  112. pydirectional-0.1.3/pydirectional/tests/test_fitting.py +448 -0
  113. pydirectional-0.1.3/pydirectional/tests/test_plotting.py +381 -0
  114. pydirectional-0.1.3/pydirectional/utilities.py +79 -0
  115. pydirectional-0.1.3/pydirectional.egg-info/PKG-INFO +114 -0
  116. pydirectional-0.1.3/pydirectional.egg-info/SOURCES.txt +121 -0
  117. pydirectional-0.1.3/pydirectional.egg-info/dependency_links.txt +1 -0
  118. pydirectional-0.1.3/pydirectional.egg-info/requires.txt +27 -0
  119. pydirectional-0.1.3/pydirectional.egg-info/top_level.txt +1 -0
  120. pydirectional-0.1.3/pyproject.toml +93 -0
  121. pydirectional-0.1.3/setup.cfg +4 -0
  122. pydirectional-0.1.3/tests/TESTING_GUIDELINES.md +280 -0
  123. pydirectional-0.1.3/tests/conftest.py +21 -0
@@ -0,0 +1,105 @@
1
+ name: Publish to PyPI
2
+
3
+ # Triggered by pushing a v* tag, or manually via the "Run workflow" button.
4
+ on:
5
+ push:
6
+ tags: ["v*"]
7
+ workflow_dispatch:
8
+ inputs:
9
+ confirm:
10
+ description: "Type 'publish' to confirm release"
11
+ required: true
12
+
13
+ jobs:
14
+ # -----------------------------------------------------------------------
15
+ # Guard: manual runs require the confirmation input.
16
+ # -----------------------------------------------------------------------
17
+ check:
18
+ name: Check confirmation
19
+ runs-on: ubuntu-latest
20
+ if: >
21
+ github.event_name == 'push' ||
22
+ github.event.inputs.confirm == 'publish'
23
+ steps:
24
+ - run: echo "Confirmed — proceeding with release."
25
+
26
+ # -----------------------------------------------------------------------
27
+ # Test gate: don't publish if tests fail.
28
+ # -----------------------------------------------------------------------
29
+ test:
30
+ name: Tests (Python 3.13)
31
+ needs: check
32
+ runs-on: ubuntu-latest
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - uses: actions/setup-python@v5
36
+ with:
37
+ python-version: "3.13"
38
+ cache: pip
39
+ - name: Configure NPL package registry
40
+ run: |
41
+ echo -e "machine gitlab.npl.co.uk\nlogin gitlab-ci-token\npassword ${{ secrets.NPL_GITLAB_REMOVED_TOKEN }}" >> ~/.netrc
42
+ - run: pip install -e ".[dev]"
43
+ - run: pytest --cov=pydirectional
44
+
45
+ # -----------------------------------------------------------------------
46
+ # Build source distribution and wheel.
47
+ # -----------------------------------------------------------------------
48
+ build:
49
+ name: Build distribution
50
+ needs: test
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - uses: actions/checkout@v4
54
+ with:
55
+ fetch-depth: 0 # full history so setuptools_scm picks up the tag
56
+
57
+ - uses: actions/setup-python@v5
58
+ with:
59
+ python-version: "3.13"
60
+
61
+ - name: Build
62
+ run: |
63
+ pip install build
64
+ python -m build
65
+
66
+ - name: Store distribution packages
67
+ uses: actions/upload-artifact@v4
68
+ with:
69
+ name: dist
70
+ path: dist/
71
+
72
+ # -----------------------------------------------------------------------
73
+ # Publish to PyPI via trusted publisher (OIDC — no API token needed).
74
+ #
75
+ # One-time setup required in the PyPI project settings:
76
+ # Publisher: GitHub Actions
77
+ # Owner: <your-github-org>
78
+ # Repository: pydirectional
79
+ # Workflow: publish.yml
80
+ #
81
+ # For a private/internal registry, replace the `repository-url` below and
82
+ # use a repository secret instead of trusted publishing.
83
+ # -----------------------------------------------------------------------
84
+ publish:
85
+ name: Publish to PyPI
86
+ needs: build
87
+ runs-on: ubuntu-latest
88
+ environment:
89
+ name: pypi
90
+ url: https://pypi.org/p/pydirectional
91
+ permissions:
92
+ id-token: write # required for OIDC trusted publishing
93
+
94
+ steps:
95
+ - name: Download distribution packages
96
+ uses: actions/download-artifact@v4
97
+ with:
98
+ name: dist
99
+ path: dist/
100
+
101
+ - name: Publish to PyPI
102
+ uses: pypa/gh-action-pypi-publish@release/v1
103
+ # Uncomment for a private registry:
104
+ # with:
105
+ # repository-url: https://your-registry/simple/
@@ -0,0 +1,80 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ name: "Python ${{ matrix.python-version }}"
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ python-version: ["3.13"]
17
+ include:
18
+ # Full matrix on manually-triggered runs and tags only
19
+ - python-version: "3.11"
20
+ if-tag-or-manual: true
21
+ - python-version: "3.12"
22
+ if-tag-or-manual: true
23
+
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+
27
+ - name: Set up Python ${{ matrix.python-version }}
28
+ uses: actions/setup-python@v5
29
+ with:
30
+ python-version: ${{ matrix.python-version }}
31
+ cache: pip
32
+
33
+ - name: Configure NPL package registry
34
+ run: |
35
+ echo -e "machine gitlab.npl.co.uk\nlogin gitlab-ci-token\npassword ${{ secrets.NPL_GITLAB_REMOVED_TOKEN }}" >> ~/.netrc
36
+
37
+ - name: Install dependencies
38
+ run: pip install -e ".[dev]"
39
+
40
+ - name: Run tests
41
+ run: |
42
+ mkdir -p test_report
43
+ pytest \
44
+ --html=test_report/report.html \
45
+ --cov-report html:test_report/cov_report \
46
+ --cov-report xml:test_report/coverage.xml \
47
+ --junitxml=test_report/junit.xml \
48
+ --cov=pydirectional
49
+
50
+ - name: Upload test report
51
+ if: always()
52
+ uses: actions/upload-artifact@v4
53
+ with:
54
+ name: test-report-py${{ matrix.python-version }}
55
+ path: test_report/
56
+ retention-days: 7
57
+
58
+ - name: Upload coverage to Codecov
59
+ if: matrix.python-version == '3.13'
60
+ uses: codecov/codecov-action@v4
61
+ with:
62
+ files: test_report/coverage.xml
63
+ fail_ci_if_error: false
64
+
65
+ lint:
66
+ name: Lint
67
+ runs-on: ubuntu-latest
68
+ steps:
69
+ - uses: actions/checkout@v4
70
+ - uses: actions/setup-python@v5
71
+ with:
72
+ python-version: "3.13"
73
+ cache: pip
74
+ - run: pip install -e ".[dev]"
75
+ - name: ruff format
76
+ run: ruff format --check pydirectional
77
+ - name: ruff lint
78
+ run: ruff check pydirectional
79
+ - name: mypy
80
+ run: mypy pydirectional
@@ -0,0 +1,124 @@
1
+ # Mypy cache
2
+ .mypy_cache
3
+
4
+ # Scratch examples (local experiments, not committed)
5
+ examples/scratch/
6
+
7
+ # Compiles docs for gitlab pages
8
+ public
9
+ latex
10
+
11
+ # Visual studio / pycharm folders
12
+ .idea
13
+ .vscode
14
+
15
+ # Byte-compiled / optimized / DLL files
16
+ __pycache__/
17
+ *.py[cod]
18
+ *$py.class
19
+
20
+ # C extensions
21
+ *.so
22
+
23
+ # Distribution / packaging
24
+ .Python
25
+ env/
26
+ build/
27
+ develop-eggs/
28
+ dist/
29
+ downloads/
30
+ eggs/
31
+ .eggs/
32
+ lib/
33
+ lib64/
34
+ parts/
35
+ sdist/
36
+ var/
37
+ wheels/
38
+ *.egg-info/
39
+ .installed.cfg
40
+ *.egg
41
+
42
+ # PyInstaller
43
+ # Usually these files are written by a python script from a template
44
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
45
+ *.manifest
46
+ *.spec
47
+
48
+ # Installer logs
49
+ pip-log.txt
50
+ pip-delete-this-directory.txt
51
+
52
+ # Unit test / coverage reports
53
+ htmlcov/
54
+ .tox/
55
+ .coverage
56
+ .coverage.*
57
+ .cache
58
+ nosetests.xml
59
+ coverage.xml
60
+ *.cover
61
+ .hypothesis/
62
+ .pytest_cache/
63
+
64
+ # Translations
65
+ *.mo
66
+ *.pot
67
+
68
+ # Django stuff:
69
+ *.log
70
+ local_settings.py
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+ docs/content/developer/generated
82
+ docs/content/user/generated
83
+
84
+ # PyBuilder
85
+ target/
86
+
87
+ # Jupyter Notebook
88
+ .ipynb_checkpoints
89
+
90
+ # pyenv
91
+ .python-version
92
+
93
+ # celery beat schedule file
94
+ celerybeat-schedule
95
+
96
+ # SageMath parsed files
97
+ *.sage.py
98
+
99
+ # dotenv
100
+ .env
101
+
102
+ # virtualenv
103
+ .venv
104
+ venv/
105
+ ENV/
106
+
107
+ # Spyder project settings
108
+ .spyderproject
109
+ .spyproject
110
+
111
+ # Rope project settings
112
+ .ropeproject
113
+
114
+ # mkdocs documentation
115
+ /site
116
+
117
+ # mypy
118
+ .mypy_cache/
119
+
120
+ # ruff
121
+ .ruff_cache/
122
+
123
+ # IDE settings
124
+ .vscode/.git.old
@@ -0,0 +1,7 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.11.9
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
@@ -0,0 +1,16 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: ubuntu-24.04
5
+ tools:
6
+ python: "3.13"
7
+
8
+ sphinx:
9
+ configuration: docs/conf.py
10
+
11
+ python:
12
+ install:
13
+ - method: pip
14
+ path: .
15
+ extra_requirements:
16
+ - docs
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,2 @@
1
+ include README.md
2
+ include LICENSE
@@ -0,0 +1,114 @@
1
+ Metadata-Version: 2.4
2
+ Name: pydirectional
3
+ Version: 0.1.3
4
+ Summary: Bidirectional Reflectance Distribution Function (BRDF) modeling tools
5
+ Author-email: MetEOR Toolkit Team <team@comet-toolkit.org>
6
+ Project-URL: Homepage, https://comet-toolkit.org
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
9
+ Classifier: Programming Language :: Python
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Requires-Python: >=3.11
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: numpy
17
+ Requires-Dist: matplotlib
18
+ Requires-Dist: pandas
19
+ Requires-Dist: scipy
20
+ Requires-Dist: matheo
21
+ Requires-Dist: curepy
22
+ Requires-Dist: xarray
23
+ Requires-Dist: netcdf4
24
+ Requires-Dist: processor_tools
25
+ Provides-Extra: dev
26
+ Requires-Dist: ruff; extra == "dev"
27
+ Requires-Dist: mypy; extra == "dev"
28
+ Requires-Dist: pre-commit; extra == "dev"
29
+ Requires-Dist: pytest; extra == "dev"
30
+ Requires-Dist: pytest-html; extra == "dev"
31
+ Requires-Dist: pytest-cov; extra == "dev"
32
+ Requires-Dist: ipython; extra == "dev"
33
+ Provides-Extra: docs
34
+ Requires-Dist: sphinx; extra == "docs"
35
+ Requires-Dist: sphinx_rtd_theme; extra == "docs"
36
+ Requires-Dist: sphinx_book_theme; extra == "docs"
37
+ Requires-Dist: sphinx_design; extra == "docs"
38
+ Requires-Dist: sphinx_automodapi; extra == "docs"
39
+ Requires-Dist: myst_parser; extra == "docs"
40
+ Requires-Dist: ipython; extra == "docs"
41
+ Dynamic: license-file
42
+
43
+ # pydirectional
44
+
45
+ BRDF (Bidirectional Reflectance Distribution Function) modeling tools.
46
+
47
+ `pydirectional` provides forward models, fitting routines, and utilities for
48
+ working with BRDF measurements and standard semi-empirical models (RTLS, RPV,
49
+ Hapke, and others).
50
+
51
+ > **Warning:** This software is in beta. Results should be used with
52
+ > caution. Please share any feedback via the issue tracker.
53
+
54
+ ## Usage
55
+
56
+ ### Virtual environment
57
+
58
+ It is always recommended to use a virtual environment for each Python project.
59
+ Use your preferred environment manager, or create one with:
60
+
61
+ ```bash
62
+ python -m venv venv
63
+ ```
64
+
65
+ Activate it on Windows with `venv\Scripts\activate`, or on macOS/Linux with
66
+ `source venv/bin/activate`.
67
+
68
+ ### Installation
69
+
70
+ Install the package and its core dependencies:
71
+
72
+ ```bash
73
+ pip install -e .
74
+ ```
75
+
76
+ Optional extras are available depending on your use case:
77
+
78
+ ```bash
79
+ pip install -e ".[dev]" # Development tools (ruff, mypy, pytest, …)
80
+ pip install -e ".[docs]" # Documentation build (sphinx, …)
81
+ ```
82
+
83
+ ### Development
84
+
85
+ Install the pre-commit hooks after cloning:
86
+
87
+ ```bash
88
+ pre-commit install
89
+ ```
90
+
91
+ When you commit, `ruff` will lint and format your code. If it makes
92
+ corrections the commit will be aborted so you can review the changes — just
93
+ commit again once you are happy.
94
+
95
+ Run the test suite with:
96
+
97
+ ```bash
98
+ pytest
99
+ ```
100
+
101
+ ## Compatibility
102
+
103
+ `pydirectional` requires Python 3.11 or later and is tested on Python 3.11,
104
+ 3.12, and 3.13.
105
+
106
+ ## Licence
107
+
108
+ `pydirectional` is released under the GNU Lesser General Public License v3
109
+ (LGPLv3). See the [LICENSE](LICENSE) file for the full licence text.
110
+
111
+ ## Authors
112
+
113
+ `pydirectional` is developed and maintained by the
114
+ [MetEOR Toolkit Team](mailto:team@comet-toolkit.org).
@@ -0,0 +1,72 @@
1
+ # pydirectional
2
+
3
+ BRDF (Bidirectional Reflectance Distribution Function) modeling tools.
4
+
5
+ `pydirectional` provides forward models, fitting routines, and utilities for
6
+ working with BRDF measurements and standard semi-empirical models (RTLS, RPV,
7
+ Hapke, and others).
8
+
9
+ > **Warning:** This software is in beta. Results should be used with
10
+ > caution. Please share any feedback via the issue tracker.
11
+
12
+ ## Usage
13
+
14
+ ### Virtual environment
15
+
16
+ It is always recommended to use a virtual environment for each Python project.
17
+ Use your preferred environment manager, or create one with:
18
+
19
+ ```bash
20
+ python -m venv venv
21
+ ```
22
+
23
+ Activate it on Windows with `venv\Scripts\activate`, or on macOS/Linux with
24
+ `source venv/bin/activate`.
25
+
26
+ ### Installation
27
+
28
+ Install the package and its core dependencies:
29
+
30
+ ```bash
31
+ pip install -e .
32
+ ```
33
+
34
+ Optional extras are available depending on your use case:
35
+
36
+ ```bash
37
+ pip install -e ".[dev]" # Development tools (ruff, mypy, pytest, …)
38
+ pip install -e ".[docs]" # Documentation build (sphinx, …)
39
+ ```
40
+
41
+ ### Development
42
+
43
+ Install the pre-commit hooks after cloning:
44
+
45
+ ```bash
46
+ pre-commit install
47
+ ```
48
+
49
+ When you commit, `ruff` will lint and format your code. If it makes
50
+ corrections the commit will be aborted so you can review the changes — just
51
+ commit again once you are happy.
52
+
53
+ Run the test suite with:
54
+
55
+ ```bash
56
+ pytest
57
+ ```
58
+
59
+ ## Compatibility
60
+
61
+ `pydirectional` requires Python 3.11 or later and is tested on Python 3.11,
62
+ 3.12, and 3.13.
63
+
64
+ ## Licence
65
+
66
+ `pydirectional` is released under the GNU Lesser General Public License v3
67
+ (LGPLv3). See the [LICENSE](LICENSE) file for the full licence text.
68
+
69
+ ## Authors
70
+
71
+ `pydirectional` is developed and maintained by the
72
+ [MetEOR Toolkit Team](mailto:team@comet-toolkit.org).