Closed HongfanChen closed 6 months ago
Thanks for letting us know and proposing a patch! Could you give us an example time range where the problem occurs, so we can add it to our test suite?
Thanks for letting us know and proposing a patch! Could you give us an example time range where the problem occurs, so we can add it to our test suite?
Sure no problem. Try this 2015-03-17 storm during ["2015-03-16": "2015-03-19"]. Two lines of data corresponding to Mar 17 and Mar 18 will be missing if the original code is applied. You can check the data from the website here as well: https://wdc.kugi.kyoto-u.ac.jp/dst_final/201503/index.html
Fix released with pyspedas 1.5.5, now available at pypi
The Dst data on Kyoto website is not space separated when Dst values has three digits or more (which is the case for large storms). The current parse_html function use str.split() method so this causes the problem. It can be fixed by using re.findall. See the modified version here. This may not be the best solution but it works for me.