Regrid/remap for arbitrary, non-monotonic tracers #1
Replies: 3 comments 10 replies
-
Implementing sorting for
|
Beta Was this translation helpful? Give feedback.
-
Hi @gmacgilchrist, do you have any updates on this? Is there a PR I can take a look at? |
Beta Was this translation helpful? Give feedback.
-
A working version of this approach, for temperature only, is here. However, in completing this, I recognised that a column-sorting approach introduces fundamental errors. Specifically, the division of a sorted source column into the coordinate of the tracer is not the same as a division of the original source column into the coordinate of that same tracer. Consider, for example, a tracer that has a local mid-depth maximum, such that there are two locations where a given value of tracer intersects the column. Each of the cells that contain that value should be partitioned appropriately when transforming the column to a coordinate of that tracer. However, in the sorted column, there is only one intersection of this tracer value, based on whichever cell has the greater tracer value at its center. The other cell, therefore, is not partitioned at all, and included entirely within the layer of the new coordinate for which its center tracer value corresponds. The core point is that a histogram of water column quantities in tracer space is not the same as a histogram of the same column when it is first sorted based on the tracer value. This seems rather obvious when written explicitly. However, the regrid-remap architecture in MOM6 relies intrinsically on the coordinate of the target grid being monotonically increasing. It is only possible to assure this by applying a sorting step. Thus, I am currently of the opinion that the regrid-remap approach cannot be used to conservatively bin diagnostics into tracer space when the tracer is nonmonotonic. I could be missing some smarter way of doing this that does not actually sort the column during the regrid step, but I can't see this at the moment. Absent this smarter way of doing things, I am attempting to implement a histogramming approach. It will copy the basic structure of diagnostic remapping, but rather than finding a new grid and remapping based on this grids, it will determine weights for each source grid cell to be included in each target grid cell. |
Beta Was this translation helpful? Give feedback.
-
This is a discussion on the approach to implement regrid/remap capabilities for any arbitrary tracer in the model. Presently, the regrid/remp procedure requires (assumes) that the coordinate to which the grid is regridded is montonically increasing. This forgoes the possibility of regridding to, for example, temperature.
The implementation of this feature will be carried out in four stages:
rho
coordinateBeta Was this translation helpful? Give feedback.
All reactions