File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
test/test_private/test_terranigma Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,14 @@ def test_2025_2():
143
143
# * The scalar fields can be found for dense and octree grids:
144
144
print (geo_model .solutions .raw_arrays .scalar_field_matrix )
145
145
146
+ # * For custom grids so far we do not have a property that gives it directly, but it can be accessed here
147
+
148
+ octree_lvl = 0 # * All the grids that are not octree are computed on octree level 0
149
+ stack_number = - 1 # * Here we choose the stack that we need. At the moment boolean operations--for erosion-- are not calculated on the scalar field
150
+ gempy_output = geo_model .solutions .octrees_output [octree_lvl ].outputs_centers [stack_number ]
151
+ slice_ = gempy_output .grid .custom_grid_slice
152
+ scalar_field = gempy_output .scalar_fields .exported_fields .scalar_field [slice_ ]
153
+ print (scalar_field )
146
154
# endregion
147
155
148
156
You can’t perform that action at this time.
0 commit comments