From 22f4f19dffe5365e66c91022b5a9101fc2aeb05f Mon Sep 17 00:00:00 2001 From: Jonas Viehweger Date: Thu, 28 Nov 2024 09:45:26 +0100 Subject: [PATCH] Fixed skysat script, removed non-working pan skysat example --- .gitignore | 4 +++- planet.md => planet/index.md | 0 planet/planetscope/index.md | 1 - planet/skysat/ndvi/index.md | 5 ----- planet/skysat/panchromatic/index.md | 15 --------------- planet/skysat/true_color/index.md | 5 ----- planet/skysat/true_color/script.js | 10 +++++----- 7 files changed, 8 insertions(+), 32 deletions(-) rename planet.md => planet/index.md (100%) diff --git a/.gitignore b/.gitignore index 6e6f0ef5..95fe34ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ _site Gemfile.lock -.DS_Store \ No newline at end of file +.DS_Store + +example-0.jpg \ No newline at end of file diff --git a/planet.md b/planet/index.md similarity index 100% rename from planet.md rename to planet/index.md diff --git a/planet/planetscope/index.md b/planet/planetscope/index.md index 18745473..c634f3cf 100644 --- a/planet/planetscope/index.md +++ b/planet/planetscope/index.md @@ -3,7 +3,6 @@ layout: default title: PlanetScope nav_order: 1 parent: Planet -permalink: /planet/planetscope/ --- # PlanetScope (Commercial) diff --git a/planet/skysat/ndvi/index.md b/planet/skysat/ndvi/index.md index a67d9de2..d2a9057f 100644 --- a/planet/skysat/ndvi/index.md +++ b/planet/skysat/ndvi/index.md @@ -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. diff --git a/planet/skysat/panchromatic/index.md b/planet/skysat/panchromatic/index.md index d2764ba2..2d2f1860 100644 --- a/planet/skysat/panchromatic/index.md +++ b/planet/skysat/panchromatic/index.md @@ -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 diff --git a/planet/skysat/true_color/index.md b/planet/skysat/true_color/index.md index 5d623cc7..94b25399 100644 --- a/planet/skysat/true_color/index.md +++ b/planet/skysat/true_color/index.md @@ -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. diff --git a/planet/skysat/true_color/script.js b/planet/skysat/true_color/script.js index 0f76e540..cdaa5b69 100644 --- a/planet/skysat/true_color/script.js +++ b/planet/skysat/true_color/script.js @@ -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]; }