Why couldn't share shortened links with custom scripts?

Why couldn’t share shortened links with custom scripts?

I made map lists for observation via custom scripts. To share halfway, suddenly couldn’t share shortened links.
Would you tell me if you know about this problem and solution?
image|690x388

Dear @yuliismirnov

To be able to investigate your problem further, could you please share with us the Browser URL and the custom script you were using.

Best,
Daniel

Dear Daniel Thiex,
Thanks for your fast reply.

First, I use an old script. However, it is low resolution for analytics. It is a rough script.
Therefore, I want to test using other scripts. For replace on same area and day.
However, new forum users could paste 2 links only.

Therefore, I will separate post.

OLD Full URL:
https://apps.sentinel-hub.com/eo-browser/?zoom=15&lat=47.24162&lng=35.69839&themeId=DEFAULT-THEME&visualizationUrl=https%3A%2F%2Fservices.sentinel-hub.com%2Fogc%2Fwms%2F42924c6c-257a-4d04-9b8e-36387513a99c&evalscript=Y29uc3QgbWluVmFsID0gMC4wOw0KY29uc3QgbWF4VmFsID0gMC40Ow0KY29uc3QgdGhyZXNoQjEyQjA0UmF0aW8gPSAyLjA7DQpjb25zdCB0aHJlc2hCMTIgPSAwLjU7DQoNCmNvbnN0IHZpeiA9IG5ldyBIaWdobGlnaHRDb21wcmVzc1Zpc3VhbGl6ZXIobWluVmFsLCBtYXhWYWwpOw0KDQpmdW5jdGlvbiBkaXYoYSwgYikgew0KICByZXR1cm4gYSAvIGI7DQp9DQoNCmZ1bmN0aW9uIHNldHVwKCkgew0KICAgcmV0dXJuIHsNCiAgICBpbnB1dDogWyJCMTIiLCAiQjhBIiwgIkIwNCIsICJCMDMiLCAiQjAyIiwiZGF0YU1hc2siXSwNCiAgICBvdXRwdXQ6IHsgYmFuZHM6IDQgfQ0KICB9Ow0KfQ0KDQpmdW5jdGlvbiBldmFsdWF0ZVBpeGVsKHNhbXBsZXMpIHsNCg0KICAgIGNvbnN0IHRjaSA9IFtzYW1wbGVzLkIwNCwgc2FtcGxlcy5CMDMsIHNhbXBsZXMuQjAyLHNhbXBsZXMuZGF0YU1hc2tdOw0KICAgIGNvbnN0IGZpcmUgPSBbc2FtcGxlcy5CMTIsIHNhbXBsZXMuQjhBLCBzYW1wbGVzLkIwNCxzYW1wbGVzLmRhdGFNYXNrXTsNCiAgICBjb25zdCB2YWwgPSAoZGl2KHNhbXBsZXMuQjEyLCBzYW1wbGVzLkIwNCkgPiB0aHJlc2hCMTJCMDRSYXRpbyAmJiBzYW1wbGVzLkIxMiA%2BIHRocmVzaEIxMikgPyBmaXJlIDogdGNpOw0KDQogICAgcmV0dXJuIHZpei5wcm9jZXNzTGlzdCh2YWwpOw0KfQ%3D%3D&datasetId=S2L1C&fromTime=2022-10-15T00%3A00%3A00.000Z&toTime=2022-10-15T23%3A59%3A59.999Z&demSource3D=%22MAPZEN%22#custom-script

OLD Scripts:
const minVal = 0.0;
const maxVal = 0.4;
const threshB12B04Ratio = 2.0;
const threshB12 = 0.5;

const viz = new HighlightCompressVisualizer(minVal, maxVal);

function div(a, b) {
return a / b;
}

function setup() {
return {
input: [“B12”, “B8A”, “B04”, “B03”, “B02”,“dataMask”],
output: { bands: 4 }
};
}

function evaluatePixel(samples) {

const tci = [samples.B04, samples.B03, samples.B02,samples.dataMask];
const fire = [samples.B12, samples.B8A, samples.B04,samples.dataMask];
const val = (div(samples.B12, samples.B04) > threshB12B04Ratio && samples.B12 > threshB12) ? fire : tci;

return viz.processList(val);

}

OLD Shortened URL:
https://sentinelshare.page.link/RqRS

NOW Full URL:
https://apps.sentinel-hub.com/eo-browser/?zoom=15&lat=47.23674&lng=35.7003&themeId=DEFAULT-THEME&visualizationUrl=https%3A%2F%2Fservices.sentinel-hub.com%2Fogc%2Fwms%2F42924c6c-257a-4d04-9b8e-36387513a99c&evalscript=Ly8gV2lsZGZpcmUgYW5kIGJ1cm4gc2NhciB2aXN1YWxpemF0aW9uIGluIFNlbnRpbmVsLTIgaW1hZ2VzIFYyLjAuMA0KLy8gVHdpdHRlcjogUGllcnJlIE1hcmt1c2UgKEBwaWVycmVfbWFya3VzZSkNCi8vIENDIEJZIDQuMCBJbnRlcm5hdGlvbmFsIC0gaHR0c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ICgxLjAgLyBmaXJlU2Vuc2l0aXZpdHkpKSA%2FDQogICAgKGEoQjEyLCBCMTEpID4gKDIuMCAvIGZpcmVTZW5zaXRpdml0eSkpID8gZmlyZTMgOg0KICAgIChhKEIxMiwgQjExKSA%2BICgxLjUgLyBmaXJlU2Vuc2l0aXZpdHkpKSA%2FIGZpcmUyIDogZmlyZTEgOg0KICAgZmluYWxSR0I7&datasetId=S2L1C&fromTime=2022-10-15T00%3A00%3A00.000Z&toTime=2022-10-15T23%3A59%3A59.999Z&demSource3D=%22MAPZEN%22#custom-script

NOW Scripts:
// Wildfire and burn scar visualization in Sentinel-2 images V2.0.0
// Twitter: Pierre Markuse (@pierre_markuse)
// CC BY 4.0 International - Creative Commons — Attribution 4.0 International — CC BY 4.0
function a(a, b) {return a + b}
function stretch(val, min, max) {return (val - min) / (max - min);}

function satEnh(rgbArr) {
var avg = rgbArr.reduce((a, b) => a + b, 0) / rgbArr.length;
return rgbArr.map(a => avg * (1 - saturation) + a * saturation); }

function highlightBurnscar(val, oLow, oHigh, deSat, darken) {
if ((B12 + B11 > 0.05) && (val > 0)) {
if (((B8A - B12) / (B8A + B12)) > oLow) {
saturation = saturation - deSat;
stretchMax = stretchMax + darken;
} else {
if (((B8A - B12) / (B8A + B12)) <= oHigh) {
noFire[0] = noFire[0] + 0.2 * val;
noFire[1] = noFire[1] + 0.05 * val;
} else {
noFire[0] = noFire[0] + 0.15 * val;
noFire[1] = noFire[1] + 0.15 * val;
}
}
}
}

function indexMap(ind, lVal, mVal, hVal, cont, dir, pal) {
var col1=GREEN;var col2=YELLOW;var col3=RED;
if (pal == 1) {col1=CBL;col2=CBM;col3=CBH;}
if (pal == 2) {col1=OWNL;col2=OWNM;col3=OWNH;}
var lValCol = col1;
var mValCol = col2;var hValCol = col3;
if (dir == 1){
lValCol = col3;hValCol = col1;
}
if (cont == 0) {
if (ind <= lVal) return lValCol; if ((ind > lVal) && (ind < hVal)) return mValCol; if (ind >= hVal) return hValCol;
} else {
return colorBlend(ind, [lVal, mVal,hVal], [lValCol,mValCol,hValCol]);
}
}

function blend(bArr1, bArr2, opa1, opa2) {
return bArr1.map(function(num, index) {
return (num / 100 * opa1 + bArr2[index] / 100 * opa2);
});
}

function applyEnh(bArr) {
highlightBurnscar(burnscarHighlight, burnscarThresholdLow, burnscarThresholdHigh, burnscarDesaturateBackdrop, burnscarDarkenBackdrop);
return satEnh([stretch(bArr[0], stretchMin, stretchMax), stretch(bArr[1], stretchMin, stretchMax), stretch(bArr[2], stretchMin, stretchMax)]);
}

var BLACK = [0.0, 0.0, 0.0];
var RED = [0.9, 0.1, 0.1];
var YELLOW = [0.9, 0.9, 0.1];
var GREEN = [0.0, 0.6, 0.0];
var CBL = [0/255, 80/255, 0/255];
var CBM = [120/255, 120/255, 230/255];
var CBH = [70/255, 195/255, 255/255];
var OWNL = [0.0, 0.0, 0.0];
var OWNM = [0.0, 0.0, 0.0];
var OWNH = [0.0, 0.0, 0.0];

// Visualization style of the different fire zones
var Fire1OVL = [stretch((2.1 * B04 + 0.5 * B12), 0.01, 0.99) + 1.1, stretch((2.2 * B03 + 0.5 * B08), 0.01, 0.99), stretch(2.1 * B02, 0.01, 0.99)];
var Fire2OVL = [stretch((2.1 * B04 + 0.5 * B12), 0.01, 0.99) + 1.1, stretch((2.2 * B03 + 0.5 * B08), 0.01, 0.99) + 0.25, stretch(2.1 * B02, 0.01, 0.99)];
var Fire3OVL = [stretch((2.1 * B04 + 0.5 * B12), 0.01, 0.99) + 1.1, stretch((2.2 * B03 + 0.5 * B08), 0.01, 0.99) + 0.5, stretch(2.1 * B02, 0.01, 0.99)];

// Band combinations (To get quicker processing you should comment out all those you are not using in the Settings further down)
var NaturalColors = [2.9 * B04, 3.1 * B03, 3.0 * B02];
// var EnhancedNaturalColors = [2.8 * B04 + 0.1 * B05, 2.8 * B03 + 0.15 * B08, 2.8 * B02];
// var NaturalNIRSWIRMix = [2.1 * B04 + 0.5 * B12, 2.2 * B03 + 0.5 * B08, 3.0 * B02];
// var NIRSWIRColors1 = [2.6 * B12, 1.9 * B08, 2.7 * B02];
var NIRSWIRColors2 = [2.4 * B12, 1.7 * B8A, 2.2 * B05];
// var NIRSWIRColors3 = [0.5 * (B12 + B11) / 4 / B07, 0.8 * B8A, 1 * B07];
// var NIRSWIRColors4 = [2.0 * B12, 1.1 * B11, 1.6 * B08];
// var FalseColor = [B08 * 2, B04 * 2, B03 * 2];
// var NatFalseColor = [B12 * 2.6, B11 * 2, B04 * 2.7];
// var Vegetation = [B11 * 2.4, B8A * 2, B04 * 2.9];
// var PanBand = [B08, B08, B08];
// var NBR8A12 = indexMap((B8A - B12) / (B8A + B12), -0.8, -0.4, 0.0, 1, 1, 1);
// var NDVI = indexMap((B08 - B04) / (B08 + B04), -0.4, -0.2, 0.0, 1, 1, 1);

// Settings

// Fire (hot spot) visualization
var fire1 = Fire1OVL;
var fire2 = Fire2OVL;
var fire3 = Fire3OVL;

// Used band combinations and mixing
var layer1 = NIRSWIRColors2;
var layer2 = NaturalColors;
var layer1Amount = 0;
var layer2Amount = 100;

// Influence contrast and saturation
var stretchMin = 0.00;
var stretchMax = 1.00;
var saturation = 1.00;

// Fire sensitivity (Default = 1.00), higher values increase fire (hot spot) detection and false positives
var fireSensitivity = 1.00;

// Burn scar visualization
var burnscarHighlight = 0.00;
var burnscarThresholdLow = -0.25;
var burnscarThresholdHigh = -0.38;
var burnscarDesaturateBackdrop = 0.25;
var burnscarDarkenBackdrop = 0.25;

// Manually influence RGB output
var manualCorrection = [0.00, 0.00, 0.00];

// Image generation and output
noFire = blend(layer1, layer2, layer1Amount, layer2Amount);

finalRGB = applyEnh(noFire).map(function(num, index) {
return num + manualCorrection[index];});

return (a(B12, B11) > (1.0 / fireSensitivity)) ?
(a(B12, B11) > (2.0 / fireSensitivity)) ? fire3 :
(a(B12, B11) > (1.5 / fireSensitivity)) ? fire2 : fire1 :
finalRGB;

NOW Shortened URL:
NONE

If couldn’t solve this problem, please would you tell me about other recommended fire observation scripts?
Thank you for your continued support. I hope you can continue to solve this.

Dear @yuliismirnov,

thanks for sharing the URL and scripts. The problem here is that the long evalscript you are using generates a too long URL which currently can’t be handled by the share functionality we are using.

Try removing not needed comments from your script (this should already be enough) or alternatively you can store long scripts somewhere on a website (e.g., like here and use the load script from URL functionality.

Best,
Daniel

Dear Daniel,

Thanks for your advice.
I will often change the script to purpose.

By the way, our OSINT team need to prepare war crime evidence for the Ukraine gov.
Therefore, often need characteristic scripts and make manuals for case by cases.

I hope you will be able to help me if I should encounter any problems.

Sincerely yours,

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.