Hi Jessie, The 3-argument plot commands are using the longitude/latitude coordinate variables entirely within the graphics portion of Ferret to draw on the page using the curvilinear coordinate values. The 1-D X and Y axes that form the grid of curvilinear coordinate variables is in abstract index space. The longitudes and latitudes that are labeled on an XY plot are coming from the units of the 2D longitude and latitude curvilinear variables. If I understand what you're doing correctly, if you know the latitude values that correspond to the indices on your plot, you can RESHAPE your result onto a grid that has Y axis defined in terms of latitude that correspond to the index values (or put it onto a latitude-y axis using @ASN). Say for instance, if your variable is VAR, your curvilinear coordinate variables are lon2d and lat2d, then yes? define axis/y/units=degrees_north ylat = lon2d[i=7]More generally to use the coordinates for other computations or for graphics in other than the XY direction you would need to use function calls, such as SAMPLEXY_CURV. Call SAMPLEXY_CURV with a set of X points and Y points that lie along the line of constant longitude you want to use. The function SAMPLEXY_CURV returns the result on an abstract axis in X and so you need to put the result onto an axis that has units of latitude. The outline of the commands, just making up some numbers to use, yes? define axis/y=1:31:0.2/units=degrees_north yaxptsAnd then you'd need to assign or reshape that onto a grid with a Y (or X) axis, as I did above. On 12/4/2010 12:20 PM, CAPT Carman wrote:
|