Export missing shots by default.

Unless explicitly requested by the user by setting the
option `missing` to `false`, a list of missing shotpoints
will be included in the SeisJSON file.
This commit is contained in:
D. Berge
2021-09-04 23:19:25 +02:00
parent a82fc7bc8a
commit 1d3507b3a4

View File

@@ -2,7 +2,8 @@ const { event, sequence, info } = require('../db');
async function prepare (project, query) {
const events = await event.list(project, query);
const sequences = await sequence.list(project, query);
// Get missing shots by default
const sequences = await sequence.list(project, Object.assign({missing:true}, query));
const equipment = await info.get(null, "equipment");
for (const sequence of sequences) {
const maxTstamp = sequence.ts1_final || sequence.ts1 || +Infinity;