Self-Shading Correction
Description
Applies self-shading correction to water-leaving reflectance measurements collected through the skylight-blocked approach, following Yu et al. (2021).
- Valid for wavelengths between 300 and 1000 nm. (Extending beyond this range requires additional water backscattering data)
- Input reflectance must include bands at or near 440 nm, 550 nm, and 750 nm. (The closest available wavelengths are used)
Home page: https://github.com/yulunwu8/selfshadingcorrection
Installation
pip3 install selfshadingcorrection
Quick Start
import selfshadingcorrection as ssc
file_in = 'Rw_shaded.csv' # Path to input CSV with shaded water-leaving reflectance.
file_out = 'Rw_corrected.csv' # Path to output CSV with self-shading-corrected reflectance.
start_column = 10 # Index of the first reflectance column (0-based).
sza_column = 'sza' # Name of the column containing solar zenith angle (in degrees).
radius = 0.05 # Radius of the instrument cone (in meters).
ssc.run(file_in, file_out, start_column, sza_column, radius)
Input Data Format
- Sample: See example input and output data at in the selfshadingcorrection/tests folder.
- Metadata columns (before start_column): Must include a column for the solar zenith angle in degrees. All metadata columns will be copied to the output as is.
- Reflectance columns (starting at start_column): Column names should follow the format Rxxx, where xxx is the wavelength in nm.
- Reflectance values: Bi-hemispherical water-leaving reflectance (dimensionless).
Reference
Yu, X., Lee, Z., Shang, Z., Lin, H., Lin, G., 2021. A simple and robust shade correction scheme for remote sensing reflectance obtained by the skylight-blocked approach. Opt. Express 29, 470. https://doi.org/10.1364/OE.412887
Others
For questions and suggestions (which I'm always open to!), please open an issue or email Yulun at yulunwu8@gmail.com
Release files for selfshadingcorrection 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| selfshadingcorrection-1.0.2.tar.gz | 17.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| selfshadingcorrection-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.3 kB
Release files / selfshadingcorrection-1.0.2.tar.gz
| Download URL | selfshadingcorrection-1.0.2.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8b45178056a7d39b1602ccdfe7f55d73b1fc6d2d3ac6f543d1b8dc91ae5a45d
|
|
BLAKE2b-256 checksum How to use checksums |
0257e5ba8397ac4b0f0cf0cd143ea2a56372ca1f78196d59a025b7a5540a3cff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / selfshadingcorrection-1.0.2-py3-none-any.whl
| Download URL | selfshadingcorrection-1.0.2-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f753b370363753548533ef9d3787b18e042efa7a918ee9259906d9d1107407f0
|
|
BLAKE2b-256 checksum How to use checksums |
dc536e993c42b25c8be2ee9aee78f743de4dd4b367d7a19138f4b7301a07fc7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|