-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
31 lines (26 loc) · 829 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
import AstroDigital from './endpoints/AstroDigital';
import DigitalGlobe from './endpoints/DigitalGlobe';
import ECHO from './endpoints/ECHO';
import PlanetLabs from './endpoints/PlanetLabs';
import SciHub from './endpoints/SciHub';
import UrtheCast from './endpoints/UrtheCast';
const endpoints = [
AstroDigital,
DigitalGlobe,
ECHO,
PlanetLabs,
SciHub,
UrtheCast,
];
const location = process.argv[2] !== undefined ? process.argv[2]: 'sanFrancisco';
const daysAgo = 180;
const maxCloudCoverage = 10;
console.log('Scanning endpoints with configuration:');
console.log('Location:', location);
console.log('Days ago:', daysAgo);
console.log(`Max cloud coverage: ${maxCloudCoverage}%`);
console.log('');
endpoints.forEach(endpoint => {
endpoint.init({location, daysAgo, maxCloudCoverage}).run();
});