-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add osnap T S climtransects #899
base: develop
Are you sure you want to change the base?
Add osnap T S climtransects #899
Conversation
Yes, I would split them.
I'll let @xylar reply to this. My standalone script plots the mpas normalVelocity at the transect mask edges: so, no interpolation but unpleasant noisy visuals. I think Xylar has a more pleasant-to-the-eye alternative. |
Hmm, I don't think we've plotted velocities at transects except for SOSE. There, we just plot zonal, meridional or magnitude. Instead, you would want velocity normal to the transect, which would require a computation based on the zonal and meridional components, and the angle of the transect edge with respect to east. I think that would be fun to do but it hasn't been done yet. |
We actually don't plot velocities for the SOSE transects, only for the SOSE 2d maps. |
At least in the analysis I'm looking at, we do plot the velocities (zonal, meridional and magnitude): |
An update on this:
At the moment, runnning the analysis in a new directory fails with
but re-running it a second time (without purging) works and generates the plots. I am wondering if there is something in the order of operations that is off. After the first failure, the only logs available are:
|
@alicebarthel, you're getting close! Because you are using a development environment that doesn't support system MPI, you need these config options from the tutorial: https://mpas-dev.github.io/MPAS-Analysis/latest/tutorials/dev_getting_started.html#execute That way, ESMF_RegridWeightGen won't be called with srun. |
Thanks @xylar ! It seems to work ok now that I added the |
A couple of questions/comments:
|
I have no idea. I wouldn't expect that to be the case. |
Maybe too deep?
Yes, I'll run a test, too, if you think it's ready. |
Absolutely no worries. It's confusing and I hope we can move to the approach in compass soon, where ESMF is built with system MPI. |
I actually think this is OK, especially for OSNAP West. Here are two sections I plotted in the past, and they go to 3500 and 4000 m, respectively: I can also give this a try. |
Ok, thanks @milenaveneziani! I may need to adjust the plot options like range. I did not see observed densities. Did you recalculate these or did you have them? |
FYI, 2 year clim for the v2.amoc.baseline (EC30to60) |
This is really great, @alicebarthel! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Things are looking great!
I ran the test suite and results are here:
https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.xasay-davis/analysis_testing/chrysalis/add_OSNAP_TSclimtransects/
In addition to a couple of very small code changes, the only thing left (other than the check-list at the top of this PR for me) are:
- add the task to the API docs here: https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.xasay-davis/analysis_testing/chrysalis/add_OSNAP_TSclimtransects/
- add a new file to the docs for this analysis (with an example image), similar to: https://github.com/MPAS-Dev/MPAS-Analysis/blob/develop/docs/users_guide/tasks/woceTransects.rst
I ran analysis on |
hmm, a bias of 2deg is pretty high in those regions.. We could extend the range to +-3 for the bias. Do you understand why the range above 0 (in the vertical) is plotted? @alicebarthel : no, I computed the sigma0's myself. They were not in the obs data set I used. |
But I agree this is looking great. Thanks @alicebarthel! |
@milenaveneziani, I think that's because it plots up to the actual sea surface height, which goes at least slightly above zero. It doesn't bound the data range too tightly but instead leaves a little margin of error around it. We can manually set the vertical range in the config options if this bugs you. |
yes, I would probably add |
@alicebarthel: I think you can remove the WIP in the title and work in progress label for this one :) |
300a3f1
to
21ae417
Compare
@cbegeman here is the draft PR I mentioned. |
@xylar I added the preprocessing notebook. Let me know if you have any issues with that format. I did modify the script (and added extra information such as the period, which maybe is confusing since the current version of the data does not have that naming convention). I can remove that extra bit, or replace the file and the file names in |
@alicebarthel I reran this branch successfully. Thanks for getting this going again! |
@cbegeman thanks for testing this and showing interest, it provided the incentive needed! |
I can test this, but not this week. Feel free to remove me as reviewer if you would like to get this merged asap. Thanks @alicebarthel for working on it! |
@alicebarthel, I copied the observations files into:
I generated a I'm running my test suite on Chrysalis right now to make sure things go smoothly. Everything looks good so far but I'll let you know how the tests go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alicebarthel, thanks so much for working hard on this and getting back to it to finish things off!
Everything looks great in my testing:
This is a super low res (QU240) simulation so the coarse plot is expected.
The full test results are here:
https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.xasay-davis/analysis_testing/chrysalis/add_OSNAP_TSclimtransects/
In building the docs:
https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.xasay-davis/analysis_testing/chrysalis/add_OSNAP_TSclimtransects/docs/
it looks like the new osnapTransects task is missing here:
https://github.com/alicebarthel/MPAS-Analysis/blob/add_OSNAP_TSclimtransects/docs/users_guide/analysis_tasks.rst?plain=1#L37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks @alicebarthel!
Thanks @xylar for looking this over! |
It does look great, @alicebarthel, thanks! I can try testing this within Impacts, at the same time getting some possible nice pictures for your AMOC presentation, Alice. But for now please merge! |
This is to plot T,S transects at OSNAP transects, based on the obs dataset [downloaded in 2022].
I based it on woce_transects.py
A couple of questions for @milenaveneziani @xylar:
I saw that WOCE is a collection of separate transects. Currently, the obs dataset has both East and West transects in one file, is it better to split them in pre-processing to give us separate plots?
I currently only added T,S (we have no measured density).
I did not add velocities in the variables but it is in the obs dataset. I suspected the process for plotting MPAS-O velocity at transect should be separate from tracer fields. Let me know if you think otherwise.
Checklist (for @xylar) before merging:
/lcrc/group/e3sm/diagnostics/observations/Ocean/OSNAP
to/lcrc/group/e3sm/public_html/diagnostics/observations/Ocean/OSNAP
obs.xml
and copy to/lcrc/group/e3sm/public_html/diagnostics/observations/Ocean/OSNAP