@webviz/well-log-viewer 0.0.1-alpha.1 → 0.0.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/SyncLogViewer.js +3 -4
  2. package/dist/SyncLogViewer.js.map +1 -1
  3. package/dist/components/WellLogView.js +5 -5
  4. package/dist/components/WellLogView.js.map +1 -1
  5. package/dist/demo/example-data/welllog_template_2.json +167 -167
  6. package/dist/demo/example-data/wellpick_colors.json +1 -1
  7. package/dist/demo/example-data/wellpicks.json +179 -179
  8. package/package.json +32 -5
  9. package/dist/Intro.stories.mdx +0 -59
  10. package/dist/package.json +0 -21
  11. package/src/Intro.stories.mdx +0 -59
  12. package/src/MapAndWellLogViewer.stories.jsx +0 -147
  13. package/src/MapAndWellLogViewer.test.tsx +0 -26
  14. package/src/MapAndWellLogViewer.tsx +0 -473
  15. package/src/SyncLogViewer.stories.jsx +0 -361
  16. package/src/SyncLogViewer.test.tsx +0 -41
  17. package/src/SyncLogViewer.tsx +0 -1188
  18. package/src/WellLogViewer.png +0 -0
  19. package/src/WellLogViewer.stories.jsx +0 -169
  20. package/src/WellLogViewer.test.tsx +0 -53
  21. package/src/WellLogViewer.tsx +0 -439
  22. package/src/WellLogViewer_performance.test.tsx +0 -78
  23. package/src/__snapshots__/MapAndWellLogViewer.test.tsx.snap +0 -365
  24. package/src/__snapshots__/SyncLogViewer.test.tsx.snap +0 -510
  25. package/src/__snapshots__/WellLogViewer.test.tsx.snap +0 -552
  26. package/src/components/AxisSelector.test.tsx +0 -50
  27. package/src/components/AxisSelector.tsx +0 -49
  28. package/src/components/ColorTableTypes.ts +0 -9
  29. package/src/components/InfoPanel.test.tsx +0 -58
  30. package/src/components/InfoPanel.tsx +0 -144
  31. package/src/components/InfoTypes.ts +0 -17
  32. package/src/components/LocalMenus.tsx +0 -336
  33. package/src/components/PlotDialog.tsx +0 -419
  34. package/src/components/Scroller.stories.jsx +0 -80
  35. package/src/components/Scroller.test.tsx +0 -22
  36. package/src/components/Scroller.tsx +0 -173
  37. package/src/components/TrackDialog.tsx +0 -217
  38. package/src/components/WellLogSpacer.tsx +0 -483
  39. package/src/components/WellLogTemplateTypes.ts +0 -65
  40. package/src/components/WellLogTypes.ts +0 -53
  41. package/src/components/WellLogView.stories.jsx +0 -84
  42. package/src/components/WellLogView.test.tsx +0 -52
  43. package/src/components/WellLogView.tsx +0 -2063
  44. package/src/components/WellLogViewWithScroller.stories.jsx +0 -69
  45. package/src/components/WellLogViewWithScroller.test.tsx +0 -47
  46. package/src/components/WellLogViewWithScroller.tsx +0 -179
  47. package/src/components/ZoomSlider.stories.jsx +0 -52
  48. package/src/components/ZoomSlider.test.tsx +0 -28
  49. package/src/components/ZoomSlider.tsx +0 -86
  50. package/src/components/__snapshots__/AxisSelector.test.tsx.snap +0 -28
  51. package/src/components/__snapshots__/InfoPanel.test.tsx.snap +0 -103
  52. package/src/components/__snapshots__/Scroller.test.tsx.snap +0 -13
  53. package/src/components/__snapshots__/WellLogView.test.tsx.snap +0 -54
  54. package/src/components/__snapshots__/WellLogViewWithScroller.test.tsx.snap +0 -270
  55. package/src/components/__snapshots__/ZoomSlider.test.tsx.snap +0 -50
  56. package/src/components/styles.scss +0 -106
  57. package/src/custom.d.ts +0 -13
  58. package/src/demo/example-data/volve_logs.json +0 -689617
  59. package/src/demo/example-data/welllog_template_2.json +0 -196
  60. package/src/demo/example-data/wellpick_colors.json +0 -156
  61. package/src/demo/example-data/wellpicks.json +0 -186
  62. package/src/index.ts +0 -8
  63. package/src/utils/axes.ts +0 -26
  64. package/src/utils/color-table.ts +0 -153
  65. package/src/utils/deepcopy.ts +0 -3
  66. package/src/utils/edit-track.tsx +0 -40
  67. package/src/utils/fill-info.ts +0 -224
  68. package/src/utils/gradientfill-plot-legend.ts +0 -177
  69. package/src/utils/gradientfill-plot.ts +0 -203
  70. package/src/utils/graph/factory.ts +0 -15
  71. package/src/utils/legend/common.ts +0 -153
  72. package/src/utils/log-viewer.ts +0 -209
  73. package/src/utils/minmax.ts +0 -126
  74. package/src/utils/pattern.tsx +0 -50
  75. package/src/utils/stack/stack-legend.ts +0 -100
  76. package/src/utils/tracks.ts +0 -1559
  77. package/tsconfig.json +0 -8
@@ -1,196 +0,0 @@
1
- {
2
- "name": "Template 2",
3
- "scale": {
4
- "primary": "tvd"
5
- },
6
- "tracks": [
7
- {
8
- "plots": [
9
- {
10
- "name": "ZONELOG",
11
- "style": "discrete"
12
- }
13
- ]
14
- },
15
- {
16
- "plots": [
17
- {
18
- "name": "PORO"
19
- },
20
- {
21
- "name": "NTG"
22
- },
23
- {
24
- "name": "SW"
25
- }
26
- ]
27
- },
28
- {
29
- "plots": [
30
- {
31
- "name": "FAULT_PROXIMITY_FLAG",
32
- "style": "discrete"
33
- }
34
- ]
35
- },
36
- {
37
- "plots": [
38
- {
39
- "name": "RDE_ORIG",
40
- "style": "discrete"
41
- }
42
- ]
43
- },
44
- {
45
- "plots": [
46
- {
47
- "name": "FACIES",
48
- "style": "discrete"
49
- }
50
- ]
51
- },
52
- {
53
- "plots": [
54
- {
55
- "name": "ZONE_MAIN",
56
- "style": "discrete"
57
- }
58
- ]
59
- },
60
- {
61
- "plots": [
62
- {
63
- "name": "FaultDistance_HUM",
64
- "style": "discrete"
65
- }
66
- ]
67
- },
68
- {
69
- "plots": [
70
- {
71
- "name": "BDIA"
72
- }
73
- ]
74
- },
75
- {
76
- "plots": [
77
- {
78
- "name": "ROPA"
79
- }
80
- ]
81
- },
82
- {
83
- "plots": [
84
- {
85
- "name": "BVW"
86
- }
87
- ]
88
- },
89
- {
90
- "plots": [
91
- {
92
- "name": "COAL_FLAG"
93
- }
94
- ]
95
- },
96
- {
97
- "plots": [
98
- {
99
- "name": "KLOGH"
100
- }
101
- ]
102
- },
103
- {
104
- "plots": [
105
- {
106
- "name": "PHIF"
107
- }
108
- ]
109
- },
110
- {
111
- "plots": [
112
- {
113
- "name": "DD_PRESS"
114
- }
115
- ]
116
- },
117
- {
118
- "plots": [
119
- {
120
- "name": "DD_VOLUME"
121
- }
122
- ]
123
- },
124
- {
125
- "plots": [
126
- {
127
- "name": "TEMP",
128
- "type": "linestep"
129
- }
130
- ]
131
- },
132
- {
133
- "plots": [
134
- {
135
- "name": "DD_PRESS_MOD_1000"
136
- }
137
- ]
138
- },
139
- {
140
- "plots": [
141
- {
142
- "name": "DD_PRESS_MOD_100"
143
- }
144
- ]
145
- },
146
- {
147
- "plots": [
148
- {
149
- "name": "RACESLM"
150
- }
151
- ]
152
- },
153
- {
154
- "plots": [
155
- {
156
- "name": "RPAESLM"
157
- }
158
- ]
159
- },
160
- {
161
- "plots": [
162
- {
163
- "name": "RACELM"
164
- }
165
- ]
166
- },
167
- {
168
- "plots": [
169
- {
170
- "name": "RPCELM"
171
- }
172
- ]
173
- },
174
- {
175
- "plots": [
176
- {
177
- "name": "RAAELM"
178
- }
179
- ]
180
- },
181
- {
182
- "plots": [
183
- {
184
- "name": "RPAELM"
185
- }
186
- ]
187
- }
188
- ],
189
- "styles": [
190
- {
191
- "name": "discrete",
192
- "type": "stacked",
193
- "colorTable": "Stratigraphy"
194
- }
195
- ]
196
- }
@@ -1,156 +0,0 @@
1
- [
2
- {
3
- "name": "Physics",
4
- "discrete": false,
5
- "description": "Full options color table",
6
- "colorNaN": [255, 255, 255],
7
- "colorBelow": [255, 0.0, 0.0],
8
- "colorAbove": [0.0, 0.0, 255],
9
- "colors": [
10
- [0.0, 255, 0.0, 0.0],
11
- [0.25, 182, 182, 0.0],
12
- [0.5, 0.0, 255, 0.0],
13
- [0.75, 0.0, 182, 182],
14
- [1.0, 0.0, 0.0, 255]
15
- ]
16
- },
17
- {
18
- "name": "Physics reverse",
19
- "discrete": false,
20
- "colors": [
21
- [0.0, 0.0, 0.0, 255],
22
- [0.25, 0.0, 182, 182],
23
- [0.5, 0.0, 255, 0.0],
24
- [0.75, 182, 182, 0.0],
25
- [1.0, 255, 0.0, 0.0]
26
- ]
27
- },
28
- {
29
- "name": "Rainbow",
30
- "discrete": false,
31
- "colors": [
32
- [0.0, 255, 0.0, 0.0],
33
- [0.2, 182, 182, 0.0],
34
- [0.4, 0.0, 255, 0.0],
35
- [0.6, 0.0, 182, 182],
36
- [0.8, 0.0, 0.0, 255],
37
- [1.0, 182, 0.0, 182]
38
- ]
39
- },
40
- {
41
- "name": "Rainbow reverse",
42
- "discrete": false,
43
- "colors": [
44
- [0.0, 182, 0.0, 182],
45
- [0.2, 0.0, 0.0, 255],
46
- [0.4, 0.0, 182, 182],
47
- [0.6, 0.0, 255, 0.0],
48
- [0.8, 182, 182, 0.0],
49
- [1.0, 255, 0.0, 0.0]
50
- ]
51
- },
52
- {
53
- "name": "Colors_set_1",
54
- "discrete": "true",
55
- "colors": [
56
- [0, 255, 13, 186],
57
- [1, 255, 64, 53],
58
- [2, 247, 255, 164],
59
- [3, 112, 255, 97],
60
- [4, 9, 254, 133],
61
- [5, 254, 4, 135],
62
- [6, 255, 5, 94],
63
- [7, 32, 50, 255],
64
- [8, 109, 255, 32],
65
- [9, 254, 146, 92],
66
- [10, 185, 116, 255],
67
- [11, 255, 144, 1],
68
- [12, 157, 32, 255],
69
- [13, 255, 26, 202],
70
- [14, 73, 255, 35]
71
- ]
72
- },
73
- {
74
- "name": "Stratigraphy",
75
- "discrete": true,
76
- "colorNaN" : [255, 64, 64],
77
- "colors": [
78
- [0, 255, 193, 0],
79
- [1, 255, 120, 61],
80
- [2, 255, 155, 76],
81
- [3, 255, 223, 161],
82
- [4, 226, 44, 118],
83
- [5, 255, 243, 53],
84
- [6, 255, 212, 179],
85
- [7, 255, 155, 23],
86
- [8, 255, 246, 117],
87
- [9, 255, 241, 0],
88
- [10, 255, 211, 178],
89
- [11, 255, 173, 128],
90
- [12, 248, 152, 0],
91
- [13, 154, 89, 24],
92
- [14, 0, 138, 185],
93
- [15, 82, 161, 40],
94
- [16, 219, 228, 163],
95
- [17, 0, 119, 64],
96
- [18, 0, 110, 172],
97
- [19, 116, 190, 230],
98
- [20, 0, 155, 212],
99
- [21, 0, 117, 190],
100
- [22, 143, 40, 112],
101
- [23, 220, 153, 190],
102
- [24, 226, 44, 118],
103
- [25, 126, 40, 111],
104
- [26, 73, 69, 43],
105
- [27, 203, 63, 42],
106
- [28, 255, 198, 190],
107
- [29, 135, 49, 45],
108
- [30, 150, 136, 120],
109
- [31, 198, 182, 175],
110
- [32, 166, 154, 145],
111
- [33, 191, 88, 22],
112
- [34, 255, 212, 179],
113
- [35, 251, 139, 105],
114
- [36, 154, 89, 24],
115
- [37, 186, 222, 200],
116
- [38, 0, 124, 140],
117
- [39, 87, 84, 83]
118
- ]
119
- },
120
- {
121
- "name": "Colors_set_3",
122
- "discrete": "true",
123
- "colors": [
124
- [0, 120, 181, 255],
125
- [1, 255, 29, 102],
126
- [2, 247, 255, 173],
127
- [3, 239, 157, 255],
128
- [4, 186, 255, 236],
129
- [5, 46, 255, 121],
130
- [6, 212, 255, 144],
131
- [7, 165, 255, 143],
132
- [8, 122, 255, 89],
133
- [9, 255, 212, 213]
134
- ]
135
- },
136
- {
137
- "name": "Porosity",
138
- "discrete": false,
139
- "colors": [
140
- [0.00, 255, 246, 117],
141
- [0.11, 255, 243, 53],
142
- [0.18, 255, 241, 0],
143
- [0.25, 155, 193, 0],
144
- [0.32, 255, 155, 23],
145
- [0.39, 255, 162, 61],
146
- [0.46, 255, 126, 45],
147
- [0.53, 227, 112, 24],
148
- [0.60, 246, 96, 31],
149
- [0.67, 229, 39, 48],
150
- [0.74, 252, 177, 170],
151
- [0.81, 236, 103, 146],
152
- [0.88, 226, 44, 118],
153
- [1.00, 126, 40, 111]
154
- ]
155
- }
156
- ]
@@ -1,186 +0,0 @@
1
- [
2
- {
3
- "header": {
4
- "name": "Set 1",
5
- "well": "15/9-19 A"
6
- },
7
- "curves": [
8
- {
9
- "name": "MD",
10
- "quantity": "m",
11
- "unit": "m",
12
- "valueType": "float",
13
- "dimensions": 1
14
- },
15
- {
16
- "name": "HORIZON",
17
- "valueType": "string",
18
- "dimensions": 1
19
- }
20
- ],
21
- "data": [
22
- [ 1644, "Hor_1" ],
23
- [ 2788, "Hor_2" ],
24
- [ 3288, "Hor_3" ],
25
- [ 3611, "Hor_4" ],
26
- [ 3911, "Hor_5" ],
27
- [ 4411, "Hor_6" ]
28
- ],
29
- "metadata_discrete": {
30
- "HORIZON": {
31
- "attributes": [
32
- "color",
33
- "code"
34
- ],
35
- "objects": {
36
- "Hor_1": [
37
- [
38
- 255,
39
- 13,
40
- 186,
41
- 255
42
- ],
43
- 0
44
- ],
45
- "Hor_2": [
46
- [
47
- 255,
48
- 64,
49
- 53,
50
- 255
51
- ],
52
- 1
53
- ],
54
- "Hor_3": [
55
- [
56
- 247,
57
- 255,
58
- 164,
59
- 255
60
- ],
61
- 2
62
- ],
63
- "Hor_4": [
64
- [
65
- 147,
66
- 255,
67
- 64,
68
- 255
69
- ],
70
- 3
71
- ],
72
- "Hor_5": [
73
- [
74
- 255,
75
- 147,
76
- 64,
77
- 255
78
- ],
79
- 3
80
- ],
81
- "Hor_6": [
82
- [
83
- 155,
84
- 164,
85
- 247,
86
- 255
87
- ],
88
- 3
89
- ]
90
- }
91
- }
92
- }
93
- },
94
- {
95
- "header": {
96
- "name": "Set 1",
97
- "well": "L916MUD"
98
- },
99
- "curves": [
100
- {
101
- "name": "MD",
102
- "quantity": "m",
103
- "unit": "m",
104
- "valueType": "float",
105
- "dimensions": 1
106
- },
107
- {
108
- "name": "HORIZON",
109
- "valueType": "string",
110
- "dimensions": 1
111
- }
112
- ],
113
- "data": [
114
- [ 1444, "Hor_1" ],
115
- [ 2888, "Hor_2" ],
116
- [ 3288, "Hor_3" ],
117
- [ 3811, "Hor_4" ],
118
- [ 4011, "Hor_5" ],
119
- [ 4131, "Hor_6" ]
120
- ],
121
- "metadata_discrete": {
122
- "HORIZON": {
123
- "attributes": [
124
- "color",
125
- "code"
126
- ],
127
- "objects": {
128
- "Hor_1": [
129
- [
130
- 255,
131
- 13,
132
- 186,
133
- 255
134
- ],
135
- 0
136
- ],
137
- "Hor_2": [
138
- [
139
- 255,
140
- 64,
141
- 53,
142
- 255
143
- ],
144
- 1
145
- ],
146
- "Hor_3": [
147
- [
148
- 247,
149
- 255,
150
- 164,
151
- 255
152
- ],
153
- 2
154
- ],
155
- "Hor_4": [
156
- [
157
- 147,
158
- 255,
159
- 64,
160
- 255
161
- ],
162
- 3
163
- ],
164
- "Hor_5": [
165
- [
166
- 255,
167
- 147,
168
- 64,
169
- 255
170
- ],
171
- 3
172
- ],
173
- "Hor_6": [
174
- [
175
- 155,
176
- 164,
177
- 247,
178
- 255
179
- ],
180
- 3
181
- ]
182
- }
183
- }
184
- }
185
- }
186
- ]
package/src/index.ts DELETED
@@ -1,8 +0,0 @@
1
- export { default } from "./WellLogViewer";
2
- export { default as WellLogViewer } from "./WellLogViewer";
3
- export { default as SyncLogViewer } from "./SyncLogViewer";
4
-
5
- export { default as WellLogView } from "./components/WellLogView";
6
- export { default as WellLogViewWithScroller } from "./components/WellLogViewWithScroller";
7
-
8
- export { default as WellLogSpacer } from "./components/WellLogSpacer";
package/src/utils/axes.ts DELETED
@@ -1,26 +0,0 @@
1
- export const axisTitles: Record<string, string> = {
2
- // language dependent
3
- md: "MD",
4
- tvd: "TVD",
5
- time: "TIME",
6
- };
7
-
8
- // mnemos could be case insentitive ("Depth")
9
- export const axisMnemos: Record<string, string[]> = {
10
- // depth based logging data
11
- md: [
12
- "DEPTH",
13
- "DEPT",
14
- "MD" /*Measured Depth*/,
15
- "TDEP" /*"Tool DEPth"*/,
16
- "MD_RKB" /*Rotary Relly Bushing*/,
17
- ],
18
- tvd: [
19
- "TVD" /*True Vertical Depth*/,
20
- "TVDSS" /*SubSea*/,
21
- "DVER" /*"VERtical Depth"*/,
22
- "TVD_MSL" /*below Mean Sea Level*/,
23
- ],
24
- // time based logging data
25
- time: ["TIME"],
26
- };