COSIMA / cosima-recipes

A cookbook 📒 of recipes (i.e., examples) for analysing ocean and sea ice model output. 👩🏽‍🍳🌊👨🏻‍🍳
https://cosima-recipes.readthedocs.io
Apache License 2.0
46 stars 66 forks source link

Add an example demonstrating isopycnal heaving and water mass transformation decomposition #394

Open Oler2008 opened 4 months ago

Oler2008 commented 4 months ago

Create a new documented example to decompose temperature (or other scalar) anomalies into isopycnal heaving (HVE) and changes along isopycnals (WMP)

Oler2008 commented 4 months ago

Bins for potentital density 250: np.arange(1026.5,1029.1,.02)

Hangyum commented 4 months ago

https://github.com/Hangyum/cosima-recipes/blob/main/DocumentedExamples/T_decomposition.ipynb

Here is my code.

navidcy commented 4 months ago

Hi both, could we update the issue title to be more descriptive? I personally don't know what these acronyms are... perhaps just spell them out?

Hangyum commented 4 months ago

Hi Navid, HVE means changes in temperature/salt/age by isopycnal heaving, and WMP means changes along the isopycnal. @Oler2008, could you spell out the WMP?

navidcy commented 4 months ago

Please edit the PR title and spell these things out -- thanks!

navidcy commented 4 months ago

@Hangyum or @Oler2008? Could you please update the issue title?

Hangyum commented 4 months ago

Yes Navid, I am changing this title now. I was waiting for Ole's response, but does the title look easier to read?

navidcy commented 4 months ago

It's words now that mean something! Thanks!!

Hangyum commented 4 months ago

Hi @Oler2008, could you send me your codes by using xhistogram to bin isopycnals? I can combine them.