Just to get the concepts clear: (lon, lat) are coordinates ... This distinction can be important within your larger grid cells. More about this below.
Continuing the previous thought, I wonder whether you might really be interested in total fluxes across each cell edge. If so, you need to account for total edge length. ...
Of more concern is whether you are kriging the positive and negative parts of each component separately. I don't think you should. Krige the components first, then--if you really must--separate the interpolated components into their positive and negative parts.
for (lon, lat) in points of the grid described in A. : for t in all 6hrs timesteps in a year : if windVelocity(lon, lat, t).U > 0 Upos(lon, lat).value += velocity(lon, lat, t).U Upos(lon, lat).counter += 1 elseif windVelocity(lon, lat, t).U < 0 Uneg(lon, lat).value += velocity(lon, lat, t).U Uneg(lon, lat).counter += 1 // .. same for Vpos, Vneg �?� Upos(lon, lat).value /= Upos(lon, lat).counter Uneg(lon, lat).value /= Uneg(lon, lat).counter // .. same for Vpos, Vneg.
Also of concern is whether you are cokriging the two components. You definitely should be ... If it's not, cokriging is important.
I worry about this approach a little, because usually one does not separate a normal velocity into a positive and negative part. But I'll accept that this operation is physically meaningful in your model.
... However, we already implicitly "connected" all such tangent planes ...
The computer model ... so just make sure to choose the origin and cellsize of the interpolation grid so that its cell centers lie along edges.
For example, if all your edges lie along curves where the latitude or longitude are integers, then perform the kriging on a grid whose cellsize is one (decimal degree) but whose origin is offset by a half degree (for example, make the origin at (-180.5, -90.5)).
... In your attached Figure C, the cell sizes in the grid appear too be 1, 2, 4, 8, 16, or 32 times a basic cellsize of approximately one degree. To obtain the average along a vertical edge, for instance, perform the interpolation on a finer grid of some fraction of the basic cellsize, ...
A focal mean using a neighborhood of width 1 (cell) and height 10 cells will compute the average of this vertical edge and assign the result to a cell close to its center. ... centers of all one-degree vertical edges in your model grid you can extract the focal means for those edges. You need to do this for all four scalar fields (U+, U-, V+, V-).
for each edge length L: Perform focal stat using neighborhood of width 1 pixel and height nPixels(L). Sample the output at locations given by the centers of edges of length L.
...If you are assuming the z-components are constant, then net flow though any cell will be the sum of the U+ and V+ (around four edges) minus the sum of the U- and V- (around the same four edges). That net flow must equal the total contribution of all sources and sinks within the cell. (That's a restatement of the Divergence Theorem.) For this to work correctly, you must weight the vector components by the lengths of their normal edges
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.