Closed pankajkmishra closed 3 months ago
@pankajkmishra I'm assuming you installed from pip
or conda
? This was fixed in a recent patch and hasn't been released yet. I will do that tomorrow. Or you can reinstall from git.
In the meantime you could do something like (I think, this might be in the newer version too):
from pathlib import Path
from mtpy import MTCollection, MT
tf_path=Path(r"../path_to_my_edis")
tf_path.exists()
with MTCollection() as mc:
mc.open_collection(tf_path.joinpath("MyProject_tf.h5"))
for fn in tf_path.glob("*.edi"):
mt_object = MT()
mt_object.read(get_elevation=False)
mc.add_tf(mt_object)
@pankajkmishra Just update the release, try reinstalling from pypi and see if you get the same error.
Updating mtpy worked! Thanks
I am trying to add edis from my project (in Finland) to MTCollection
Error
24:02:20T18:09:26 | ERROR | line:203 |mt_metadata.transfer_functions.io.tools | get_nm_elev | Input values (latitude=63.74171066666667, longitude=26.25233077777778) could not be found on US National Map.
Is there a way to read elevation from EDIs or perhaps define them in an external file?