You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the mesh should be sensible. There are three option for padding methods. 1)extent1, 2)extent2),3)stretch, Coud you give more desriptions about these methods by words?
the thicknesses of Z-dericotn blocks are 11, 10, 9, 8,.... it is not descentding sequence .
the thickness of the first earth layer is 5 m. the first layer thickness of air layers should be less than 5 meter, right?
Possible Solution
Steps to Reproduce (for bugs)
# Paste your code here##ifnotos.path.exists(workdir):
os.mkdir(workdir)
edipath='D:/mtpywin/mtpy/HeiheEDIwithRot12deg'edi_list=[os.path.join(edipath,ff) forffinos.listdir(edipath) if(ff.endswith('.edi'))]
period_list=get_period_list(1.e-4,0.2,10)
do=Data(edi_list=edi_list,
inv_mode='2',
save_path=workdir,
period_list=period_list,
period_buffer=2,
error_type_z=np.array([['floor_egbert','floor_egbert'], ['floor_egbert','floor_egbert']]), # add floor to apply it as an error floorerror_value_z=np.array([[1,4.5], [4.5,1]]), # can supply a 2 x 2 array for each component or a single valuemodel_epsg=4530)
do.write_data_file()
np.savetxt(os.path.join(workdir,'center_position.txt'),
np.array([do.center_point['east'], do.center_point['north']]))
np.savetxt(os.path.join(workdir,'epsg.txt'),[do.model_epsg])
# Creat a model input filefrommtpy.modeling.modemimportModelworkdir='D:/Manuscripts/Manuscript2020/ModemInv'# create a Model objectmo=Model(station_locations=do.station_locations,
cell_size_east=30,
cell_size_north=30,
pad_north=7, # number of padding cells N and Spad_east=7, # number of padding cells E and Wpad_z=6, # number of vertical padding celllspad_num=6, # number of cells outside station area before paddingpad_stretch_v=1.5, # increasing factor in padding cells(vertical)pad_stretch_h=1.6, # increasing factor in padding cells(horizontal)n_air_layers=12, # number of air layersres_initial_value=100, # halfspace resistivity value for reference model (ohm-m)n_layers=60, # total number of z layers,including airz1_layer=5, # first layer thicknesspad_method='extent1', # method for calculating paddingz_target_depth=4000# approx. depth to bottom of core model
) # (padding after this depth)mo.make_z_mesh_new()
mo.make_mesh()
mo.write_model_file(save_path=workdir)
# add topography to the model and rewritetopo_file='D:/DEM12.5m/heihe_AMT.asc'mo.add_topography_to_model2(topo_file)
mo.write_model_file(save_path=workdir)
# project the stations on the topographydo.project_stations_on_topography(mo)
#Creat a covariance input filefrommtpy.modeling.modemimportCovarianceco=Covariance()
co.smoothing_east=0.5co.smoothing_north=0.5co.smoothing_z=0.5co.write_covariance_file(model_fn=mo.model_fn)
## Context<!---Howhasthisissueaffectedyou? Whatareyoutryingtoaccomplish? --><!---Providingcontexthelpsuscomeupwithasolutionthatismostusefulintherealworld-->Ihopetomakea3-DmeshtoconductAMT3DinverisonbyusingModEMandMTPY.
## Your Environment<!---Includeasmanyrelevantdetailsabouttheenvironmentyouexperiencedthebugin-->*Operatingsystem: windows10*MtPyversion: 1.0downloadedin2020, withmesh_tools.pyupdatefromthepatch157.*Pythonversion: 3.7.10<!---ifitisdatavisualizationrelated, alsoprovide-->*Matplotlibversion:
*Matplotlibbackend (`print(matplotlib.get_backend())`):
<!---ifitisgraphicaluserinterface (GUI) related-->*QTversion:
**InstalledPythonPackages:**use`pip freeze`or`conda list [-n ENVIRONMENT_NAME]`tolistalltheinstalledlibraries.
The text was updated successfully, but these errors were encountered:
The Z-direction blocks are abnormal.
Expected Behavior
the mesh should be sensible. There are three option for padding methods. 1)extent1, 2)extent2),3)stretch, Coud you give more desriptions about these methods by words?
Current Behavior
the Model mesh:
MODEL FILE WRITTEN BY MTPY.MODELING.MODEM
67 149 72 0 LOGE
33710.000 10610.000 3340.000 1060.000 330.000 100.000 50.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.600 28.800 30.600 30.000 30.000 30.000 30.000 30.000 30.600 29.400 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.600 28.800 30.600 30.600 28.800 30.600 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 50.000 100.000 330.000 1060.000 3340.000 10610.000 33710.000
32820.000 10380.000 3280.000 1040.000 330.000 100.000 50.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 29.400 30.600 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 29.400 30.600 30.000 30.000 30.600 29.400 30.000 30.000 29.400 30.600 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.600 29.400 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.600 28.800 30.600 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 30.000 50.000 100.000 330.000 1040.000 3280.000 10380.000 32820.000
11.000 10.000 10.000 9.000 8.000 8.000 7.000 6.000 7.000 5.000 6.000 5.000 5.000 5.000 6.000 6.000 7.000 7.000 8.000 9.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 19.000 20.000 22.000 24.000 25.000 27.000 30.000 32.000 35.000 37.000 40.000 44.000 47.000 51.000 55.000 60.000 64.000 69.000 75.000 81.000 88.000 95.000 100.000 100.000 100.000 100.000 100.000 200.000 200.000 200.000 200.000 200.000 200.000 200.000 300.000 300.000 300.000 400.000 700.000 1000.000 1500.000 2300.000 3400.000
the thicknesses of Z-dericotn blocks are 11, 10, 9, 8,.... it is not descentding sequence .
the thickness of the first earth layer is 5 m. the first layer thickness of air layers should be less than 5 meter, right?
Possible Solution
Steps to Reproduce (for bugs)
The text was updated successfully, but these errors were encountered: