-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (112 loc) · 5.39 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html ng-app="psqlApp">
<head>
<title>d3-based SU Picker</title>
<script src="bower_components/d3/d3.min.js" charset="utf-8"></script>
<script src="bower_components/angular/angular.min.js" charset="utf-8"></script>
<script type="text/javascript" src="app/app.js" charset="utf-8"></script>
<script type="text/javascript" src="app/d3seis.js" charset="utf-8"></script>
<script type="text/javascript" src="app/d3psd.js" charset="utf-8"></script>
<script type="text/javascript" src="app/autopicker.js" charset="utf-8"></script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<link href="app/chart.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div ng-controller="MainCtrl as mainctrl">
<div class="well">
<h1>SU Picker <small>v.{{mainctrl.version}}</small></h1>
<input style="display:none" type="file" id="openfile" accept=".su,.segy,.sgy"></input>
<input style="display:none" type="file" id="savefile" accept=".pks,.json,.txt" nwsaveas></input>
<div class="row">
<div class="col-sm-4" style="float:left;">
<button class="btn btn-primary btn-lg" ng-click="mainctrl.open()" ng-disabled="!mainctrl.wsIsOpen">Open SU File</button>
</div>
<div class="col-sm-4" style="float:left;">
<button class="btn btn-primary btn-lg" ng-click="mainctrl.save()">Save Picks...</button>
</div>
</div>
<div class="alert alert-warning" ng-hide="mainctrl.wsIsOpen==true">
Wait for suServer to start...
</div>
<div class="row" ng-hide="mainctrl.filename == null">
<div class="col-sm-4 well">
<h3>Current file: {{mainctrl.basename}}</h3>
<table style="width: auto;" class="table table-bordered">
<tr>
<td>dt / ns</td>
<td>{{mainctrl.dt}}s / {{mainctrl.ns}}</td>
</tr>
<tr>
<td>FFIDs / Min / Max</td>
<td>{{mainctrl.nens}} / {{mainctrl.ens0}} / {{mainctrl.ensN}}</td>
</tr>
<tr>
<td>Curr FFID</td>
<td>{{mainctrl.currEnsNum}}</td>
</tr>
</table>
<p style="font-size: 18px">
Decimate: <input type="checkbox" ng-model="mainctrl.decimate" style="margin-right: 10px;margin-left: 6px;"></br>
<span width="100px">Start Time:</span><input type="number" step="0.1" ng-model="mainctrl.startT" style="margin-left: 4px; width: 100px;"></br>
<span width="100px">End Time:</span> <input type="number" step="0.1" ng-model="mainctrl.endT" style="margin-left: 4px; width: 100px;"></br>
</p>
</div>
<div class="col-sm-8" style="display: inline-block;">
<d3-psd data="mainctrl.psd"></d3-psd>
</div>
</div>
<div class="row" ng-hide="mainctrl.filename == null">
<div class="col-sm-6" style="float: left;">
<p style="font-size: 18px">
<button class="btn btn-primary btn-lg" ng-enabled="mainctrl.currEnsNum" ng-click="mainctrl.fcheck()">Filter</button>
F<sub>lo</sub>: {{mainctrl.flo}} Hz, F<sub>hi</sub>: {{mainctrl.fhi}} Hz.
</p>
</div>
<div class="col-sm-4" style="float: left;">
<p style="font-size: 18px">
F<sub>lo</sub>: <input id="flo" type="number" min="0.1" max="{{mainctrl.fhi}}" ng-model="mainctrl.flo" step="0.1" style="margin-right: 10px; width: 80px; display: inline-block;">
F<sub>hi</sub>: <input type="number" min="{{mainctrl.flo}}" max="{{mainctrl.fnyq}}" ng-model="mainctrl.fhi" step="0.1" style="width: 80px;display: inline-block;">
</p>
</div>
</div>
<div class="row" ng-hide="mainctrl.filename == null">
<div class="col-sm-4" style="float:left;">
<button class="btn btn-primary btn-lg" ng-click="mainctrl.prev()">
Prev <span class="glyphicon glyphicon-chevron-left"></span>
</button>
</div>
<div class="col-sm-4">
<button class="btn btn-primary btn-lg" ng-click="mainctrl.next()">
<span class="glyphicon glyphicon-chevron-right"></span> Next
</button>
</div>
</div>
<div class="well">
<d3-seis ng-if="mainctrl.data" data="mainctrl.data" setpicks="mainctrl.setpicks(picks)">
</div>
<div class="well">
<h3>Keys</h3>
<p><h4>Cursor motion</h4>
<kbd>h</kbd> / <kbd>l</kbd> - left/right;
<kbd>j</kbd> / <kbd>k</kbd> - down/up.
Capital versions move by 10x; i.e. <kbd>H</kbd> moves by
10 traces where <kbd>h</kbd> move by 1.
</p>
<p><h4>Display</h4>
<kbd>z</kbd> / <kbd>Z</kbd> - zoom in or out in time;
<kbd>t</kbd> / <kbd>T</kbd> - zoom in or out in offset;
<kbd>y</kbd> / <kbd>Y</kbd> - increase trace amplitudes up or down.
</p>
<p><h4>Picking</h4>
<kbd>p</kbd> / <kbd>d</kbd> - pick/delete pick;
</p>
<p><h4>Mouse</h4>
Mouse click sets NMO anchor point; mouse position defines NMO velocity;
mouse out of window to cancel NMO line.
</div>
</div>
</body>
</html>