[Thread Prev][Thread Next][Index]

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



The problem with your method is that you need the perpendicular component at each gridpoint. Ryo's method will work for that:

> 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".

But you would have to do that before unwrapping. Or, carry along a marker for the "outward" direction of each gridface. And surely this is a tedious calculation, very easy to make a mistake.

=> And you must be sure to be consistent with the grid of the fields in question: B-grid or C-grid <=

The divergence theorem method will be a useful check ... and this will need such a check!

Billy

> On Dec 17, 2018, at 3:28 PM, saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
> 
> Dear Ryo, Billy and Martin,
> G'day
> 
> First of all thanks to Ryo and Billy for suggesting the solution using divergence theorem. However, I am in agreement with Martin because the purpose of this exercise is to see how the flux/transport vary at different locations at the land-ocean boundary. So I hope I should follow these steps to fulfill my objective but I am not sure, I have to look both solution (Martin's solution and Billy's Solution).
> 
> Billy's solution is the straight forward I guess and easy to compute.
> 
> In terms of Martin's solution which I was also thinking to proceed by the following steps
> (1) get the coastline mask data this will give us the land-ocean boundary
> (2) mask our variable of interest with this coastline data, before this make the coastline data of same resolution of variable of interest.
> (3) arrange this 2-d data into 1-d format 
> (4) do the running sum over this 1-d format data
> 
> Please let me know if I am right or wrong ?
> 
> challenges for the solution
> (1) how to get the land-ocean boundary i.e. the coastline data
> (2) unwrap it into 1-d data for running sum
> 
> So, in my thinking the solution looks like this but I don't have any idea that does it make any sense or not. if it does so how to proceed.
> 
> cheers, saurabh
> 
> On Tue, Dec 18, 2018 at 4:37 AM Martin Schmidt <martin.schmidt@xxxxxxxxxxxxxxxxx> wrote:
> 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
> 
> 
> 
> -- 
> 
> 
> REGARDS
> 
> Saurabh Rathore
> Research Scholar (PhD.)
> Centre For Oceans, Rivers, Atmosphere & Land Science Technology
> Indian Institute Of Technology, Kharagpur
> contact :- 91- 8345984434




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

Privacy Policy | Disclaimer | Accessibility Statement