Re: Rect 2 Polar Conversion [message #2782] |
Fri, 16 September 1994 17:37 |
candey
Messages: 6 Registered: March 1994
|
Junior Member |
|
|
In article <gasster-160994124748@spdmac.aero.org>,
gasster@courier6.aero.org (Dr. Samuel Gasster) wrote:
> I was wondering if anyone has already written an IDL routine to
> do the following:
>
> given the 2D array z(x,y) and the x and y vectors on a uniform
> rectangular grid, map this to a uniform polar grid giving
>
> z(r, theta) plus the corresponding uniformly spaced r and theta vectors.
>
> If you've already done this it would save me (and others) time.
> Thanks.
>
> --
> Dr. Samuel Gasster
> gasster@courier6.aero.org
> 8-)
Paul Ricchiazzi of Earth Space Research Group, UCSB wrote a nice polar
plot routine in October 1992.
It can be found in IDL_DIR:[USER_CONTRIB.ESRG_UCSB]ESRG_UCSB.TLB (and its
Unix equivalent, I assume): TV_POLAR.PRO. I made two changes:
In TV_POLAR.PRO
;pp(ii)=180+atan(yy(ii),-xx(ii))/!dtor ; azimuth angle array
pp(ii)=180-atan(yy(ii),-xx(ii))/!dtor ; azimuth angle array
In TVIM.PRO
aa=a ; and passed in my own byte array
;aa=(max_color-1)*((float(a)-range(0))/(range(1)-range(0)) > 0. < 1.)
___________________
Bobby Candey NSSDCA::CANDEY
NASA Goddard Space Flight Center, Code 632 candey@nssdca.gsfc.nasa.gov
Greenbelt, MD 20771 USA 1-301-286-6707
|
|
|