Increase the resolution of position errors in bundle.

Note: this does not actually matter as of this commit as we are
storing those values as Float32 but it will become relevant when
we start packing them as Int16.
This commit is contained in:
D. Berge
2025-08-08 12:13:20 +02:00
parent 6a94287cba
commit 695add5da6
2 changed files with 8 additions and 8 deletions

View File

@@ -61,8 +61,8 @@ class DougalSequenceLayer extends ScatterplotLayer {
i: d.value0.value[index],
j: d.value1.value[index],
ts: Number(d.value2.value[index]),
εi: d.value3.value[index] / 10,
εj: d.value4.value[index] / 10,
εi: d.value3.value[index] / 100,
εj: d.value4.value[index] / 100,
delta: d.value5.value[index] / 10,
delta_σ: d.value6.value[index] / 10,
delta_R: d.value7.value[index] / 10,

View File

@@ -114,12 +114,12 @@ function bundle (json, opts = {}) {
// Add raw inline, crossline errors
values.push({
// Crossline
key: el => el.errorraw?.coordinates?.[0] * 10,
key: el => el.errorraw?.coordinates?.[0] * 100,
type: Float32Array
});
values.push({
// Inline
key: el => el.errorraw?.coordinates?.[1] * 10,
key: el => el.errorraw?.coordinates?.[1] * 100,
type: Float32Array
});
@@ -257,24 +257,24 @@ function bundle (json, opts = {}) {
// Add raw inline, crossline errors relative to preplot
values.push({
// Crossline
key: el => el.errorfinal?.coordinates?.[0] * 10,
key: el => el.errorfinal?.coordinates?.[0] * 100,
type: Int16Array
});
values.push({
// Inline
key: el => el.errorfinal?.coordinates?.[1] * 10,
key: el => el.errorfinal?.coordinates?.[1] * 100,
type: Int16Array
});
// Add raw inline, crossline errors relative to raw
values.push({
// Crossline
key: el => (el.errorfinal?.coordinates?.[0] - el.errorraw?.coordinates?.[0]) * 10,
key: el => (el.errorfinal?.coordinates?.[0] - el.errorraw?.coordinates?.[0]) * 100,
type: Int16Array
});
values.push({
// Inline
key: el => (el.errorfinal?.coordinates?.[1] - el.errorraw?.coordinates?.[1]) * 10,
key: el => (el.errorfinal?.coordinates?.[1] - el.errorraw?.coordinates?.[1]) * 100,
type: Int16Array
});