gemgis icon indicating copy to clipboard operation
gemgis copied to clipboard

[BUG] "create_depth_map_from_gempy" creates seemingly correct but very very small surfaces (wrong scale)

Open phasyn8 opened this issue 1 year ago • 3 comments

Describe the bug Visualization tool outputs wrong depth for: "create_depth_maps_from_gempy()"

The following line of code I believe is to blame:

1690: # Append depth to PolyData 1691: surf['Depth [m]'] = geo_model.solutions.raw_arrays.vertices[index][:, 2]\

The surfaces appear to still be correct but they occur in the wrong scale (much, much smaller)

To Reproduce Steps to reproduce the behavior:

  1. make: gempy model , geo_model
  2. define: surface_list [surface1, surface2, ...]
  3. create depth map with: "gg.visualization.create_depth_maps_from_gempy(geo_model, surfaces=surface_list)
  4. Display poly data surfaces:
  5. See that surfaces are very very small ( <<1 meter )

Expected behavior Surfaces should be scaled to the dimensional units used in the model extents

Desktop (please complete the following information):

  • OS: [macOS]
  • VScode
  • Version: 1.91.0

phasyn8 avatar Jul 18 '24 17:07 phasyn8