-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue with particle spanning multiple data blocks #4
Comments
Hi Yongjie, Thank you for your detailed bug report and solution proposal. This issue was actually solved previously, but was in another branch(overload_hk branch). I have merged the changes from overload_hk into main. When you have time, please try out the new code from the main branch, and let us know if the fix worked fully. Once this is confirmed, I will mark the issue closed. Thank you for your help and engagement! |
Hi Kenny @kennybala97, I have tested the latest version, and it only partially addresses the issue. There are still problems when particle information spans two data blocks. In the following examples, the particle will be missed if the particle information spans two data blocks. Particle ID: 335
Particle ID: 624
Particle ID: 1296
Particle ID: 2445
Particle ID: 4771 (slices: truth is 9, the package obtains 11)
Particle ID: 7203 (slices: truth is 3, the package obtains 6)
I haven't yet checked how the Thanks, Yongjie |
@huangynj Thank you for the extra detail, this is really helpful. I think your fix is a solid idea and it does also seem to be the simplest way to solve this problem. I will do some more testing on my end and figure out the best way to proceed. In the meantime, what dataset are you using to test SPIF out? |
Hi @kennybala97, I am using the synthetic data generated by Aaron Bansemer (NCAR) for the cloud probe workshop 2024. He will publish the data in future, so it may be not suitable to put the link on this open platform yet. I will send you the link through email. Thanks, Yongjie |
Hi Yongjie, That makes sense. Thank you so much for your help! |
@huangynj I've gone through your code and it seems to me like your changes boil down to the following:
Is this a correct characterization of what the code changes do? |
Hi @kennybala97, Yes, I think your understanding is correct. I also tried to simplify the method not using Yongjie |
@huangynj thank you for confirming! And I think you did the right thing using the |
Hi @huangynj , I have added all your changes to the |
Hello,
I have encountered an issue with spifpy while working with SPEC 2DS data. Specifically, when a particle spans two data blocks, spifpy reads only the partial particle in the first data block and ignores the remaining part in the second data block.
To address this issue, I propose that we pass two continuous data blocks to each processor. This way, we can process the data in the first data block and include the very beginning of the second data block if a particle spans the two blocks. I am still familiarizing myself with the spifpy structure, so a developer who is more experienced with spifpy would be better suited to implement this solution.
Thanks,
Yongjie
The text was updated successfully, but these errors were encountered: