Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zero-thickness blocks on horizontal directions #157

Open
wilsonweijun opened this issue Nov 29, 2021 · 3 comments
Open

zero-thickness blocks on horizontal directions #157

wilsonweijun opened this issue Nov 29, 2021 · 3 comments

Comments

@wilsonweijun
Copy link

By using ModEM module, the model file contain zero-thickness blocks on lateral directions

Expected Behavior

the thicknesses of blocks should not be zero.

Current Behavior

MODEL FILE WRITTEN BY MTPY.MODELING.MODEM

74 206 70 0 LOGE
200.000 100.000 100.000 100.000 0.000 0.000 0.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 19.600 20.400 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 0.000 0.000 0.000 100.000 100.000 100.000 200.000
200.000 100.000 100.000 100.000 0.000 0.000 0.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 19.600 20.400 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.400 19.600 20.000 20.400 19.600 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 0.000 0.000 0.000 100.000 100.000 100.000 200.000
13.000 11.000 11.000 9.000 8.000 8.000 7.000 6.000

Possible Solution

the invertals between ajacent AMT station are dominatly 80 m, sometimes, the invertals are 40 m.

Steps to Reproduce (for bugs)

# Paste your code here
# mo=Model(station_locations=do.station_locations,
         cell_size_east=20,
         cell_size_north=20,
         pad_north=7,      # number of padding cells N and S
         pad_east=7,       # number of padding cells E and W
         pad_z=8,          # number of vertical padding cellls
         pad_num=4,        # number of cells outside station area before padding
         pad_stretch_v=1.4, # increasing factor in padding cells(vertical)
         pad_stretch_h=1.4, # increasing factor in padding cells(horizontal)
         n_air_layers=10,   # number of air layers
         res_initial_value=100,   # halfspace resistivity value for reference model (ohm-m)
         n_layers=60,       # total number of z layers,including air
         z1_layer=5,         # first layer thickness
         pad_method='stretch',   # method for calculating padding
         z_target_depth=2000
         )  # approx. depth to bottom of core model
#

Context

Your Environment

  • Operating system: windows 10
  • MtPy version: V1.0 download in 2020
  • Python version: 3.7.10
  • Matplotlib version:
  • Matplotlib backend (print(matplotlib.get_backend())):
  • QT version:

Installed Python Packages:
use pip freeze or conda list [-n ENVIRONMENT_NAME] to list all the installed libraries.

kujaku11 added a commit that referenced this issue Nov 30, 2021
Added a function for rounding a number.  This will eliminate 0's when the mesh elements are single digits as described in issue #157 .
@kujaku11 kujaku11 mentioned this issue Nov 30, 2021
8 tasks
@kujaku11
Copy link
Collaborator

@wilsonweijun This was a bug in how mesh elements were rounded. This should be fixed in pull request #158 once @zhang01GA reviews the request it should be merged into main.

@wilsonweijun
Copy link
Author

Thank you, @kujaku11. could you share the new mesh_tools.py to me and let me try it?

@kujaku11
Copy link
Collaborator

@wilsonweijun you can have a look at pr #158 or pull from branch patch_157 to look at a patched version of mesh_tools.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants