-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from sentinel-hub/antoineDuc-patch-1
Remove outdated script + fixing top nav
- Loading branch information
Showing
86 changed files
with
1,056 additions
and
219 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//VERSION=3 | ||
// ndvi | ||
|
||
function setup() { | ||
return { | ||
input: ["nir", "red", "dataMask"], | ||
output: { | ||
bands: 4, | ||
}, | ||
}; | ||
} | ||
|
||
function evaluatePixel(sample) { | ||
return [(sample.nir - sample.red) / (sample.nir + sample.red)]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: True Color, Analysis Ready Planetscope | ||
parent: Analysis Ready Planetscope | ||
grand_parent: Planet | ||
layout: script | ||
nav_exclude: true | ||
scripts: | ||
- [Visualization, script.js] | ||
examples: | ||
- zoom: '16' | ||
lat: '-31.95291' | ||
lng: '116.17321' | ||
datasetId: '3f605f75-86c4-411a-b4ae-01c896f0e54e' | ||
fromTime: '2023-04-29T00:00:00.000Z' | ||
toTime: '2023-04-29T23:59:59.999Z' | ||
platform: | ||
- EOB | ||
evalscripturl: https://custom-scripts.sentinel-hub.com/custom-scripts/planet/analysis_ready_planetscope/true_color/script.js | ||
additionalQueryParams: | ||
- - themeId | ||
- PLANET_SANDBOX | ||
--- | ||
|
||
The example data is using Planet Sandox data. This data is restricted to Sentinel Hub users with active paid plans. If you are already a Planet Customer, see [here](https://community.planet.com/sentinel-hub-81/access-new-tools-for-analyzing-your-planet-data-on-sentinel-hub-732) on how to get access. | ||
|
||
## General description | ||
The true color product maps Analysis-Ready PlanetScope band values red, green, and blue which roughly correspond to red, green, and blue part of the spectrum, respectively, to R, G, and B components. | ||
|
||
## Description of representative image | ||
|
||
A true color visualization of Des Moines, United States (April 2023) | ||
|
||
![True Color of Des Moines](fig/fig1.png) |
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//VERSION=3 | ||
//UDM2 Classification | ||
|
||
function setup() { | ||
return { | ||
input: [ | ||
{ | ||
bands: ["clear", "snow", "shadow", "haze_light", "haze_heavy", "cloud"], | ||
}, | ||
], | ||
output: { | ||
bands: 4, | ||
}, | ||
}; | ||
} | ||
|
||
function evaluatePixel(samples) { | ||
if (samples.snow == 1) { | ||
return [0, 0.5, 1, 1]; // blue | ||
} | ||
if (samples.shadow == 1) { | ||
return [0.4, 0.4, 0.4, 1]; //grey | ||
} | ||
if (samples.haze_light == 1) { | ||
return [0, 0.9, 1, 1]; //sky blue | ||
} | ||
if (samples.haze_heavy == 1) { | ||
return [1, 0.7, 1, 1]; //light pink | ||
} | ||
if (samples.cloud == 1) { | ||
return [0.7, 0.7, 0.7, 1]; //white | ||
} else { | ||
return [0, 0, 0, 0]; | ||
} | ||
} |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//VERSION=3 | ||
//PlanetScope NDRE | ||
|
||
function setup() { | ||
return { | ||
input: [ | ||
{ | ||
bands: ["red", "rededge", "dataMask"], | ||
}, | ||
], | ||
output: { id: "default", bands: 1, sampleType: "FLOAT32" }, | ||
}; | ||
} | ||
|
||
function evaluatePixel(sample) { | ||
let ndci = index(sample.rededge, sample.red); | ||
return [ndci]; | ||
} |
Oops, something went wrong.