ProjectISP / ISP

Integrated Seismic Program (software development)
44 stars 10 forks source link

AttributeError: 'dict' object has no attribute 'get_coordinates' [] #5

Closed wangzb0329 closed 2 years ago

wangzb0329 commented 2 years ago

Dear ISP team, I meet this error when I import the metadata at the moment tensor inversion module: AttributeError: 'dict' object has no attribute 'get_coordinates' []. Maybe there is an error in my stationxml file so that the module can't extract the station's coordinates, how can l do with it? Here is my stationxml file. stations.xml.zip Could you give me some suggestions? Thank you

rcabdia commented 2 years ago

We are working on your issue, I will answer you very soon!

Many thanks for trust on ISP

El mar, 12 abr 2022 a las 5:57, wangzb0329 @.***>) escribió:

Dear ISP team, I meet this error when I import the metadata at the moment tensor inversion module: AttributeError: 'dict' object has no attribute 'get_coordinates' []. Maybe there is an error in my stationxml file so that the module can't extract the station's coordinates, how can l do with it? Here is my stationxml file. stations.xml.zip https://github.com/ProjectISP/ISP/files/8469427/stations.xml.zip Could you give me some suggestions? Thank you

— Reply to this email directly, view it on GitHub https://github.com/ProjectISP/ISP/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJPYXG3JLCFPFQFQYCSN6DVETYBVANCNFSM5TFGB7PA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jrelinquem commented 2 years ago

Hi

Internally, our software uses obspy read_inventory function to read the metadata file. It seems that this function needs that every station has a Site element with the name of the place where the station is located.

I have modified your metadata to add the Site elements at every station and now it seems to work. stations_with_sites.zip

If you see at the modified metadata, for example at CQ.ROC station, there is: \ \ Rochester, New York, U.S.A. \ \

Please, let us know if this solves your issue, and thanks again for trusting on ISP.

wangzb0329 commented 2 years ago

I can run it successfully based on your suggestion. Thank you!

wangzb0329 commented 2 years ago

Hi When I run the module, I encountered a bug in the results of Histograms—uncertainty of MT parameters. The DC-part corresponds to the station map, Here is the screenshot.

截屏2022-04-13 上午10 18 25
rcabdia commented 2 years ago

Many thanks for your point, Jiri is already working in ISP 2.0 improving MTI functionality and plotting presentation.

Hope we have ISP2.0 ready soon !!

wangzb0329 commented 2 years ago

Wish everything fine with your work!