comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Rect 2 Polar Conversion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Rect 2 Polar Conversion [message #2782] Fri, 16 September 1994 17:37
candey is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Request: Kalman filter or extended Kalman filter PV-WAVE code?
Next Topic: Re: problem with call_external

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:14:31 PDT 2025

Total time taken to generate the page: 0.74534 seconds