PyCoxMunk
A python library for simulating satellite-viewed sea surface reflectances.
The pycoxmunk library computes the sea surface reflectance, using the Cox-Munk method, as expected to be seen from space based on the satellite and weather conditions at the sea surface.
The main purpose of this library is to enable an easy method for computing sea surface reflectance that is applicable
to a wide variety of low-earth and geostationary orbit satellites and sensors. The library is closely linked to the
satpy library that loads, calibrates and produces projection information for many
satellites. Under the hood, pycoxmunk uses dask and
xarray to store and process data. Results are made available via the same satpy
scene used to provide the input satellite images.
As well as computing the sea surface reflectance, pycoxmunk can also compute the four BRDF terms, which can be useful in radiative transfer, cloud and aerosol properties retrieval codes, and other uses such as cloud or sea ice detection.
Installation
pycoxmunk can be installed from PyPI with pip:
pip install pycoxmunk
It is also available from conda-forge for conda installations:
conda install -c conda-forge pycoxmunk
Tests
pycoxmunk comes with a set of scripts for testing the functionality of the library. These are located in the ./Tests/
subdirectory and can be run using pytest:
cd Tests
pytest .
This will run all tests. You can also run just a single test script with, for example, pytest test_CMCalcs.py.
You may first need to install pytest via: conda install pytest.
Once testing is complete, a summary will be displayed. This should indicate that all tests have passed, as well as
potentially listing some warnings depending on your environment and the current status of pycoxmunk's dependencies.
Credits
This code was written by Simon Proud and is based on a fortran implementation of the Cox-Munk algorithm written by Greg McGarragh as part of the ORAC algorithm.
Feedback and Contribution
Feedback, suggestions, bug reports or any other type of contribution is welcome.
If you encounter any problems with this code or the documentation then please file an issue. It may help in debugging any problems to enable satpy's debug mode:
from satpy import debug_on
debug_on()
This will print additional log and diagnostic information.
Suggestions for new features are welcome, but may not always be possible for me to code due to limited time. You can also submit your own pull requests that add features of fix bugs. This is the recommended way to change the library code, rather than emailing me your updates. By submitting a pull request please ensure that your code changes and additions are documented and, where appropriate, covered by tests.
Metadata
Release files for pycoxmunk 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycoxmunk-1.1.0.tar.gz | 42.0 kB | Without provenance | Details for pycoxmunk-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycoxmunk-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pycoxmunk-1.1.0-py3-none-any.whl |
Total release size: 93.2 kB
Release files / pycoxmunk-1.1.0.tar.gz
| Download URL | pycoxmunk-1.1.0.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8860d47c5bb0e8524e646d65a64527bc60cda27158efe083708a2a4ef4c1a41f
|
|
BLAKE2b-256 checksum How to use checksums |
574b1914b788ea6ffa5696814bb874696b465fc1d92edcd7cead6bb2bef72086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / pycoxmunk-1.1.0-py3-none-any.whl
| Download URL | pycoxmunk-1.1.0-py3-none-any.whl |
|---|---|
| Size | 51.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd56f193319c6ded3aee2bd8254fc37fd23eb53437891f07d9a1395e1eb05510
|
|
BLAKE2b-256 checksum How to use checksums |
ae74a9799380700aaa5b345279fec41f4eba69183c859366db82dc23708448a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for pycoxmunk 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.