-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add function to regrid Sv data #726
Comments
@leewujung will add a link here to a ref implementation from IMR. |
This should be optional... potentially use: https://xesmf.readthedocs.io/en/latest/index.html |
I found my notes from before. Here are two resources, one from IMR and the other pyEcholab. IMR:
pyEcholab:
|
@leewujung Could you point us to a test data for this? |
I haven't generated any datasets for this. I think to generate outputs from the IMR functions and test against it would be the way to go. The input would be Sv with potentially irregular spacing in ping time and depth across channels, and output would be Sv gridded to the same ping time and depth grid across all channels. |
Explore |
@leewujung How should we decide the spacing in ping time for regridding? |
Assuming the |
@anantmittal : Not sure if I understand the question, but I think in terms of uses, it may be the most useful if users specify One common use case is when different channels have different sizes along the ds_Sv_out = ep.consolidate.regrid(
ds_Sv = ds_Sv,
range_wanted = ds_Sv["range"].isel(channel=0, ping_time=0) # use range of the first ping in first channel
) A couple notes:
|
@leewujung: Could you explain this comment a bit more? It's unclear how regridding/interpolation should work when both #1241 is my stab at implementation when |
@anantmittal @lsetiawan : This following paragraph may be useful to understand the process? It also points to the specific approach they use and references in iris from this Sec. 2.2.2 in this paper. |
xESMF Regrid Methods explanations: http://earthsystemmodeling.org/regrid/#regridding-methods Actual algorithms in the xESMF Python library: https://xesmf.readthedocs.io/en/latest/notebooks/Compare_algorithms.html Tutorial on xarray regridding with xESMF: https://xesmf.readthedocs.io/en/latest/notebooks/Dataset.html |
It is a pretty common need to regrid Sv data, since different channels (frequencies) may be configured differently to collect data with different
sample_interval
even if the total range collected is the same.Proposal: add this to the
commongrid
subpackage.The text was updated successfully, but these errors were encountered: