Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用读取天擎数据模块,获取气象站数据的时候,某些要素在转换为DataFrame的时候报错 #28

Open
holagony opened this issue Jun 29, 2022 · 0 comments

Comments

@holagony
Copy link

选择天擎气象站年/月/日等数据接口时,如果选择如:最小气压出现的日期等类似要素时,如果最小气压对应了多个日期,原始数据的形式就如:'05-08',即'5号-8号',这个时候程序就会报错,显示不能转化为数值型。

错误定位到retrieve_cmadaas.py的153、154行,可以在这两行前加一个try,当出现非数值型字符串时,自动跳过数值型转换

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant