xumi1993 / seispy

Python module of seismology and receiver functions

Home Page:https://seispy.xumijian.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Batch RF calculation issue

wuyibin51 opened this issue · comments

Describe the bug
when I run the command prf rf.cfg -l in ex-batrf folder there is a bug : ERROR: Could not parse './evts.dat' to an etree element.
it's ok to run prf rf.cfg, i guass the local catalog may have some problem

PS C:\Users\22247\Desktop\Test_seispy\ex-batrf\ex-batrf> prf rf.cfg -l
2023-07-11 21:36:00,079 [RF] INFO: Load station info from ./Data.ZX/ZX.257
2023-07-11 21:36:00,081 [RF] INFO: ZX/257, latitude: 43.950, longiture: 118.272
2023-07-11 21:36:00,081 [RF] INFO: Searching earthquakes from 2003.01.01T00:00:00 to 2004.12.31T00:00:00
2023-07-11 21:36:00,153 [RF] ERROR: Could not parse './evts.dat' to an etree element.
Traceback (most recent call last):
File "c:\python38\lib\site-packages\seispy\rf.py", line 98, in read_catalog
eq_lst = read_catalog_file(logpath)
...................
ValueError: Could not parse './evts.dat' to an etree element.

Please try to use the attached catalog: evts.txt.
The catalog file can be quickly downloaded using following command

download_catalog -b 20030101 -e 20041231 evts.dat

This is a new feature in the version larger than 1.3.3.

It works! Thanks a lot!