Open kashkoulimohammad opened 5 months ago
@kashkoulimohammad
Looks like you found a bug.
I added key word arguments to to_mt_data
in PR #17
Your code is close, just need to set the utm_crs
in the MTData
object instead of the MTCollection
object:
from mtpy import MTCollection
mc = MTCollection()
mc.open_collection(r'C:\Users\Mohammad\Desktop\work\nasrabad_data\nasrabad_data\15\15.h5')
mc.working_dataframe = mc.master_dataframe[mc.master_dataframe.station.str.startswith("15_010-0000")]
# here is the new change. You can set the `utm_crs` through `to_mt_data` now.
dgh_mt_data = mc.to_mt_data(utm_crs=32640)
plot_pt_pseudosection = dgh_mt_data.plot_phase_tensor_pseudosection(
plot_tipper="yri",
profile_reverse=False,
y_limits=(10**2, 1)
)
Thanks @kujaku11 It does not work.
Traceback (most recent call last):
File "C:\Users\Mohammad\Desktop\MTpy_V2\2_1.py", line 8, in <module>
dgh_mt_data = mc.to_mt_data(utm_crs=32640)
TypeError: to_mt_data() got an unexpected keyword argument 'utm_crs'
@kashkoulimohammad Try to reinstall mtpy-v2 from git.
Hi, I am tiring to plot pseudo-section of phasetensor with tipper but I faced with this error:
my script is: