Skip to content

Commit 22f4f19

Browse files
author
Jonas Viehweger
committed
Fixed skysat script, removed non-working pan skysat example
1 parent f10c825 commit 22f4f19

File tree

7 files changed

+8
-32
lines changed

7 files changed

+8
-32
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
_site
22
Gemfile.lock
3-
.DS_Store
3+
.DS_Store
4+
5+
example-0.jpg

planet.md planet/index.md

File renamed without changes.

planet/planetscope/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ layout: default
33
title: PlanetScope
44
nav_order: 1
55
parent: Planet
6-
permalink: /planet/planetscope/
76
---
87

98
# PlanetScope (Commercial)

planet/skysat/ndvi/index.md

-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ examples:
2828

2929
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.
3030

31-
32-
## Evaluate and visualize
33-
34-
As SkySat is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
35-
3631
## General description
3732

3833
The well known and widely used NDVI is a simple, but effective index for quantifying green vegetation. It normalizes green leaf scattering in Near Infrared wavelengths with chlorophyll absorption in red wavelengths.

planet/skysat/panchromatic/index.md

-15
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,8 @@ parent: SkySat
44
grand_parent: Planet
55
layout: script
66
nav_exclude: true
7-
examples:
8-
- zoom: '16'
9-
lat: '-32.10671'
10-
lng: '116.00704'
11-
datasetId: 'fc704520-fc81-439f-9016-5e162c32e736'
12-
fromTime: '2022-10-19T00:00:00.000Z'
13-
toTime: '2022-10-19T23:59:59.999Z'
14-
platform:
15-
- EOB
16-
evalscripturl: https://custom-scripts.sentinel-hub.com/custom-scripts/planet/skysat/panchromatic/script.js
17-
additionalQueryParams:
18-
- - themeId
19-
- PLANET_SANDBOX
207
---
218

22-
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.
23-
249

2510
## Evaluate and visualize
2611

planet/skysat/true_color/index.md

-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ examples:
2121

2222
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.
2323

24-
25-
## Evaluate and visualize
26-
27-
As SkySat is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
28-
2924
## General description
3025

3126
The true color product combines Skysat band values `red`, `blue`, and `green` to create a true color image.

planet/skysat/true_color/script.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
function setup() {
55
return {
6-
input: ["blue", "red", "green", "dataMask"],
7-
output: { bands: 4 }
8-
}
6+
input: ["Blue", "Red", "Green", "dataMask"],
7+
output: { bands: 4 },
8+
};
99
}
10-
var f = 2.5 / 10000
10+
var f = 2.5 / 10000;
1111
function evaluatePixel(sample) {
12-
return [sample.red * f, sample.green * f, sample.blue * f, sample.dataMask]
12+
return [sample.Red * f, sample.Green * f, sample.Blue * f, sample.dataMask];
1313
}

0 commit comments

Comments
 (0)