Skip to content

Commit 720ce12

Browse files
committed
add cdse staging datasets
1 parent 2f73197 commit 720ce12

File tree

3 files changed

+148
-0
lines changed

3 files changed

+148
-0
lines changed

src/layer/LayersFactory.ts

+24
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ import {
5050
DATASET_CDAS_OTC_S3OLCIL2,
5151
DATASET_CDAS_OTC_S5PL2,
5252
DATASET_CDAS_OTC_DEM,
53+
DATASET_CDAS_STAGING_S2L2A,
54+
DATASET_CDAS_STAGING_S1GRD,
55+
DATASET_CDAS_STAGING_S2L1C,
56+
DATASET_CDAS_STAGING_S3SLSTR,
57+
DATASET_CDAS_STAGING_S3OLCI,
58+
DATASET_CDAS_STAGING_S3OLCIL2,
59+
DATASET_CDAS_STAGING_S5PL2,
60+
DATASET_CDAS_STAGING_DEM,
5361
} from './dataset';
5462
import { AbstractLayer } from './AbstractLayer';
5563
import { WmsLayer } from './WmsLayer';
@@ -127,30 +135,45 @@ export class LayersFactory {
127135
DATASET_AWS_DEM,
128136
DATASET_CDAS_DEM,
129137
DATASET_CDAS_OTC_DEM,
138+
DATASET_CDAS_STAGING_S2L2A,
139+
DATASET_CDAS_STAGING_S1GRD,
140+
DATASET_CDAS_STAGING_S2L1C,
141+
DATASET_CDAS_STAGING_S3SLSTR,
142+
DATASET_CDAS_STAGING_S3OLCI,
143+
DATASET_CDAS_STAGING_S3OLCIL2,
144+
DATASET_CDAS_STAGING_S5PL2,
145+
DATASET_CDAS_STAGING_DEM,
130146
DATASET_BYOC,
131147
];
132148

133149
private static readonly LAYER_FROM_DATASET_V3 = {
134150
[DATASET_AWSEU_S1GRD.id]: S1GRDAWSEULayer,
135151
[DATASET_CDAS_S1GRD.id]: S1GRDCDASLayer,
136152
[DATASET_CDAS_OTC_S1GRD.id]: S1GRDCDASLayer,
153+
[DATASET_CDAS_STAGING_S1GRD.id]: S1GRDCDASLayer,
137154
[DATASET_S2L2A.id]: S2L2ALayer,
138155
[DATASET_S2L1C.id]: S2L1CLayer,
139156
[DATASET_CDAS_S2L2A.id]: S2L2ACDASLayer,
140157
[DATASET_CDAS_OTC_S2L2A.id]: S2L2ACDASLayer,
158+
[DATASET_CDAS_STAGING_S2L2A.id]: S2L2ACDASLayer,
141159
[DATASET_CDAS_S2L1C.id]: S2L1CCDASLayer,
142160
[DATASET_CDAS_OTC_S2L1C.id]: S2L1CCDASLayer,
161+
[DATASET_CDAS_STAGING_S2L1C.id]: S2L1CCDASLayer,
143162
[DATASET_S3SLSTR.id]: S3SLSTRLayer,
144163
[DATASET_CDAS_S3SLSTR.id]: S3SLSTRCDASLayer,
145164
[DATASET_CDAS_OTC_S3SLSTR.id]: S3SLSTRCDASLayer,
165+
[DATASET_CDAS_STAGING_S3SLSTR.id]: S3SLSTRCDASLayer,
146166
[DATASET_S3OLCI.id]: S3OLCILayer,
147167
[DATASET_CDAS_S3OLCI.id]: S3OLCICDASLayer,
148168
[DATASET_CDAS_OTC_S3OLCI.id]: S3OLCICDASLayer,
169+
[DATASET_CDAS_STAGING_S3OLCI.id]: S3OLCICDASLayer,
149170
[DATASET_CDAS_S3OLCIL2.id]: S3OLCIL2CDASLayer,
150171
[DATASET_CDAS_OTC_S3OLCIL2.id]: S3OLCIL2CDASLayer,
172+
[DATASET_CDAS_STAGING_S3OLCIL2.id]: S3OLCIL2CDASLayer,
151173
[DATASET_S5PL2.id]: S5PL2Layer,
152174
[DATASET_CDAS_S5PL2.id]: S5PL2CDASLayer,
153175
[DATASET_CDAS_OTC_S5PL2.id]: S5PL2CDASLayer,
176+
[DATASET_CDAS_STAGING_S5PL2.id]: S5PL2CDASLayer,
154177
[DATASET_AWS_L8L1C.id]: Landsat8AWSLayer,
155178
[DATASET_AWS_LOTL1.id]: Landsat8AWSLOTL1Layer,
156179
[DATASET_AWS_LOTL2.id]: Landsat8AWSLOTL2Layer,
@@ -165,6 +188,7 @@ export class LayersFactory {
165188
[DATASET_AWSUS_DEM.id]: DEMAWSUSLayer,
166189
[DATASET_CDAS_DEM.id]: DEMCDASLayer,
167190
[DATASET_CDAS_OTC_DEM.id]: DEMCDASLayer,
191+
[DATASET_CDAS_STAGING_DEM.id]: DEMCDASLayer,
168192
[DATASET_BYOC.id]: BYOCLayer,
169193
};
170194

src/layer/const.ts

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export enum LocationIdSHv3 {
165165
gcpUsCentral1 = 'gcp-us-central1',
166166
cdse = 'cdse',
167167
cdseOtc = 'cdse-otc',
168+
cdseStaging = 'cdse-staging',
168169
}
169170
export const SHV3_LOCATIONS_ROOT_URL: Record<LocationIdSHv3, string> = {
170171
[LocationIdSHv3.awsEuCentral1]: 'https://services.sentinel-hub.com/',
@@ -174,12 +175,14 @@ export const SHV3_LOCATIONS_ROOT_URL: Record<LocationIdSHv3, string> = {
174175
[LocationIdSHv3.gcpUsCentral1]: 'https://services-gcp-us-central1.sentinel-hub.com/',
175176
[LocationIdSHv3.cdse]: 'https://sh.dataspace.copernicus.eu/',
176177
[LocationIdSHv3.cdseOtc]: 'https://sh-otc.dataspace.copernicus.eu/',
178+
[LocationIdSHv3.cdseStaging]: 'https://sh.staging.dataspace.copernicus.eu/',
177179
};
178180

179181
export const SH_SERVICE_ROOT_URL = {
180182
default: SHV3_LOCATIONS_ROOT_URL[LocationIdSHv3.awsEuCentral1],
181183
cdse: SHV3_LOCATIONS_ROOT_URL[LocationIdSHv3.cdse],
182184
cdseOtc: SHV3_LOCATIONS_ROOT_URL[LocationIdSHv3.cdseOtc],
185+
cdseStaging: SHV3_LOCATIONS_ROOT_URL[LocationIdSHv3.cdseStaging],
183186
};
184187

185188
export type GetStatsParams = {

src/layer/dataset.ts

+121
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ export const DATASET_CDAS_OTC_S1GRD: Dataset = {
5858
catalogCollectionId: 'sentinel-1-grd',
5959
};
6060

61+
export const DATASET_CDAS_STAGING_S1GRD: Dataset = {
62+
id: 'CDAS_S1GRD',
63+
shJsonGetCapabilitiesDataset: 'S1GRD',
64+
shWmsEvalsource: 'S1GRD',
65+
shProcessingApiDatasourceAbbreviation: 'S1GRD',
66+
datasetParametersType: 'S1GRD',
67+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
68+
searchIndexUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S1GRD/searchIndex',
69+
findDatesUTCUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S1GRD/findAvailableData',
70+
orbitTimeMinutes: 49.3,
71+
minDate: new Date(Date.UTC(2014, 10 - 1, 3, 0, 47, 14)), // 2014-10-03T00:47:14Z
72+
maxDate: null,
73+
catalogCollectionId: 'sentinel-1-grd',
74+
};
75+
6176
export const DATASET_S2L2A: Dataset = {
6277
id: 'AWS_S2L2A',
6378
shJsonGetCapabilitiesDataset: 'S2L2A',
@@ -118,6 +133,21 @@ export const DATASET_CDAS_OTC_S2L2A: Dataset = {
118133
catalogCollectionId: 'sentinel-2-l2a',
119134
};
120135

136+
export const DATASET_CDAS_STAGING_S2L2A: Dataset = {
137+
id: 'CDAS_S2L2A',
138+
shJsonGetCapabilitiesDataset: 'S2L2A',
139+
shWmsEvalsource: 'S2L2A',
140+
shProcessingApiDatasourceAbbreviation: 'S2L2A',
141+
datasetParametersType: 'S2',
142+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
143+
searchIndexUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S2L2A/searchIndex',
144+
findDatesUTCUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S2L2A/findAvailableData',
145+
orbitTimeMinutes: 50.3,
146+
minDate: new Date(Date.UTC(2016, 10 - 1, 20, 8, 9, 58)), // 2016-10-20T08:09:58Z
147+
maxDate: null,
148+
catalogCollectionId: 'sentinel-2-l2a',
149+
};
150+
121151
export const DATASET_CDAS_S2L1C: Dataset = {
122152
id: 'CDAS_S2L1C',
123153
shJsonGetCapabilitiesDataset: 'S2L1C',
@@ -148,6 +178,21 @@ export const DATASET_CDAS_OTC_S2L1C: Dataset = {
148178
catalogCollectionId: 'sentinel-2-l1c',
149179
};
150180

181+
export const DATASET_CDAS_STAGING_S2L1C: Dataset = {
182+
id: 'CDAS_S2L1C',
183+
shJsonGetCapabilitiesDataset: 'S2L1C',
184+
shWmsEvalsource: 'S2',
185+
shProcessingApiDatasourceAbbreviation: 'S2L1C',
186+
datasetParametersType: 'S2',
187+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
188+
searchIndexUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S2L1C/searchIndex',
189+
findDatesUTCUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S2L1C/findAvailableData',
190+
orbitTimeMinutes: 50.3,
191+
minDate: new Date(Date.UTC(2015, 6 - 1, 27, 10, 25, 31)), // 2015-06-27T10:25:31
192+
maxDate: null,
193+
catalogCollectionId: 'sentinel-2-l1c',
194+
};
195+
151196
export const DATASET_S3SLSTR: Dataset = {
152197
id: 'CRE_S3SLSTR',
153198
shJsonGetCapabilitiesDataset: 'S3SLSTR',
@@ -193,6 +238,22 @@ export const DATASET_CDAS_OTC_S3SLSTR: Dataset = {
193238
catalogCollectionId: 'sentinel-3-slstr',
194239
};
195240

241+
export const DATASET_CDAS_STAGING_S3SLSTR: Dataset = {
242+
id: 'CDAS_S3SLSTR',
243+
shJsonGetCapabilitiesDataset: 'S3SLSTR',
244+
shWmsEvalsource: 'S3SLSTR',
245+
shProcessingApiDatasourceAbbreviation: 'S3SLSTR',
246+
datasetParametersType: 'S3SLSTR',
247+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
248+
searchIndexUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S3SLSTR/searchIndex',
249+
findDatesUTCUrl:
250+
'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S3SLSTR/findAvailableData',
251+
orbitTimeMinutes: 50.495,
252+
minDate: new Date(Date.UTC(2016, 4 - 1, 19, 0, 46, 32)), // 2016-04-19T00:46:32.578
253+
maxDate: null,
254+
catalogCollectionId: 'sentinel-3-slstr',
255+
};
256+
196257
export const DATASET_S3OLCI: Dataset = {
197258
id: 'CRE_S3OLCI',
198259
shJsonGetCapabilitiesDataset: 'S3OLCI',
@@ -238,6 +299,21 @@ export const DATASET_CDAS_OTC_S3OLCI: Dataset = {
238299
catalogCollectionId: 'sentinel-3-olci',
239300
};
240301

302+
export const DATASET_CDAS_STAGING_S3OLCI: Dataset = {
303+
id: 'CDAS_S3OLCI',
304+
shJsonGetCapabilitiesDataset: 'S3OLCI',
305+
shWmsEvalsource: 'S3OLCI',
306+
shProcessingApiDatasourceAbbreviation: 'S3OLCI',
307+
datasetParametersType: 'S3',
308+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
309+
searchIndexUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S3OLCI/searchIndex',
310+
findDatesUTCUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S3OLCI/findAvailableData',
311+
orbitTimeMinutes: 50.495,
312+
minDate: new Date(Date.UTC(2016, 4 - 1, 25, 11, 33, 14)), // 2016-04-25T11:33:14
313+
maxDate: null,
314+
catalogCollectionId: 'sentinel-3-olci',
315+
};
316+
241317
export const DATASET_CDAS_S3OLCIL2: Dataset = {
242318
id: 'CDAS_S3OLCIL2',
243319
shJsonGetCapabilitiesDataset: 'S3OLCIL2',
@@ -268,6 +344,22 @@ export const DATASET_CDAS_OTC_S3OLCIL2: Dataset = {
268344
catalogCollectionId: 'sentinel-3-olci-l2',
269345
};
270346

347+
export const DATASET_CDAS_STAGING_S3OLCIL2: Dataset = {
348+
id: 'CDAS_S3OLCIL2',
349+
shJsonGetCapabilitiesDataset: 'S3OLCIL2',
350+
shWmsEvalsource: 'sentinel-3-olci-l2',
351+
shProcessingApiDatasourceAbbreviation: 'sentinel-3-olci-l2',
352+
datasetParametersType: 'S3',
353+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
354+
searchIndexUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S3OLCIL2/searchIndex',
355+
findDatesUTCUrl:
356+
'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S3OLCIL2/findAvailableData',
357+
orbitTimeMinutes: 50.495,
358+
minDate: new Date(Date.UTC(2016, 4 - 1, 25, 11, 33, 14)), // 2016-04-25T11:33:14
359+
maxDate: null,
360+
catalogCollectionId: 'sentinel-3-olci-l2',
361+
};
362+
271363
export const DATASET_S5PL2: Dataset = {
272364
id: 'CRE_S5PL2',
273365
shJsonGetCapabilitiesDataset: 'S5PL2',
@@ -313,6 +405,21 @@ export const DATASET_CDAS_OTC_S5PL2: Dataset = {
313405
catalogCollectionId: 'sentinel-5p-l2',
314406
};
315407

408+
export const DATASET_CDAS_STAGING_S5PL2: Dataset = {
409+
id: 'CDAS_S5PL2',
410+
shJsonGetCapabilitiesDataset: 'S5PL2',
411+
shWmsEvalsource: 'S5P_L2',
412+
shProcessingApiDatasourceAbbreviation: 'S5PL2',
413+
datasetParametersType: 'S5PL2',
414+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
415+
searchIndexUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S5PL2/searchIndex',
416+
findDatesUTCUrl: 'https://sh.staging.dataspace.copernicus.eu/index/v3/collections/S5PL2/findAvailableData',
417+
orbitTimeMinutes: 101,
418+
minDate: new Date(Date.UTC(2018, 4 - 1, 30, 0, 18, 51)), // 2018-04-30T00:18:51
419+
maxDate: null,
420+
catalogCollectionId: 'sentinel-5p-l2',
421+
};
422+
316423
export const DATASET_AWS_L8L1C: Dataset = {
317424
id: 'AWS_L8L1C',
318425
shJsonGetCapabilitiesDataset: 'L8L1C',
@@ -519,6 +626,20 @@ export const DATASET_CDAS_OTC_DEM: Dataset = {
519626
maxDate: null,
520627
};
521628

629+
export const DATASET_CDAS_STAGING_DEM: Dataset = {
630+
id: 'CDAS_DEM',
631+
shJsonGetCapabilitiesDataset: 'DEM',
632+
shWmsEvalsource: 'DEM',
633+
shProcessingApiDatasourceAbbreviation: 'DEM',
634+
datasetParametersType: null,
635+
shServiceHostname: 'https://sh.staging.dataspace.copernicus.eu/',
636+
searchIndexUrl: null,
637+
findDatesUTCUrl: null,
638+
orbitTimeMinutes: null,
639+
minDate: null,
640+
maxDate: null,
641+
};
642+
522643
export const DATASET_BYOC: Dataset = {
523644
id: 'CUSTOM',
524645
shJsonGetCapabilitiesDataset: 'CUSTOM',

0 commit comments

Comments
 (0)