-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjobfile-arome-france.js
39 lines (37 loc) · 1.11 KB
/
jobfile-arome-france.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
32
33
34
35
36
37
38
39
import createJob from './job-arome.js'
// Produced every 3h
const runInterval = 3 * 3600
// Don't go back in time older than 1 day
const oldestRunInterval = (process.env.OLDEST_RUN_INTERVAL ? Number(process.env.OLDEST_RUN_INTERVAL) : 24 * 3600)
// Don't keep past runs
const keepPastRuns = process.env.KEEP_PAST_RUNS || false
// Steps of 1h
const interval = 1 * 3600
// Expand data TTL if required
const ttl = (process.env.TTL ? Number(process.env.TTL) : undefined)
// From T0
const lowerLimit = 0
// Up to T0+42
const upperLimit = (process.env.UPPER_LIMIT ? Number(process.env.UPPER_LIMIT) : 42 * 3600)
// Setup job name, model name, bounds and generation parameters
export default createJob({
id: 'weacast-arome-france',
model: 'arome-france',
request: {
url: 'https://public-api.meteofrance.fr/public/arome/1.0/wcs/MF-NWP-HIGHRES-AROME-0025-FRANCE-WCS/GetCoverage'
},
bounds: [-8, 38, 12, 53],
origin: [-8, 53],
size: [801, 601],
resolution: [0.025, 0.025],
tileResolution: [1, 1],
nwp: {
runInterval,
oldestRunInterval,
keepPastRuns,
interval,
ttl,
lowerLimit,
upperLimit
}
})