Attached is a scan of some old notes, not code. It's pretty straightforward to code once you do the trigonometry (that's what's in these notes). The trickiest part of a calculation like this is deciding what you mean by "coast": Is it the wind at the beach? Or 25, 50, 100km offshore? That has implications for how complicated your "coastline" is, but more importantly the wind is almost always stronger further offshore, so the result depends very much on this choice. This is further complicated by how the wind product was calculated and how that processing treated the nearshore region. The scale of coast you choose will therefore have large implications for the result. Billy K On Jun 27, 2018, at 12:38 AM, vivek shilimkar <vivek.shilimkar@xxxxxxxxx> wrote: |