Show azimuths to two decimals in SeisJSON exports

This commit is contained in:
D. Berge
2021-09-04 23:34:53 +02:00
parent 079d3a18b0
commit 8d3b7adc78

View File

@@ -56,7 +56,7 @@ function transform (events, sequences, opts = {}) {
"EntryType": "Start of line recording",
"EntryTypeId": 3000,
"Comment": event.remarks.toString(),
"Heading": Number(sequence.azimuth.toFixed(1)),
"Heading": Number(sequence.azimuth.toFixed(2)),
"IsReshoot": sequence.reshoot, // FIXME Add this property to sequence object
"IsUndershoot": false,
// NOTE https://gitlab.com/wgp/dougal/software/-/issues/12#note_419162674
@@ -217,7 +217,7 @@ function transform (events, sequences, opts = {}) {
const fsp = Object.assign({}, SequenceObject.Entries[fgspIndex], {
"EntryType": "Start of line recording",
"EntryTypeId": 3000,
"Heading": Number(sequence.azimuth.toFixed(1)),
"Heading": Number(sequence.azimuth.toFixed(2)),
"IsReshoot": sequence.reshoot,
"IsUndershoot": false,
"LineNumber": sequence.line.toString(),
@@ -235,7 +235,7 @@ function transform (events, sequences, opts = {}) {
"Comment": sequence.fsp_final
? "(First preplot shot found in P1)"
: "(First shot found in P1)",
"Heading": Number(sequence.azimuth.toFixed(1)),
"Heading": Number(sequence.azimuth.toFixed(2)),
"IsReshoot": sequence.reshoot, // FIXME Add this property to sequence object
"IsUndershoot": false,
// NOTE https://gitlab.com/wgp/dougal/software/-/issues/12#note_419162674