Skip to content

Conversation

dgwyther
Copy link

@dgwyther dgwyther commented Jun 5, 2025

I've written 4 recipes that cover some of the basic and slightly more advanced procedures to deal with ROMS output. This includes loading data, setting up the coordinates, plotting and some basic analysis.

It is using output from a ROMS model of the Shackleton Ice Shelf that I have uplaoded into the intake catalog. I presented these results at a COSIMA meeting in March 2025. As per the entry in teh catalog, I have discussed some 'wishes' for correct use of the data with ACCESS-NRI staff, and come to the following terms of use: "PI Gwyther would like to be informed of studies using the ROMS Shackleton data. Depending on level of interest and how much a paper depends on the model results, co-authorship might be requested." I'm trying to find the balance between "total free use" and "this was a solo effort and I would appreciate co-authorship".

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@navidcy
Copy link
Collaborator

navidcy commented Jun 15, 2025

Thanks for this @dgwyther, I'll have a look!

Have you made a note in the notebooks about people who use the data to reach out to you?

As a general note we can't enforce how people behave with publicly available data but we can always write what is an expectation.

@navidcy navidcy self-requested a review June 15, 2025 07:22
@navidcy
Copy link
Collaborator

navidcy commented Jun 15, 2025

I see some commits of yours mention hh5 which is to be deleted very soon.
Is the latest version still use hh5? Would you consider converting to using the environments of xp65? (Those are the environments I'm gonna use to test/review anyways.)

@navidcy
Copy link
Collaborator

navidcy commented Jun 17, 2025

@dgwyther it would be easier if we review one-by-one in which case 4 PRs would be better.
But I'll start with the one that says Loading etc. Sounds good?

Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:43Z
----------------------------------------------------------------

Line #11.    

delete empty lines?


Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:44Z
----------------------------------------------------------------

this is commented code; if we don't need it let's delete it. If we need it let's remove the comments?


Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:45Z
----------------------------------------------------------------

let's remove the method='local'? that won't work for anybody else other than you and it also has references to user-specific directories on gadi


Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:46Z
----------------------------------------------------------------

Line #18.    # print('grd_file:', ds.attrs['grd_file'])

again, if it's important let's uncomment it; if it's not let's delete it?


Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:46Z
----------------------------------------------------------------

what is "QOL"? Let's spell it out?


Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:47Z
----------------------------------------------------------------

Line #14.        if ds.Vtransform == 1:

what is Vtransform? I'm not sure and it's not self-explanatory; perhaps a comment here is useful?


Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:48Z
----------------------------------------------------------------

Line #1.    weights = ds.dx*ds.dy

is cell_area better name for weights?


Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

navidcy commented on 2025-06-17T01:16:48Z
----------------------------------------------------------------

Line #9.    ax.plot(ds_clima.dayofyear,(ds_clima.m*60*60*24*365*mask_zice).weighted(weights).mean(dim={'eta_rho','xi_rho'}),label='Area mean melt rate',color='C0',linestyle='-',linewidth=1)

there seem to be a lot of multiplications with 60*60*24*365

let's define that a constant

eg something like:

meters_to_kilometers = 1e-3

grid.length * meters_to_kilometers


@navidcy
Copy link
Collaborator

navidcy commented Jun 17, 2025

I put some comments on the Loading... notebook.

Few thoughts:

Is this where people should be starting with ROMS? If so, then my general comment is that it seems a bit too elaborate? Perhaps we should first plot a field or two before we do all the shenanigans with xgcm? I'm all in about xgcm but at that point users perhaps aren't totally aware why do we need to do it?

@dgwyther
Copy link
Author

Hi @navidcy thank you so much for looking at this. I've been a bit light on the ground at conferences and so on (last week and next week), so I might be a bit slow to reply etc. I appreciate all of your suggestions.
What is the process for this? Should I go through the changes you've suggested? I like the idea of a separate 'loading ROMS' notebook (I wasn't really sure where to set the bar, so to speak).
What's the best way forward?

@navidcy
Copy link
Collaborator

navidcy commented Jun 17, 2025

Perhaps we can Zoom quickly when you have some time to discuss a bit and find the best way?

It's definitely a very welcome contribution!!!!

@dgwyther
Copy link
Author

Perhaps we can Zoom quickly when you have some time to discuss a bit and find the best way?

It's definitely a very welcome contribution!!!!

Great - a zoom sounds like a good idea. Want to send me an email to organise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants