Difference between revisions of "Dinver: dinvermatlab"

From GeopsyWiki
Jump to navigation Jump to search
 
Line 2: Line 2:
  
 
==Installing ''dinvermatlab''==
 
==Installing ''dinvermatlab''==
This is a hard task TODO
+
During Geopsy installation, Matlab path has to be configured, see the [[Installation:Linux#Matlab_.28Optional.29|Installation instructions]].
  
 
== Invoking ''dinvermatlab'' ==
 
== Invoking ''dinvermatlab'' ==

Latest revision as of 16:30, 18 January 2013

dinvermatlab is an external plugin for dinver. It implements forward computations for any Inverse problem using Matlab.

Installing dinvermatlab

During Geopsy installation, Matlab path has to be configured, see the Installation instructions.

Invoking dinvermatlab

Plugin selection at dinver startup

Upon dinver startup, select the Matlab forward computation module by checking the corresponding check box. See Dinver plugins for more details, especially if Matlab forward computation module does not appear by default.

The module selection can be set also directly in the command line invoking dinver:

 dinver -i dinvermatlab

The use of this plugin is mostly common to Generic Dinver interface except the Target and Parameters panels.

Target panel

Target panel

If this panel does not appear, you can show it with Tools menu. It lets you select the information about your Matlab forward code. The different text boxes are:

  • Matlab startup is the command line that should be invoked by dinvermatlab to start Matlab. The default command is matlab -nosplash. Other options are available like -nojvm of -nodisplay to accelerate Matlab startup. See the Matlab documentation.
  • Script path is the path to the Matlab scripts the user wrote for the forward computation.
  • Init script is the Matlab script necessary to initialize the forward computation. This script is used to load data etc. This line is executed as it would be in Matlab. In case of simple commands, it is even not necessary to create a .m file.
  • Forward script is the Matlab script of the user that computes the forward model and the misfit between the forward model and the data. This line is executed as it would be in Matlab. Among its input, it should receive the DinverModel variable, a vector of real values containing the model parameters as defined in the Parameters panel. It has to output the variable DinverMisfit, containing the misfit value (real number).


Parameters panel

This panel is exactly the same as for the External forward computation plugin.