-
Notifications
You must be signed in to change notification settings - Fork 23
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
'patch' interpolation for salt_sfc_restore.nc #74
Comments
@aidanheerdegen there's no need to be conservative as this isn't a flux. So I'd say 'patch' is better because it is smoother. |
@aidanheerdegen Both the 0.1 deg and 0.25 deg need smoothing - e.g. see |
There are two separate issues:
I've just heard back from NOAA - they are currently investigating 1. I'm happy to delay fixing this until late Feb when I'm back from conferences and we will have hopefully heard more from NOAA by then. But so I don't forget, this is what I currently think would be the best approach: |
@aekiss MOM interpolates the surface restoring fields in time on the fly
|
Good point @russfiedler. I was going to caution against time interpolation as the first step in any case, as it would propagate a much larger smooth/fill task further down the stack of operations. |
OK great, so we can skip step 1 then. |
This slipped off my radar, but since we are starting IAF runs this would be a good time to resolve it. |
I had a look in Ferret and I don't see some of the features in this plot. For instance that stuff off Melville Island. It looks like it could be aliasing in ncview. The runoff is a bit "blocky" in the sense there is a cutoff to zero but that is really how it should be. Some of the holes in the way it is spread out look a bit odd. |
I'm not sure what you mean by aliasing - I am displaying the model output at 1:1 scale. I've stretched the colourmap to highlight very low values, which might be why they aren't showing up in Ferret? I think we are seeing two different features here. Runoff that hits land is mapped to the nearest coastal point and then spread on the model grid via @nichannah's KDTree method until it falls below a prescribed cap. This produces the red semicircle at the Mackenzie River mouth at lower left. Runoff that hits the ocean and is below the cap seems to be put on the ocean grid by a nearest-value method (i.e. ocean grid points get the runoff data from the nearest JRA55 grid point), so the coarser resolution of JRA55 shows up as blocky features on the finer model grid (distorted by the tripole of course). I think this would be more nicely done by a smooth conservative interpolation. |
I first had a look at the fields using an increment of 5e-8 between 0 and 5e-6kg/m^2/s (which is equivalent to 0.4mm/day) and I don't see the blue/cyan jitter that you get. I reckon it's an artifact in ncview. Here's a plot of Melville island with increment 1e-6 (<0.1mm/day) below 2e-5 and 1e-5 up to 1e-4. The graticules indicate index space. It all looks fine to me. |
Hmmm, I think we have focused in on different features of these plots. I'm not sure what you mean by the blue/cyan jitter. |
Ok, I see your concern but the difference between runoff/rivers is that we are attempting to distribute what are point sources. We also need to make sure that the maximum occurs by the coast. I had a look at some areas in the regular portion of the grid and the initial interpolation is definitely NOT doing nearest neighbour interpolation. It looks like it is first order conservative. I think this might be the remapping file Since we have to guarantee positivity and conservation I'm not sure we have other options unless a smoother gets applied in YATM. |
Yes, it is a two step process: 1) conservative 1st order interpolation from JRA55 river grid to mom grid, 2) now on the mom grid moving all 'landed' runoff to the nearest ocean neighbour. I have recently moved to 2nd order conservative for all flux fields except runoff. I will switch over the runoff now too and we can see whether that makes a difference. I'm guessing it will look a lot smoother. |
There is about output that uses 2nd order conservative for the runoff here: /short/x77/nah599/access-om2/control/minimal_01deg_jra55_ryf/archive/output013 |
@nichannah Can you put the runoff output file somewhere under |
I've moved this to /short/public/nah599/ocean_month.nc |
Ta, but as I expected it goes negative. yes? stats runoff
Total # of data points: 9720000 (36002700111*1) It goes negative at 170K points! yes? let negrun= if runoff lt 0 then runoff |
Just saving Russ' comment from the Slack event horizon: https://arccss.slack.com/archives/C9Q7Y1400/p1547423551089000 |
For I propose we
|
Thanks @nichannah - is there a new |
@nichannah's new Here's what the restoring flux used to look like in And here's what it looks like for the same month in |
Great job! Are there remaining issues to resolve for the MOM01, or are we now ready to rock and roll? |
Can we close this issue now? |
Not quite, there's one last thing: (We'll have to live with the blocky runoff until we have a positive-definite conservative smooth interpolation method.) |
A new salt_sfc_restore.nc has been placed at /short/public/access-om2/input_rc/mom_025deg/salt_sfc_restore.nc The attached image shows some differences between the old (on the left) and the new (right). @aekiss if you can confirm that this a fix then we will close the issue. |
Thanks @nichannah that looks great. I'll leave this issue open as a reminder until I've set up the default 0.25 deg configurations to use this. |
It's a curse I tell you!
The year |
Would |
It's specified on a NOLEAP calendar so it shouldn't matter. FMS/MOM handles this sort of thing internally if there's a calendar mismatch in certain circumstances and it's possibly safer to avoid -ve dates. For instance if some wants to start a run over the historical period starting in the 19th century. I like the 0001 starting date because it feels like a 'natural' start :) |
Sorry, the meta-data is copied over. I'll fix it and replace the file. |
I've fixed this by doing
(the original is in @nichannah, @russfiedler - is this all that was needed? also see #49 |
That looks right. |
'patch' interpolation is needed for salt_sfc_restore.nc to avoid blocky fluxes, as discussed here:
https://arccss.slack.com/archives/C6PP0GU9Y/p1515557852000122
also see
#52 (comment)
#71
The text was updated successfully, but these errors were encountered: