Skip to content

Defining a user starting model together with region constraints #893

@HZeyen

Description

@HZeyen

Question

For travel time inversion, I want to create a +/- complex starting model with region markers controlling the initial velocity model. To do so, I create first a mesh setting a marker for every cell. Then, I create a velocity/slowness vector ("start_model") having the same size and the same ordering as the cells. Finally, I set one region to single velocity (mgr.inv.setRegularization(nRegion, single=True) or fixed velocity (mgr.inv.setRegularization(nRegion, fix=velocity).

When I now run the inversion (v_est = mgr.invert(startModel=startModel, etc), the program complains that the velocity vector is too long and creates a gradient starting model, apparently also with the size of the mesh (nr cells = length of starting model), since later, there is a message that the model vector is resized to fit the constraint size.

How can I resize correctly my own starting model?

In addition, even with the automatically generated starting model, the sizes are not clear: If I want to plot the starting model using pg.show(mgr.inv.fop.mesh(), 1./mgr.inv.startModel, etc), it gives an error message because the start model is too large.
Example program with the used sgt file (extension changed to "txt") is attached.

Thanks for your help.

picks.txt

Pygimli_test_mini.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions