Skip to main content

L3b Band Shifting Script

Overview

This script performs band shifting of Level-3 binned ocean color data. It combines an IOP L3b file and an Rrs L3b file, computes shifted reflectance at target wavelengths, and writes a new L3b NetCDF output.

Currently runs for L3b files from the following satellites: SeaWiFS, MODIS Aqua, Envisat MERIS, SNPP-VIIRS, VIIRS-NOAA20, VIIRS-NOAA21, Sentinel-3 OLCI A & B


Requirements

Python packages

  • numpy
  • netCDF4
  • h5py

External modules

Must be available in your environment:

  • l3bintools
  • bandshiftL3b_functions.py
  • bricaud_extended.json The A and B coefficients file defining the spectral shape of aph, can be replaced (Note: The Bricaud table has been artifically extended to 900nm, wavelengths beyond 700nm should not be trusted)
  • pace_aw.json absorption of water at each wavelength

Usage

python bandshiftL3b.py \
  --ifile_iop AQUA_MODIS.20040111.L3b.DAY.IOP.nc  \
  --ifile_rrs AQUA_MODIS.20040111.L3b.DAY.RRS.nc  \
  --ifile_chl AQUA_MODIS.20040111.L3b.DAY.CHL.nc  \
  --ofile output_shifted.L3b.nc

Arguments

Required

  • --ifile_iop Input IOP L3b file
  • --ifile_rrs Input Rrs L3b file
  • --ifile_chl Input Chl L3b file
  • --ofile Output band-shifted file

Optional

  • --wavelengths Target bands (default: 412 443 490 510 555 670 765 865)
  • --sat_to Output instrument metadata (default: OCRVC)
  • --platform_to Output platform metadata (default: OCRVC)

What It Does

  • Matches spatial bins between IOP and Rrs files
  • Gets IOPs, applies Modified Melin and Sclep 2015 approach
  • Band-shifts reflectance to requested wavelengths (not band shifting shared bands)
  • Copies AOT + Angstrom products
  • Writes cleaned L3b NetCDF output

Output

A new L3b NetCDF containing:

  • Shifted Rrs bands
  • Updated metadata

Metadata

Release files for l3binbandshift 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for l3binbandshift 1.5.2
File Size Uploaded Provenance Actions
l3binbandshift-1.5.2.tar.gz 21.5 kB Without provenance Details for l3binbandshift-1.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for l3binbandshift 1.5.2
File Interpreter ABI Platform Actions
l3binbandshift-1.5.2-py3-none-any.whl Python 3 none any Details for l3binbandshift-1.5.2-py3-none-any.whl

Total release size: 51.8 kB

Release files / l3binbandshift-1.5.2.tar.gz

Download URL l3binbandshift-1.5.2.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a1ff473e85554edf2c61d39fc34cfb11e851cef6958f334f1faf6dd8adaff8df
BLAKE2b-256 checksum
How to use checksums
f74d6ddb6bf1aa3b784981b8f2097b478dd16d1696ebe4dcddf5ee168a2b978e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / l3binbandshift-1.5.2-py3-none-any.whl

Download URL l3binbandshift-1.5.2-py3-none-any.whl
Size 30.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71aaab72468e4d81aa4eef5b1cb137dfb25925cf55ef18bf5ba68daba105b42a
BLAKE2b-256 checksum
How to use checksums
d2c2e9801b2d1f9dd227506fd4b0453a69afbf4eae1443c80e93be276170a4cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for l3binbandshift 1.5.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page