Stream: ESDS

Topic: Area weighted average on a 2 degree POP grid


view this post on Zulip Mira Berdahl (Jan 25 2022 at 20:33):

Hi,
I would like to do a weighted area average of ocean temps from a 2degree POP output. I was using this as a guide: https://gist.github.com/bradyrx/aee079f8494b084a5c56f7eaf83c8cef

The trouble is that areacello is not a field in my file (created by timeseries conversion from POP history files). The only comparable field I have is UAREA, but I would presumably want TAREA since TEMP is on the TGRID, right?

What is the best way to go about this? Is there another file I can grab areacello from? Or another method I should use?

Thanks!

view this post on Zulip Max Grover (Jan 25 2022 at 20:35):

I would look at getting your grid information from pop-tools! Here is an example of how to use that functionality https://pop-tools.readthedocs.io/en/latest/examples/get-model-grid.html

view this post on Zulip Mira Berdahl (Jan 26 2022 at 23:46):

Oh yup, that'll do the trick. Thanks!


Last updated: May 16 2025 at 17:14 UTC