Add more sequence information to SeisJSON file

This commit is contained in:
D. Berge
2021-05-15 18:37:32 +02:00
parent 3e2126cc32
commit 84e791fc66

View File

@@ -28,13 +28,16 @@ function transform (events, sequences, opts = {}) {
SequenceObject = {
SequenceNumber,
Entries: [],
DglSailline: sequence.line,
DglNumPoints: sequence.num_points,
DglNumMissing: sequence.missing_shots,
// NOTE: Distance & azimuth refer to raw data if the sequence
// status is 'raw' and to final data if status is 'final'. In
// the event of it being NTBP it depends on whether final data
// exists or not.
DglLength: sequence.length
DglLength: sequence.length,
DglAzimuth: sequence.azimuth,
DglDuration: sequence.duration_final || sequence.duration
};
[sequence.remarks, sequence.remarks_final].filter(i => !!i).forEach(i => {
if (!SequenceObject.DglSequenceComments) {