[Thread Prev][Thread Next][Index]

Re: [ferret_users] integration of flux vector along the coastline to compute the transport



Hi all,

some ideas, only a concept:

- as a first step I would produde a land mask (0,1) on the grid of the fluxes just by mapping appropriate topography file onto the flux data grid. May be from etopo5.

- as the next step we should produce another mask that is "missing" everywhere except the coastal points defined as the boundaries of the previous mask. There may be zonal and meridional interfaces for a cell. Use the sign to mark, if east = in or east=out. No need to consider single points explicitly.

- multiplying u and v with the coastal mask and multiplying with the cell length (needs some thought dx = 1/2 (x_i - xi_1) + 1/2 (x_i+1 - x_i) = 1/2 (x_i+1 - x_i_1) or so) gives all transports. The sum over the area the full budget.

- Now use compressi to put the data onto two lines. Regridding to a new grid to put the data onto one long line is the next step. Almost there.

- Finally the carry out the sum and plot.

Best,

Martin


Am 17.12.2018 um 14:50 schrieb William Kessler:
On Dec 16, 2018, at 11:25 PM, Ryo Furue <furue@xxxxxxxxxx> wrote:

Hi Saurabh and Ferret users,

On Mon, Dec 17, 2018 at 3:31 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
Here is the thing that I am looking for. I want to plot the cumulative sum of the flux let's say starting from location of Melbourne covering all around Australia and ending at Melbourne.

So it will give me line plot which show where (lat,lon) the flux is increasing or decreasing.

If I understand correctly, that's exactly what I did in my paper:

      https://doi.org/10.1175/JPO-D-16-0170.1

The basic principle is "easy": Let our "coast line" exactly follow the outline of the gridboxes that form Australia.  In this case, the "cross-shore direction" is either zonal or meridional exactly.  Therefore, the cumulative sum you want is the running sum of u Δx or v Δy, depending on the orientation of the local "coastline".

Unfortunately, implementing this is complicated in my experience.
Yes, complicated, especially where the coast has indentations. And you must pay careful attention to the grid structure of u,v and T (or whatever quantity is being advected). Is it a B or C grid? The method will be different, and the answer could be very systematically different in a long integral.

Why do you need a line plot and specific locations of the flux? If you only want the total integrated cross-shore transport then the divergence theorem is a better solution and not subject to these complications. (Though it will also require decisions about how to take the divergence derivatives at the edges ... then the difficulty will be at peninsulas, not indentations). The two methods would be a useful check on each other; the result will not be identical, and the difference would be a measure of uncertainty.

Billy



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement