[Thread Prev][Thread Next][Index]
Re: [ferret_users] integration of flux vector along the coastline to compute the transport
- To: saurabh rathore <rohitsrb2020@xxxxxxxxx>
- Subject: Re: [ferret_users] integration of flux vector along the coastline to compute the transport
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Mon, 17 Dec 2018 20:00:04 -0800
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=ISThC+F+; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=ISThC+F+; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :references:message-id:content-transfer-encoding:cc:date:in-reply-to :from:subject:mime-version:dkim-signature; bh=6bNo7VdQuAsT+gVmrk97BVLHu0PPQG/suCK5w9Sb7F0=; b=SBiRTDkrWKkrRA55z0r9QV2+fRT8rSK8Ff+eQYsRoqVynnz+UFO6vSw1ga8+ovN+be 1Cy79WamK/bqX5TcI02C3+GknSqqtBCDeXRova2HXgxe3aAmol3ZVVDW4cReuMtOHi9/ HpEhFemNGjFfbTbAtfHa2YzTJJxD36hZUL0R7eQ7kEd2v/n4DmyUY2It4CQTZFy+qWHs w9cbPM+EFPLd4SiFw2/mKlL7IVLaPUHefHaKfhWTVIi1XE55GoTiGz6ho1E3ITwrpMgR 0B7Ip2ux+sSbLEfF+jLd4div6v1wRe6sulkjTFro+dVc+MAVctuB8gby37TgivJGBkrN YsIw==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:dkim-signature; bh=6bNo7VdQuAsT+gVmrk97BVLHu0PPQG/suCK5w9Sb7F0=; b=CltI4ZGw75Td76uYZPz6EV+UEdwc2TCoUklSUuY8T9HC/gd87MvMeMxAb+QUFXq8QN RnFAYNhUoEWGK4jzqV+ZPXL89vsCyP/a1e57XLwzGdjin1zi6w+rb9cAtXnATzjtiiqO 62IPWqe5zH3wZHnj1iYW1txytn+h7Tin+kX1na56nd0r91uk0AhrslnIRV62G5HeMJP+ KoVLnSLn4r/TEXsm8jK0h/a5/p8HUH+TwC5DoaSI2zdw5PbfuRRSGD7RM1llRAy6WSY0 SpcxBNLwNtA5KewKybh3GiLJCTxURdQtPIjQjk9y5q8zd1LVhpTQSKe6V7n/SYKsz/c6 kwHA==
- Arc-seal: i=2; a=rsa-sha256; t=1545105608; cv=pass; d=google.com; s=arc-20160816; b=ddRDewBJUSr+PAqZYd3YmgYOd1FnR9fHUeRFUhOB3Pv7q9T0ePIgOor8KWVx5Wo/lN rOmV0bCE+dnxrDROtmWJiZNTDqFydhxHNH/XN30lkRRmkPMLeIj+xSim9KpknGtp25Ds O2fPVe70Uaod+qU7k8GPJdExYLb5htqYQB8/YrObDssicG6muu0MYcDacYg8DlfZdw6A 9c1cNQlaI6Ksq/3/enDhNt5GLGVAvcOszKRAzkNrjmoZEv943fzz6Oat61RYNLFq7ctE VYp37LjWfyovpNjIZjzA2qdybPPknP5WWZAk8ku91Vumt/7dBA7MR2VvNgQb45A9vyaw f5pg==
- Arc-seal: i=1; a=rsa-sha256; t=1545105607; cv=none; d=google.com; s=arc-20160816; b=TQdherxtKrq1ssV8wJ4tb7T2oBPv0tariEcr1Q/wZVlP1bMO+s7lnWO1DmPRtiIeHr QoepqJnSSQkqzTq9pC3v56vBMvzg3Pq3w/rbog9gbdj630uHqU46opkauDBp9oMMMGcI HdQlV+2efGmLO8yumEBNpTjRX356Eg7ASpPZ+pIXNChub1AAXZUzAfyPoK1N+r6qI1r7 lcN/PNzFUvm9ngI/LseJ/pSIv0zBqel18qq1mtB54VO9ofx0fi6K7HBWEU2pPzLhijT6 ZrsYcj1vyRJ/O8zEPQ2hXHFpT/k3Fj97jtJBEzi1YKyEtWL3QeE/zm1kpEvXzQDdKeX/ c3rQ==
- Cc: "William S. Kessler" <william.s.kessler@xxxxxxxx>, Martin Schmidt <martin.schmidt@xxxxxxxxxxxxxxxxx>, Ryo Furue <furue@xxxxxxxxxx>, Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=6bNo7VdQuAsT+gVmrk97BVLHu0PPQG/suCK5w9Sb7F0=; b=FHy4JNNxcj31mVN61MeCRyXJBd2lNp1/TzU9RKgxrv+JgbqOyiqo8/rmFzofR7IO35 u1hy6GH5VW31id8ZJEjC19ydI2u2+9P8Y3y2Iqnan8OfMS/uUtOcnsHywhOPneaqNLpp Xam2wMTFIoN3CiKJm8zyNio3B2maDylYVR2SHp1CbOXXWVPXHcFU3uCQoYgesPS/zYcb lpe2xC/zbQMM7IKretB/fSZpaUsXKJMo0kPy170pxwZu1+/16BV4Ozz0m/0oU0AUu2fQ 6sUwaH9NOxXvB0SF6s7pVIyAUnNHWHekY9pbKs7hekEAozpmYQfU/ZsGJw4v8foZlrZw xIaQ==
- In-reply-to: <CAFXLzPhi=YrDO2XQsASO7MP_ZzXHyD72untckyMFpaMkNhTq3A@mail.gmail.com>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <CAFXLzPhYeiEFvKvFKnHyh1Kk4H6Q67+cH0rvW-0gLrXzwCT3eg@mail.gmail.com> <14D024AF-FF97-463F-B487-A388107A42BE@noaa.gov> <CAFXLzPiSn5CuO9Y4LWbO1WZA6+dJAnzB1GBBO1Ok7kb9MVgxVg@mail.gmail.com> <CAFXLzPj4DTrngFndX8wrntZPGzw=20GGL3ptL9BVANqRTO2pqg@mail.gmail.com> <CAEwQpaKJnwrkWdjOHysXv2BHHjebQ8GGp4sHaZ71fs6kuwfJwQ@mail.gmail.com> <ED957164-FDDC-42E8-A5B1-5156B6817841@noaa.gov> <dd88c1e1-1f8d-a507-49df-0f3dffb20e36@io-warnemuende.de> <CAFXLzPhi=YrDO2XQsASO7MP_ZzXHyD72untckyMFpaMkNhTq3A@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
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