Skip to content

Commit

Permalink
Fixed skysat script, removed non-working pan skysat example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Viehweger committed Nov 28, 2024
1 parent f10c825 commit 22f4f19
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 32 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
_site
Gemfile.lock
.DS_Store
.DS_Store

example-0.jpg
File renamed without changes.
1 change: 0 additions & 1 deletion planet/planetscope/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: default
title: PlanetScope
nav_order: 1
parent: Planet
permalink: /planet/planetscope/
---

# PlanetScope (Commercial)
Expand Down
5 changes: 0 additions & 5 deletions planet/skysat/ndvi/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ examples:

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.


## Evaluate and visualize

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.

## General description

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.
Expand Down
15 changes: 0 additions & 15 deletions planet/skysat/panchromatic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,8 @@ parent: SkySat
grand_parent: Planet
layout: script
nav_exclude: true
examples:
- zoom: '16'
lat: '-32.10671'
lng: '116.00704'
datasetId: 'fc704520-fc81-439f-9016-5e162c32e736'
fromTime: '2022-10-19T00:00:00.000Z'
toTime: '2022-10-19T23:59:59.999Z'
platform:
- EOB
evalscripturl: https://custom-scripts.sentinel-hub.com/custom-scripts/planet/skysat/panchromatic/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.


## Evaluate and visualize

Expand Down
5 changes: 0 additions & 5 deletions planet/skysat/true_color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ examples:

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.


## Evaluate and visualize

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.

## General description

The true color product combines Skysat band values `red`, `blue`, and `green` to create a true color image.
Expand Down
10 changes: 5 additions & 5 deletions planet/skysat/true_color/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

function setup() {
return {
input: ["blue", "red", "green", "dataMask"],
output: { bands: 4 }
}
input: ["Blue", "Red", "Green", "dataMask"],
output: { bands: 4 },
};
}
var f = 2.5 / 10000
var f = 2.5 / 10000;
function evaluatePixel(sample) {
return [sample.red * f, sample.green * f, sample.blue * f, sample.dataMask]
return [sample.Red * f, sample.Green * f, sample.Blue * f, sample.dataMask];
}

0 comments on commit 22f4f19

Please sign in to comment.