-
Notifications
You must be signed in to change notification settings - Fork 155
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
Conversation
添加了StandardPUP对OHP、HI、ET的解析。
添加了StandardPUP对OHP、HI、ET的解析。
cinrad/io/level3.py
Outdated
@@ -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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果要改用产品类型来对应产品的名字的话就可以把所有用到dtype
的地方删了,包括那个查找表。还有就是这里我感觉变量名直接用pname
(product name)更好。
There was a problem hiding this comment.
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),下来研究透彻学习到位了再来处理吧,不急着删除,后面的双偏振的数据可能用得到。
添加了StandardPUP对OHP、HI、ET的解析。