Skip to content

Commit dc7d930

Browse files
Make S-5P stories use the same bounding box for easier results comparing
1 parent 1a98bf8 commit dc7d930

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

stories/s5pl2.stories.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
isAuthTokenSet,
55
requestAuthToken,
66
CRS_EPSG3857,
7-
CRS_EPSG4326,
87
BBox,
98
MimeTypes,
109
ApiType,
@@ -23,6 +22,7 @@ if (!process.env.S5PL2_LAYER_ID) {
2322

2423
const instanceId = process.env.INSTANCE_ID;
2524
const layerId = process.env.S5PL2_LAYER_ID;
25+
const bbox = new BBox(CRS_EPSG3857, 1408887.3053523689,5087648.602661333,1487158.8223163893,5165920.119625352);
2626

2727
export default {
2828
title: 'Sentinel 5P L2',
@@ -39,8 +39,6 @@ export const getMapURL = () => {
3939

4040
const layer = new S5PL2Layer(instanceId, layerId);
4141

42-
const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
43-
// const bbox = new BBox(CRS_EPSG4326, 18, 20, 20, 22);
4442
const getMapParams = {
4543
bbox: bbox,
4644
fromTime: new Date(Date.UTC(2020, 2 - 1, 2, 0, 0, 0)),
@@ -66,7 +64,6 @@ export const getMapWMS = () => {
6664

6765
const perform = async () => {
6866
const layer = new S5PL2Layer(instanceId, layerId);
69-
const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
7067
const getMapParams = {
7168
bbox: bbox,
7269
fromTime: new Date(Date.UTC(2020, 2 - 1, 2, 0, 0, 0)),
@@ -106,8 +103,6 @@ export const getMapWMSEvalscript = () => {
106103
return colorBlend(val, limits, colors);
107104
`,
108105
);
109-
// const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
110-
const bbox = new BBox(CRS_EPSG3857, 1408887.3053523689,5087648.602661333,1487158.8223163893,5165920.119625352);
111106
const getMapParams = {
112107
bbox: bbox,
113108
fromTime: new Date(Date.UTC(2020, 2 - 1, 2, 0, 0, 0)),
@@ -158,7 +153,6 @@ export const getMapProcessing = () => {
158153
`,
159154
);
160155

161-
const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
162156
const getMapParams = {
163157
bbox: bbox,
164158
fromTime: new Date(Date.UTC(2020, 2 - 1, 2, 0, 0, 0)),
@@ -211,7 +205,6 @@ export const getMapProcessingWithoutInstance = () => {
211205

212206
);
213207

214-
const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
215208
const getMapParams = {
216209
bbox: bbox,
217210
fromTime: new Date(Date.UTC(2020, 2 - 1, 2, 0, 0, 0)),
@@ -247,7 +240,6 @@ export const getMapProcessingFromLayer = () => {
247240

248241
const layer = new S5PL2Layer(instanceId, layerId);
249242

250-
const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
251243
const getMapParams = {
252244
bbox: bbox,
253245
fromTime: new Date(Date.UTC(2020, 2 - 1, 2, 0, 0, 0)),
@@ -266,7 +258,6 @@ export const getMapProcessingFromLayer = () => {
266258

267259
export const findTiles = () => {
268260
const layer = new S5PL2Layer(instanceId, layerId);
269-
const bbox = new BBox(CRS_EPSG3857, -2035059.4, 15497760.4, -1956787.9, 15576031.8);
270261
const containerEl = document.createElement('pre');
271262

272263
const wrapperEl = document.createElement('div');

0 commit comments

Comments
 (0)