Skip to content

Add Enhanced RGB ratio visualization (Sentinel-1) - #371

Open
azlinszkysinergise wants to merge 4 commits into
sentinel-hub:mainfrom
azlinszkysinergise:add-enhanced_rgb_ratio
Open

Add Enhanced RGB ratio visualization (Sentinel-1)#371
azlinszkysinergise wants to merge 4 commits into
sentinel-hub:mainfrom
azlinszkysinergise:add-enhanced_rgb_ratio

Conversation

@azlinszkysinergise

Copy link
Copy Markdown
Contributor

New sentinel-1/enhanced_rgb_ratio script: adapts the classic S1 RGB-ratio composite (R=VV, G=VH, B=VH/VV) with a Reinhard tone-mapping curve that lifts the mid-range and compresses highlights, so dense cities keep their internal structure instead of clipping to white and vegetation reads clearly green. Includes a compact/minified variant for shareable Browser links, a README with a transfer-function comparison graphic, and the sentinel-1.md index line.

Created by claude ,promted/checked/developed by @azlinszkysinergise

azlinszkysinergise and others added 4 commits July 27, 2026 16:25
New sentinel-1/enhanced_rgb_ratio script: adapts the classic S1 RGB-ratio
composite (R=VV, G=VH, B=VH/VV) with a Reinhard tone-mapping curve that lifts
the mid-range and compresses highlights, so dense cities keep their internal
structure instead of clipping to white and vegetation reads clearly green.
Includes a compact/minified variant for shareable Browser links, a README
with a transfer-function comparison graphic, and the sentinel-1.md index line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sentinel-1 acquires HH+HV rather than VV+VH over the poles and much of the open ocean, and a band name in setup() cannot be chosen per scene, so DH data needs its own evalscript. Adds dh_monthly.js as a third tab, documents it in the README, and updates the example to the Munich scene shown in fig1. Also tidies script.js: plain array input form, saturate() parameter no longer shadows the sample name, and the invalid-pixel comment now matches the code (no data is transparent, degenerate backscatter is black, as in the standard RGB-ratio composite).
…ings

Adds an IW HH+HV example and a DH monthly mosaic example, both over the Canadian Arctic. Neither token was in cdse_lookup, so S1_AWS_IW_HHHV and S1_MOSAIC_DH are added to _layouts/script.html - without them the Copernicus Browser links resolve to an empty dataset id. Renames dh_monthly.js to dh.js, since the script suits IW and EW HH+HV acquisitions as well as the DH mosaics.
EO Browser is discontinued in favour of Copernicus Browser, so the remaining EOB platform entry is removed and the example is CDSE-only. The tone curve is described as scaled rather than extended, matching the script comments: the textbook extended Reinhard operator is a different formula.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant