cosima-recipes icon indicating copy to clipboard operation
cosima-recipes copied to clipboard

Mass transport stream functions in any arbitrary pair of coordinates

Open navidcy opened this issue 2 years ago • 8 comments

I’d like to write a code to calculate mass transport stream functions in any arbitrary pair of coordinates. I have a proof of concept notebook and would love to spend some time with smart people helping to figure out how to make it work efficiently and conveniently for others.

[by @janzika from https://forum.access-hive.org.au/t/cosima-hackathon-january/142/4]

navidcy avatar Nov 24 '22 19:11 navidcy

Okay so I have a code that is able to compute a mass stream function for T and S and in principle should work for any 2 scalar variables. The key things remaining are to 1) make it cleaner, 2) make it faster (it is quite slow and I'd like to make it work on the 1/10th degree model) and 3) make it work for arbitrary variables (like depth, latitude, density) and 4) comment it nicely. Is anyone willing to take a look with me after the tutorials (maybe in a zoom breakout). Particularly keen for people that a) feel like solving some fun coding puzzles and b) know the capabilities of task/xarray for binning/sorting/conditional averaging.

janzika avatar Jan 23 '23 23:01 janzika

@claireyung @navidcy @edoddridge @rbeucher any takers?

adele-morrison avatar Jan 23 '23 23:01 adele-morrison

I don't have much ocean background but have been using xarray/dask quite a lot and I'm super keen to solve coding puzzles, so I'd be interested to join this task!

atteggiani avatar Jan 24 '23 03:01 atteggiani

@atteggiani I'm sure @janzika would love to chat with you.

rmholmes avatar Jan 24 '23 03:01 rmholmes

yes @atteggiani it would be great to chat. I am in the xgcm room now...

janzika avatar Jan 24 '23 03:01 janzika

I just got to the room @janzika

atteggiani avatar Jan 24 '23 03:01 atteggiani

There are many more breakout rooms (rooms 5-10). Feel free to use one.

rmholmes avatar Jan 24 '23 03:01 rmholmes

Sorry @janzika I was sorting out something here in the office. Are you in any other breakout room?

atteggiani avatar Jan 24 '23 04:01 atteggiani