Merged
Conversation
添加了StandardPUP对OHP、HI、ET的解析。
添加了StandardPUP对OHP、HI、ET的解析。
CyanideCN
requested changes
Apr 21, 2023
cinrad/io/level3.py
Outdated
| 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] |
Owner
There was a problem hiding this comment.
如果要改用产品类型来对应产品的名字的话就可以把所有用到dtype的地方删了,包括那个查找表。还有就是这里我感觉变量名直接用pname(product name)更好。
Contributor
Author
There was a problem hiding this comment.
其他地方都修改好了,就这个dytpe和ptype没动。我后面找了些ROSE2.0的双偏振的产品来看,还有各种其他型号(例如一个“HCL_FMT”的产品,行标文件表7对应的数据类型竟然是37),下来研究透彻学习到位了再来处理吧,不急着删除,后面的双偏振的数据可能用得到。
CyanideCN
reviewed
Apr 22, 2023
CyanideCN
approved these changes
Apr 22, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
添加了StandardPUP对OHP、HI、ET的解析。