grid_parse_svg_to_files module

TODO: Description

This scripts parses a .svg file and converts layers into individual geometries that can be used to

  • add these geometries in newly created meshes (for forward modelings)

  • modify subsurface models using these geometries

  • decouple regularisation in the inversion

Further information

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths

Output files

For each layer specified in the parsed svg file, the following files will be written:

  • all_[REGION_NAME].dat - the lines of the specified region, unmodified

    from the svg

  • lne_[REGION_NAME].dat - all lines located within the boundary region. Use

    this file to create extra_lines.dat files for grid creation

  • pts_[REGION_NAME].dat - the points of the intersection of the region with

    the boundary

grid_parse_svg_to_files.handle_cmd_args()[source]
grid_parse_svg_to_files.main()[source]
grid_parse_svg_to_files.parse_svg_path(path_str)[source]