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

Flux conserving, bin average of 2-D field #7

Open
dcarrollsci opened this issue Sep 13, 2019 · 3 comments
Open

Flux conserving, bin average of 2-D field #7

dcarrollsci opened this issue Sep 13, 2019 · 3 comments

Comments

@dcarrollsci
Copy link

Hi Gaël,

Does gcmfaces allow for flux conserving, bin averaging from LLC output to lon/lat grid?
The application of this is bin averaging of ECCO-Darwin air-sea CO2 fluxes for
various end users in the carbon community.

Thanks,
Dustin

@gaelforget
Copy link
Member

I do not know of anyone who might have implemented this type of regridding but would definitely be a very useful addition. Are you thinking about schemes that deal with c-grid vector fields (U,V,W) or more common "conservative interpolation" schemes?

@menemenlis
Copy link
Member

It is for surface fluxes. Dustin and I are writing code for llc270 to 1-deg-grid bin-averaging. Happy to share when done.

@gaelforget
Copy link
Member

gaelforget commented Sep 25, 2019

Would be great. Here is what I would suggest:

    1. take a look at sample_processing/example_interp.m which is mentioned in the gcmfaces manual under tutorial examples. interp=gcmfaces_interp_coeffs(lon(:),lat(:)); should work with any of our llc, cs, etc grids, and give you the four nearest neighbors. No need to redo this part -- build on it as much as possible.
    1. Fork, branch, and put your proposed implementation in the gcmfaces_devel/ folder.
    1. PR back to this repo once you have an implementation that you want me to review.
    1. Discuss and iterate on the PR if needed

Just like what we routinely do with MITgcm (see https://mitgcm.readthedocs.io/en/latest/contributing/contributing.html for detailed instructions if needed).

ok?

ps: could you please add, in this thread, the paper reference for the scheme you are looking at with Dustin.

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

No branches or pull requests

3 participants