Just checking there is no way in Sentinel Hub to do a dynamic directional transform based on solar azimuth in Sentinel Hub? I noticed this neat setup notebook (GEE) that makes use of s2cloudless but adds the idea that using the sun angle and an NIR value you can get a pretty good estimate of where the shadows fall.
Best I can think of is a blanket resample of s2cloudless layer to lower resolution using max value. This effectively creates a buffer around the s2cloudless pixels that could capture any shadow. And then evaluate if the NIR threshold is met it is probably shadow (if not cloud).
github.com
google/earthengine-community/blob/master/tutorials/sentinel-2-s2cloudless/index.ipynb
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Sentinel-2 Cloud Masking with s2cloudless",
"provenance": [],
"collapsed_sections": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
}
},
"cells": [
{
"cell_type": "code",
"metadata": {
"id": "8kdsGkYJXXKc"
},
This file has been truncated. show original