Dear Ansley and Jaison,
thank you for your suggestions.
I want to get the along-shore current along the west coast of India. Grid locations along the west coast of India will determine the inclination of the coast line. Then this angle will be used to rotate the U,V component of current to get the along-shore component.
since for the west coast of India grid locations about 250 m depth will be in increasing order of latitude, therefore Jaison's code might be helpful.
Abhisek
Abhisek Chatterjee POD, NIO Dona Paula Goa-403004
Ph.N- +91-9371679339
--- On Wed, 9/2/11, Ansley Manke
<ansley.b.manke@xxxxxxxx> wrote:
From: Ansley Manke <ansley.b.manke@xxxxxxxx> Subject: Re: [ferret_users] list lat,lon along a contour To: "Abhisek Chatterjee" <abhi.iitkgp@xxxxxxxxxxx> Cc: "oar.pmel.ferret_users@xxxxxxxx" <oar.pmel.ferret_users@xxxxxxxx> Date: Wednesday, 9 February, 2011, 10:34 PM
Hi -
Just to add some background - there is not a direct way to write the
data from the lines that CONTOUR computes. We could add code to
capture and list out the coordinates of the lines that are drawn,
but in general it would be difficult to make sense of the output.
The algorithm computes the results by working on the data field a
section at a time, to make the interpolation calculation manageable.
The result is drawn on the page as it's calculated, and so the
listing listing would not be in a useful order as an output.
(To see this happening, make a contour plot with lots of lines,
which slows things down enough that you'll be able to see the lines
being drawn in a section at a time on the screen.)
Ansley
On 2/9/2011 12:39 AM, Jaison Kurian wrote:
This may help you :
Jaison
On Tue, Feb 8, 2011 at 1:35 AM, Abhisek
Chatterjee <abhi.iitkgp@xxxxxxxxxxx>
wrote:
Dear ferret users,
I want to list all the latitude, longitude position
along a contour.
for example
use etopo5.nc
! topography file
con/lev=(250) depth
this gives a contour across all grids, where, the
depth of the ocean is about 250 m.
Now, I I want to list the positions of these grids in
terms of latitude and longitude.
Thanks in advance,
Abhisek Chatterjee
Abhisek
Chatterjee
POD, NIO
Dona Paula
Goa-403004
India
Ph.N-
+91-9371679339
|
|