Month: May 2016

Application of Voronoi to Teapot Dome Field

This is a repost from our Ruths.ai channel on YouTube.

“In this demonstration we apply a geospatial R package to Spotfire (via TERR) to provide “planes” or “boundaries” across an oil field. The oil field is Teapot dome (open data source) and the R package is deldir. We have applied this technique to fields such as Eagleford or Cooper Basin and the technique can be augmented with further statistical methods such as kriging to gain further understanding into areal (i.e. well) performance or behavior.”

Using Spotfire Controls as JavaScript Objects

Let’s say that you are building an advanced workflow. You may need to take advantage of the text area’s capabilities to incorporate jQuery, CSS, and other responsive elements to design your interactive areas. I want to enumerate some of the techniques that I’ve used in the Blackjack template on Exchange.ai as a suggestion for best practices.

Read More

Using Spotfire for Decline Model Identification

A common reservoir engineering workflow is identifying production decline model(s) suitable for the production profile of wells or reservoirs; and quite frequently, asset management experts are tasked with calculating values of determining factors, and applying those factors in decline curve equations to establish forecast methodologies applicable to different periods in an asset’s production history.

Read More

Hide elements inside a SpotfireControl

Let’s say you want to remove an item from the dropdown of a SpotfireControl.

You can look inside of a Spotfire Control with the following JavaScript:

HTML:

<p id="turkey"><SpotfireControl id="b6d7d7d9761649bd9f87f096def91dfb" ></p>

<p id="bacon"></p>

JS:

$( document ).ready(function() {
   $('#bacon').text($('#turkey').html());
});

This lets you see the inside of the SpotfireControl. We see that the ‘Variable’ selection is the one that we want to hide. Simply grab the object using the title attribute.

JS:

$( document ).ready(function() {
   $("[title='Variable']").hide();
});

Viola!