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)

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.0.tar.gz (17.6 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.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: selfshadingcorrection-1.0.0.tar.gz
  • Upload date:
  • Size: 17.6 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.0.tar.gz
Algorithm Hash digest
SHA256 3a6dcc4233cbcf840bbdb9512fc4e51837e330dac608f82c4f0d19e0576ae087
MD5 b6f49e132ad7b25fe9a2f56be0b59aeb
BLAKE2b-256 9e6f6b7fecea980b29f6b17dd5c36bf0db6204be375b33fa36a741fb3f270ea1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for selfshadingcorrection-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6b1df59946c09e82ac55871e17ae8fd2a155346ce531a53d3c16a6a3b86523
MD5 aef864b721933772fff19c34db4408ec
BLAKE2b-256 c260100efaae657892165bc5c2f54c653ae000c152a0ee1f701d2d2d6cd522f9

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