Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fixing a bug with the amplitude plot
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkheisler committed Oct 19, 2015
1 parent df6017f commit 844ce76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
11 changes: 5 additions & 6 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@ indexes:
- kind: Fluid
ancestor: yes
properties:
- name: name
- name: group
- name: date
direction: desc

- kind: Fluid
ancestor: yes
properties:
- name: user
- name: date
direction: desc
- name: name

- kind: Fluid
ancestor: yes
properties:
- name: group
- name: user
- name: date
direction: desc

Expand All @@ -178,4 +178,3 @@ indexes:
- name: group
- name: date
direction: desc

8 changes: 4 additions & 4 deletions static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ app.controller('2DCtrl', function ($scope, $http, $alert, $timeout) {
var curColour = $scope.curImage.colours[h];
for(var i = 0; i < arr.length; i++){
for(var j = 0; j < $scope.rocks.length; j++){
if((arr[i].rock.name === $scope.rocks[j].name) &&
if((arr[i].rock.db_key === $scope.rocks[j].db_key) &&
(arr[i].colour === curColour)){
$scope.curImage.rocks.push($scope.rocks[j]);
}
Expand Down Expand Up @@ -671,7 +671,7 @@ app.controller('2DCtrl', function ($scope, $http, $alert, $timeout) {
.draw();
}

$scope.aTArr = getCrossSection(data.seismic, $scope.twt);
$scope.aTArr = getCrossSection(data.seismic, $scope.twt, $scope.data.dt);

if(!$scope.aTHor){
$scope.aTHor = g3.horizon($scope.aTPlot, $scope.aTArr).draw();
Expand Down Expand Up @@ -704,7 +704,7 @@ app.controller('2DCtrl', function ($scope, $http, $alert, $timeout) {
.draw();
}

$scope.aOArr = getCrossSection($scope.data.offset_gather, $scope.twt);
$scope.aOArr = getCrossSection($scope.data.offset_gather, $scope.twt, $scope.data.dt);

if(!$scope.aOHor){
$scope.aOHor = g3.horizon($scope.aOPlot, $scope.aOArr).draw();
Expand Down Expand Up @@ -738,7 +738,7 @@ app.controller('2DCtrl', function ($scope, $http, $alert, $timeout) {
.draw();
}

$scope.aFArr = getCrossSection($scope.data.wavelet_gather, $scope.twt);
$scope.aFArr = getCrossSection($scope.data.wavelet_gather, $scope.twt, $scope.data.dt);

if(!$scope.aFHor){
$scope.aFHor = g3.horizon($scope.aFPlot, $scope.aFArr).draw();
Expand Down
6 changes: 3 additions & 3 deletions static/js/controllers/2DCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ app.controller('2DCtrl', function ($scope, $http, $alert, $timeout) {
.draw();
}

$scope.aTArr = getCrossSection(data.seismic, $scope.twt);
$scope.aTArr = getCrossSection(data.seismic, $scope.twt, $scope.data.dt);

if(!$scope.aTHor){
$scope.aTHor = g3.horizon($scope.aTPlot, $scope.aTArr).draw();
Expand Down Expand Up @@ -694,7 +694,7 @@ app.controller('2DCtrl', function ($scope, $http, $alert, $timeout) {
.draw();
}

$scope.aOArr = getCrossSection($scope.data.offset_gather, $scope.twt);
$scope.aOArr = getCrossSection($scope.data.offset_gather, $scope.twt, $scope.data.dt);

if(!$scope.aOHor){
$scope.aOHor = g3.horizon($scope.aOPlot, $scope.aOArr).draw();
Expand Down Expand Up @@ -728,7 +728,7 @@ app.controller('2DCtrl', function ($scope, $http, $alert, $timeout) {
.draw();
}

$scope.aFArr = getCrossSection($scope.data.wavelet_gather, $scope.twt);
$scope.aFArr = getCrossSection($scope.data.wavelet_gather, $scope.twt, $scope.data.dt);

if(!$scope.aFHor){
$scope.aFHor = g3.horizon($scope.aFPlot, $scope.aFArr).draw();
Expand Down

0 comments on commit 844ce76

Please sign in to comment.