-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjobfile-gfs-world.js
36 lines (34 loc) · 996 Bytes
/
jobfile-gfs-world.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
import createJob from './job-gfs.js'
// Produced every 6h
const runInterval = 6 * 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 3h
const interval = 3 * 3600
// Expand data TTL if required
const ttl = (process.env.TTL ? Number(process.env.TTL) : undefined)
// From T0
const lowerLimit = 0
// Up to T0+240
const upperLimit = (process.env.UPPER_LIMIT ? Number(process.env.UPPER_LIMIT) : 240 * 3600)
// Setup job name, model name, bounds and generation parameters
export default createJob({
id: 'weacast-gfs-world',
model: 'gfs-world',
bounds: [0, -90, 360, 90],
origin: [0, 90],
size: [720, 361],
resolution: [0.5, 0.5],
tileResolution: [20, 20],
nwp: {
runInterval,
oldestRunInterval,
keepPastRuns,
interval,
ttl,
lowerLimit,
upperLimit
}
})