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

Commit

Permalink
getting moduli from JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed Jun 20, 2014
1 parent 1ead2a7 commit 109b3bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
4 changes: 3 additions & 1 deletion default_rocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
{'name':'Bitumen Sand',
'description': '',
'vp': 2375, 'vs': 1000, 'rho': 2075,
'vp_std': 50, 'vs_std': 50, 'rho_std':50 }]
'vp_std': 50, 'vs_std': 50, 'rho_std':50 }

]



Expand Down
67 changes: 35 additions & 32 deletions templates/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@
<link rel="stylesheet" href="static/css/slider.css">
</head>



<!-- JAVASCRIPT and DATA
================================================================ -->
<script src="static/js/bootstrap-slider.js"></script>




<script>
$(document).ready(function() {

Expand Down Expand Up @@ -72,9 +67,6 @@

seismic_model.on_change = param_changed;




plot_container = new Scenario(null, null, {},
null);
plot_container.on_change = param_changed;
Expand All @@ -95,10 +87,7 @@
plot_container.default_args(argumentss);

console.log('div#plot_place');





})
}

Expand Down Expand Up @@ -226,11 +215,15 @@
metadata=data.metadata);
// This will Create a form see above
plot_container.display('div#plot_place',
metadata=data.metadata);
metadata=data.metadata);

$('div#meta_place').replaceWith(
data.metadata['moduli']
);
console.log(data.metadata);

update_image(data);
};

$("#loader").show();
forward_model.post(server, cb, update=true);

Expand Down Expand Up @@ -525,27 +518,37 @@ <h3 class="panel-title">Model</h3>

<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Result</h3>
<h3 class="panel-title">Result</h3>
</div>
<div class="panel-body">
<div class="col-md-9">
<img class="img-thumbnail" id="plot_image" href=URL alt=""
src="/static/img/placeholder_model_image.png"
height=800, width=1200 />
<img style="position:absolute;top:0;left:0" id="loader" src="/static/img/ajax-loader.gif" />
<!-- Updated by the create_image button above-->
</div>
<div class="panel-heading">
<h3 class="panel-title">Plot controls</h3>
</div>
<div class="col-md-3">
<div id="plot_place" class="row"></div>
<!-- This is where there survey parameters will be set -->
<div style="margin-top:24px;" id="seismic_place" class="row"></div>
</div>
<div class="col-md-9">
<img class="img-thumbnail" id="plot_image" href=URL alt=""
src="/static/img/placeholder_model_image.png"
height=800, width=1200 />
<img style="position:absolute;top:0;left:0" id="loader" src="/static/img/ajax-loader.gif" />
<!-- Updated by the create_image button above-->
</div>
<div class="panel-heading">
<h3 class="panel-title">Plot controls</h3>
</div>
<div class="col-md-3">
<div id="plot_place" class="row"></div>
<!-- This is where there survey parameters will be set -->
<div style="margin-top:24px;" id="seismic_place" class="row"></div>
</div>
</div>
</div>
</div> <!-- end of panel -->

<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Metadata</h3>
</div>
<div class="panel-body">
<p><div id="meta_place"></div></p>
</div> <!-- end of panel-body -->
</div> <!-- end of panel -->


</div>

Expand Down

0 comments on commit 109b3bd

Please sign in to comment.