The POLAR_SURFACE function interpolates a surface from polar coordinates (R, Theta, Z) to rectangular coordinates (X, Y, Z). The function returns a two-dimensional array of the same type as Z.
This routine is written in the IDL language. Its source code can be found in the file
polar_surface.pro
in the
lib
subdirectory of the IDL distribution.
An array containing the surface value at each point. If the data are regularly gridded in R and Theta , Z is a two dimensional array, where Zi,j has a radius of Ri and an azimuth of Thetaj . If the data are irregularly-gridded, Ri and Thetai contain the radius and azimuth of each Zi . Note that the ordering of the elements in the array Z is opposite that used by the POLAR_CONTOUR routine.
A two element vector containing the desired grid spacing of the resulting array in x and y . If omitted, the grid will be approximately 51 by 51.
A four element vector, [ x 0 , y 0 , x 1 , y 1 ], containing the limits of the xy grid of the resulting array. If omitted, the extent of input data sets the limits of the grid.