Firdian - Bouguer Anomaly Calculator With MATLAB GUI - Grou A8 - Geophysics Computation
Firdian - Bouguer Anomaly Calculator With MATLAB GUI - Grou A8 - Geophysics Computation
Abstract. The bouguer anomaly price is the observation price of the correction force that has
been corrected by the correction correction. Data from field observations or data cannot be
directly used to interpret the conditions below because the results of force measurements in the
field must be reduced so as to correct so as to produce prices in accordance with the existing
situation. This is called the transition anomaly. The price of this anomaly is a deviation from the
theoretical value which is then obtained by the bouguer anomaly. This paper introduces the
MATLAB GUI program to calculate raw data in the field to become a bouguer anomaly price.
There are 3 panels in this program. Panel 1 is used to get the price of free air correction. Panel 2
is used to obtain the price of field correction. And panel 3 to get the price of the anomaly
bouguer itself. The GUI for creating an anomaly calculator bouguer program is still very simple
and is an update from the previous program. So the need for further development of this
program.
1. Introduction.
Geophysics was marked by the discovery of the theory of magnetic properties by Gilbert
and Newton's replacement theory. And the science of geophysics is very closely related to the
physics of the earth and the atmosphere of its constituents. One of the geophysical methods is the
meeting method. The method returns one of the methods approved in geophysics based on
Newton's law. The deciding method is a very effective method for mapping subsurface structures
based on different types (ρ). This method is widely used in mineral exploration, because it is able
to limit the density of the mass of the surrounding minerals. In research using the conversion
method, it must reduce the observation by force weight correction, until a bouger anomaly is
obtained. This anomaly arises because of the regional force field and local gravity. In this paper,
an anomaly bouger calculator program will be introduced to determine the value of the anomaly
bouger itself based on the MATLAB GUI. This program is a program created based on a pre-
existing program. This program is also made to process various style corrections to obtain the
price of an anomaly bouger.
2. Methodology
We are trying to implement one of the features in MATLAB which is the Graphical User
Interface (GUI) as a desktop application to create a program that is able to process corrections in
the gravity method to find the price of the bouguer anomaly. Actually, the program to create a
bouger correction calculator was made by ITS geophysical engineering students when they were
in semester 4 of 2015. But our level kaka only made programs that might have some deficiencies
such as not being able to process gravity corrections. This time we tried to make a simple
desktop application that made it easier for users in the process of determining the value of an
anomaly bouguer based on existing variables and corrections. In making the GUI for the bouguer
anomaly calculator, we divide it into four stages, which may be more or less the same as the
stages of many people in creating GUI-based programs.
The first stage is done by determining the formula needed in making an anomaly
calculator bouguer. Where to determine the value of anomaly bouguer, must go through several
stages of correction such as Free Air Correction and Terrain Correction. Where both corrections
will be entered into the anomaly bouguer formula. Free Air Correction is to eliminate the effect
of height on the measurement value at an observation point. This correction is caused by the
influence of altitude without questioning the mass between the measuring point and sea level.
Free Air Correction can be found using the formula (-0.3086 * h), and h is the height of the
measuring point.
Terrain Correction, or can be called a field correction, is used to eliminate the effect of
height on the measurement value at an observation point. This correction is caused by the
influence of altitude without questioning the mass between the measuring point and sea level. So
between the sea level and the measuring point is just free air. To eliminate the effect of height on
the measurement value at an observation point. This correction is caused by the influence of
altitude without questioning the mass between the measuring point and sea level. So between the
sea level and the measuring point is just free air.
The second step is to make the interface design done by adjusting to the formula that has
been used in the anomaly calculator bouguer program. At that stage, it starts by making a
flowchart of the application that will run. Flowchart application is shown in Figure 2. After that
the interface based on flowchart is done by placing several toolbars that will be useful to
facilitate users in running the GUI as well as displaying information about what results will be
obtained from running the GUI. And for the toolbar in this program use more static text, edit
text, and panels in the GUI.
The next step is the coding phase, which is done by putting the formula that has been
made with the matlab programming language on the tool that was created during the interface
design stage. This code writing is also done to make each toolbar can interact with each other so
that it can run as expected. This process can be done by pressing the edit button on the GUI
which will automatically show the script program based on the GUI that has been created. The
last stage is the testing phase where the program that has been completed is tested by testing the
program. After that, try to enter data and try whether the tools that have been made run well. If
an error occurs in the program, it must be corrected in the script.
Start
3. Result
The output of this GUI program is a calculator application for calculating values from
bouguer anomalies, which consist of 3 panels, each of which has a different output value. First
there is a panel that is used to calculate the value of the Free Air Correction, then there is a panel
that is used to calculate the value of the field correction. On each panel There is a button used to
calculate data from variables that have been entered. Also provided a reset button on each panel
to reset the data entered so as not to have to replace the data that has been entered one by one. In
the anomaly bouguer panel there is a text edit column with FAC and TC variables which are
variable data that can be obtained by calculating the data in the Free Air Correction and Terrain
Correction panels. The figure also provides a list of columns to study the description of each
variable in the calculator.
This calculator does not have a unit conversion feature, which may be due to a lack of
information about syntax that can be used to display a program that can convert units of each
correction price or an anomaly bouguer price. Also in this GUI is not provided a feature to load
data, which is a feature that can be used to calculate data in the forlder (.dat) for example. Must
input data must be done manually and one by one. And there are no features available to store
calculated data. What must be resolved is a lack of this program. It is hoped that readers can
create programs that can help this program.
4. Discussion
The MATLAB GUI program for creating an anomaly calculator bouguer was first created
by typing "guide" in the MATLAB command window. After that a new page window will
appear and then choose a blank GUI because the program will be created from an empty GUI
which is then added to the tools available in the MATLAB GUI. In this program, only a few
tools are needed, namely, static text, edit text, pushbutton, panel and a list box as a description.
How to move the logo tool that is available next to the GUI and then adjust the position in the
GUI. Layout created for this program is made as shown.
Figure 3. The GUI Layout
After saving the location of the GUI, the GUI will automatically save 2 files with the
Figure file with the extension .fig and the code file with the extension .m. A figure file is a binner
file that contains a layout description. And the code file contains the MATLAB function which
controls the program nets. To make an application work, it is necessary to add the code to the
program (.m) file. In the initial appearance of the GUI, several scripts have been added so that
they can receive the information obtained then it is processed and then displayed in the GUI the
results of that processing.
Figure 4. The “Calculate” pushbutton callback
When placing the tools that are available in the GUI display, it is very important to pay
attention to the tag of the tool, because it is very influential on the program to be carried out. On
the Calculate, FAC, and TC buttons, the same function is to calculate the data entered. So that
the syntax used is not much different, different parts are the formulas used and for example the
variables used. The buttons use the "callback" function, where the function will run if the button
that has the "callback" function is pressed. On the button there is also the syntax "str2num". This
styntax serves to convert the data entered in the edit text that was originally in the form of a
string converted into numbers. The function of get.handles is also used so that it can get data
inputted into edit text. For naming variable names there are no specific rules, the most important
thing is we know what variables are being used
There is a variable containing the formula for the Calculate, FAC, and TC buttons. And
the formula must be in the button callback function. After inputting the formula, the results of the
process cannot be automatically displayed on the GUI screen. The variable of the formula must
be converted again into a string using the syntax "num2str", so that it can be displayed on the
GUI screen. So the syntax "num2str" is the opposite of the syntax "str2num". Because the data is
obtained from editing text using the syntax "get.handles", it is necessary to input the syntax
"set.handles", so that after the data is processed it can be directly displayed on another edit text.
And the need to provide information if the outpu data is in the form of a string, it needs to add
the "string" to the syntax "set.handles".
On the reset button, the FAC reset, as well as the TC reset, also have the same syntax. In
this button there is a syntax "questdlg" that functions if we press the button, then a question will
appear that contains options, for the question sentence can be adjusted to the conditions at will.
The reset button contains an if function followed by the "strcmp" syntax. This syntax serves to
compare 2 strings of the options provided. In that button, if no option is selected, the data that
has been inputted in the edit text will not be researched. To bring up these conditions use the
return function. If the option is selected, the button will process the set.handles syntax in the
desired edit text and display it as a string without numbers (‘string’, ‘‘).
5. Conclusion
The authors thanks to Mr. Mariyanto for helping his students in making geophysical
computing programs and guiding their students to complete this final project
References
12.
HMGF, F. U. (2015, december 16). Metode Gravitasi. Retrieved from Himpunan Mahasiswa
gravitasi/
Latifah, I. (2010). penentuan anomali gouguer dan densitas rata rata batuan berdasarkan data