xumi1993 / seispy

Python module of seismology and receiver functions
https://seispy.xumijian.me
GNU General Public License v3.0
92 stars 29 forks source link

Batch RF calculation issue #63

Closed wuyibin51 closed 1 year ago

wuyibin51 commented 1 year ago

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

wuyibin51 commented 1 year ago

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.

xumi1993 commented 1 year ago

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.

wuyibin51 commented 1 year ago

It works! Thanks a lot!