Skip to main content

Applies self-shading correction to water-leaving reflectance measurements collected through the skylight-blocked approach

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selfshadingcorrection-1.0.2.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

selfshadingcorrection-1.0.2-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file selfshadingcorrection-1.0.2.tar.gz.

File metadata

  • Download URL: selfshadingcorrection-1.0.2.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for selfshadingcorrection-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d8b45178056a7d39b1602ccdfe7f55d73b1fc6d2d3ac6f543d1b8dc91ae5a45d
MD5 1654983a4f97587e991d0e3b718f03b5
BLAKE2b-256 0257e5ba8397ac4b0f0cf0cd143ea2a56372ca1f78196d59a025b7a5540a3cff

See more details on using hashes here.

File details

Details for the file selfshadingcorrection-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for selfshadingcorrection-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f753b370363753548533ef9d3787b18e042efa7a918ee9259906d9d1107407f0
MD5 ce460a85f2438a732ffa8fed37d05fb0
BLAKE2b-256 dc536e993c42b25c8be2ee9aee78f743de4dd4b367d7a19138f4b7301a07fc7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page