Skip to content

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented Feb 21, 2018

A task for plotting the SSH vs. observations from AVISO.

@xylar
Copy link
Collaborator Author

xylar commented Feb 21, 2018

This is a revival of #279, since it seems like a task to compare SSH with obs. might, in fact, be useful. @mark-petersen wants to include one such plot in the MPAS-O paper.

@xylar
Copy link
Collaborator Author

xylar commented Feb 21, 2018

@vanroekel and @milenaveneziani, could you each do a quick run with --generate=climatologyMapSSH to make sure you can, indeed, generate an SSH plot? I could use some advice on the range of the color bars (and would be open to changing the color map if need be).

I have made sure the necessary observations are on Edison but I'm not sure if they have been copied over to other machines. Please let me know if you find them to be missing.

@xylar
Copy link
Collaborator Author

xylar commented Feb 21, 2018

@mark-petersen, I know you're busy with the paper so all I would want from you is verification that the figure looks like what you were after, once we have an example plot posted here.

@xylar xylar force-pushed the add_ssh_task branch 2 times, most recently from 59a7465 to 61c20c8 Compare February 22, 2018 02:52
@xylar
Copy link
Collaborator Author

xylar commented Feb 22, 2018

Testing

I ran with both the QU240 test case on my laptop and the following EC60to30v3wLI test case:
http://portal.nersc.gov/project/m2833/mpas_analysis_output/20180209.GMPAS-IAF.T62_oEC60to30v3wLI.cori-knl.afterSalinityFix/ocean/index.html#ssh

Please comment on the color map and the range. I will be fixing the values near zero similar to #311.

@xylar xylar force-pushed the add_ssh_task branch 2 times, most recently from 76dcf19 to b49b15d Compare February 22, 2018 04:19
@vanroekel
Copy link
Collaborator

@xylar tested on 60to30 and 30to10 on anvil and things worked great. Examples below
sshaviso_20180208 gmpas-iaf t62_orrs18v3 anvil_ann_years0001-0007
sshaviso_20180123 test-low-restoring gmpas-iaf t62_oecv3 anvil_ann_years0001-0020

I do think a tighter range would be good. It is hard to see detail in this range. Perhaps also a diverging colormap like the red blue one might make features more visible?

@milenaveneziani
Copy link
Collaborator

milenaveneziani commented Feb 22, 2018

I have a suggestion for a colormap. I quite like the Spectral_r, with the following color indeces:
[0, 20, 40, 80, 100, 120, 160, 180, 200, 240, 255].
And we could try the following levels (there is an extra one wrt the original, to accomodate for the extra color in the colormap):
[-2.4, -2, -1.6, -1.2, -0.8, -0.4, 0, 0.4, 0.8, 1.2]


subtask.set_plot_info(
outFileLabel=outFileLabel,
fieldNameInTitle='SST',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SSH here right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, yes.

@milenaveneziani
Copy link
Collaborator

ah, also, I noticed we need to adjust title and units to 'SSH' and 'cm' (I suppose).

@vanroekel
Copy link
Collaborator

here is a version with the RdBu color map. It is a bit clearer to my eye
sshaviso_20180123 test-low-restoring gmpas-iaf t62_oecv3 anvil_ann_years0001-0020

@vanroekel
Copy link
Collaborator

oops, need to fix the colors. I see negative values with red.

@xylar
Copy link
Collaborator Author

xylar commented Feb 22, 2018

@milenaveneziani, good catch. Units are meters.

As far as color maps, I'll try your suggestion. Spectral_r seems like a good option and I don't think we've used it for other plots.

@milenaveneziani
Copy link
Collaborator

@vanroekel's choice is nice too (to make it symmetric wrt 0 we need to change the levels, which may not be great in this case because SSH is way more negative than positive).
Here is an example of using spectral_r for salinity:
saltdepth0000_ginsea_b1850c5_acmev0_highres_0121-10

@vanroekel
Copy link
Collaborator

I think spectral_r is nice for this too. Here is an example
sshaviso_20180123 test-low-restoring gmpas-iaf t62_oecv3 anvil_jas_years0001-0020

Uses the AVISO time series on the 1 degree grid.
@xylar
Copy link
Collaborator Author

xylar commented Feb 22, 2018

Great, I think we're on to something. My plots look very similar to Luke's above. Check the link under testing again.

@milenaveneziani
Copy link
Collaborator

I was looking at the Centurioni paper about their Mean Dynamic Height product (which at some point we discussed we would use for this, but we never downloaded it), and I thought this was a nice picture:

screen shot 2018-02-21 at 10 15 39 pm

perhaps at some point we could add the 10cm contours to ours?

@milenaveneziani
Copy link
Collaborator

yes, the new ones look nice.

@xylar
Copy link
Collaborator Author

xylar commented Feb 22, 2018

Wow, @milenaveneziani, I agree that's quite a nice looking figure. That's probably a custom color map that we could easily duplicate (I added a couple of custom color maps as well in the plotting module). Given that adding contours would be a non-trivial modification to plotting, I think we should leave that for a follow-up PR. Perhaps after the paper, given the very tight timeline.

Copy link
Collaborator

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look great. I like the color bar.

One question: SSH is almost always reported in cm, so this would range from -250 to 150. Our native unit is meters, of course, but I think it's better to use units in plots that are standard. What do you all think? Also asking @maltrud.

@xylar
Copy link
Collaborator Author

xylar commented Feb 22, 2018

@mark-petersen, I'm fine with switching to cm if that's standard. The standard is dumb in this case but it's not my place to try to force a new standard... :-p

@xylar
Copy link
Collaborator Author

xylar commented Feb 22, 2018

Here is a plot with units of cm instead of m:
image

@xylar xylar merged commit 89bf1ec into MPAS-Dev:develop Feb 22, 2018
@xylar xylar deleted the add_ssh_task branch February 22, 2018 23:19
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.

4 participants