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

添加了部分StandardPUP产品解析 #92

Merged
merged 9 commits into from
Apr 24, 2023
Merged

Conversation

pysoer
Copy link
Contributor

@pysoer pysoer commented Apr 21, 2023

添加了StandardPUP对OHP、HI、ET的解析。

添加了StandardPUP对OHP、HI、ET的解析。
添加了StandardPUP对OHP、HI、ET的解析。
cinrad/io/_dtype.py Outdated Show resolved Hide resolved
cinrad/io/level3.py Outdated Show resolved Hide resolved
cinrad/io/level3.py Outdated Show resolved Hide resolved
@@ -475,6 +480,7 @@ def _parse_header(self):
self.scan_config = np.frombuffer(self.f.read(256 * cut_num), SDD_cut)
ph = np.frombuffer(self.f.read(128), SDD_pheader)
self.ptype = ph["product_type"][0]
self.ptype_name = self.ptype_corr[self.ptype]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果要改用产品类型来对应产品的名字的话就可以把所有用到dtype的地方删了,包括那个查找表。还有就是这里我感觉变量名直接用pname(product name)更好。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其他地方都修改好了,就这个dytpe和ptype没动。我后面找了些ROSE2.0的双偏振的产品来看,还有各种其他型号(例如一个“HCL_FMT”的产品,行标文件表7对应的数据类型竟然是37),下来研究透彻学习到位了再来处理吧,不急着删除,后面的双偏振的数据可能用得到。

cinrad/data/radar_station.json Outdated Show resolved Hide resolved
cinrad/io/_radar_struct/standard_data.py Outdated Show resolved Hide resolved
@CyanideCN CyanideCN merged commit 6278735 into CyanideCN:master Apr 24, 2023
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

Successfully merging this pull request may close these issues.

2 participants