Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dem/dem.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ DEM (digital elevation model) is a 3D representation of the terrain's surface cr
- [DEM sepia visualization](/dem/dem-sepia)
- [DEM topographic visualization](/dem/dem-topographic)
- [DEM contour lines](/dem/contour-lines)
- [DEM difference visualization](/dem/dem-difference)
- [DEM difference visualization](/dem/dem-difference)
- [DEM Central Europe](/dem/dem-central-europe)
24 changes: 24 additions & 0 deletions sentinel-3/OLCI_level_2_land/GIFAPAR_color/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title:
parent: OLCI_level_2_land
grandparent: sentinel-3
layout: script
nav_exclude: true
examples:
- zoom: '9'
lat: '46.76527'
lng: '17.81158'
datasetId: S3OLCI_GIFAPAR
fromTime: '2024-09-03T00:00:00.000Z'
toTime: '2024-09-03T23:59:59.999Z'
platform:
- CDSE
evalscripturl: https://custom-scripts.sentinel-hub.com/custom-script/ssentinel-3/OLCI_level_2_land/GIFAPAR_color/script.js
---


## General description of the script

This is a simple visualization of GIFAPAR with a green palette. GIFAPAR has values between zero and one


52 changes: 52 additions & 0 deletions sentinel-3/OLCI_level_2_land/GIFAPAR_color/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//Version=3
// Simple green color ramp for GIFAPAR index
// By András Zlinszky, Sinergise - with lots of help from GitHub Copilot

function setup() {
return {
input: ["GIFAPAR", "dataMask"],
output: [
{ id: "default", bands: 4 },
{ id: "index", bands: 1, sampleType: "FLOAT32" },
{ id: "eobrowserStats", bands: 1, sampleType: "FLOAT32" },
{ id: "dataMask", bands: 1 }
]
};
}

const ramp = [
[-0.5, 0x0c0c0c],
[-0.2, 0xbfbfbf],
[-0.1, 0xdbdbdb],
[0, 0xeaeaea],
[0.025, 0xfff9cc],
[0.05, 0xede8b5],
[0.075, 0xddd89b],
[0.1, 0xccc682],
[0.125, 0xbcb76b],
[0.15, 0xafc160],
[0.175, 0xa3cc59],
[0.2, 0x91bf51],
[0.25, 0x7fb247],
[0.3, 0x70a33f],
[0.35, 0x609635],
[0.4, 0x4f892d],
[0.45, 0x3f7c23],
[0.5, 0x306d1c],
[0.55, 0x216011],
[0.6, 0x0f540a],
[1, 0x004400]
];

let viz = new ColorRampVisualizer(ramp);

function evaluatePixel(sample) {
let val = sample.GIFAPAR;
let ImgVals = viz.process(val);
return {
default: ImgVals.concat(sample.dataMask),
index: [sample.dataMask == 1 ? sample.GIFAPAR : NaN],
eobrowserStats: [sample.dataMask == 1 ? sample.GIFAPAR : NaN],
dataMask: [sample.dataMask]
};
}
2 changes: 1 addition & 1 deletion sentinel-5p/sentinel-5p.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ Sentinel-5P provides atmospheric measurements, relating to air quality, climate
- [Cloud Optical Thickness](/sentinel-5p/cloud-optical-thickness)
- [Cloud Effective Radiometric Fraction](/sentinel-5p/cloud-radiometric-fraction)

### Additional Products
#### Additional Products

- [Nitrogen Dioxide monthly mean](/sentinel-5p/no2_monthly_mean)