Task: Plot Model

Plot Model from .nd File

To plot all parameters of a model,

  1. read the model from an .nd file using model=mkreadnd(pfad);
  2. call mkplotmodel(model);

This generates several subplots in the current figure window. The figure window is resized.

plotmodel example plot
Example for a model plot generated by MKPLOTMODEL.
Plot Model from .clr File

The MKPLOTCLR routine is designed to give an overview of the polynomials defined in the CLR structure (or a .clr file). It can also produce plots like those generated by MKPLOTMODEL.

To produce a plot of the behaviour of layer polynomials, do the following:

  1. read the model from an .clr file using clr=mkreadclr(pfad,'silent');
  2. call mkplotclr(clr,quantity,style);
    where
    clr
    is the sttructure variable containing the model, quantiy is a string defining the quantity to plot (one of 'vp', 'vs', 'rho', 'qp', 'qs', not case sensitive)
    style
    is a string defining the plot style:
    "raw"
    just plots the depth profile of the specified quantity
    "fancy"
    plots the depth profile of the specified quantity and adds dashed lines, discontinuity names. Also adds dotted lines to show the behaviour of the layer polynomials outside the layer depth range.
    "nd"
    creates the same plot as MKPLOTMODEL. The "quantity" string is ignored. (With this option, MKPLOTCLR simply discretizes the clr structure and calls MKPLOTMODEL)

eof.