[ncl-talk] r,theta (radar) plotting
Md. Jalal Uddin
dmjalal90 at gmail.com
Sun Jul 7 23:52:52 MDT 2019
Hi all,
How can I plot my TRMM rainfall data as a similar to radar_2 example (
https://www.ncl.ucar.edu/Applications/Scripts/radar_2.ncl)?
How can I modify here?
angles = f->azimuth
angles(0:63) = angles(0:63)-360 ; fix to make angles monotonic
DEGTORAD = 0.017453292519943
xcenter = 0.0
ycenter = 0.0
radius = 960 * 0.25 ; this is radius in kilometers
; Create 2D coordinate arrays.
inc = radius / (dsizes(1) - 1)
x = inc * ispan(0,dsizes(1)-1,1)
angles2d = conform(dbz,angles,0)
x2d = conform(dbz,x,1)
xarr = xcenter + x2d * cos(DEGTORAD * angles2d)
yarr = ycenter + x2d * sin(DEGTORAD * angles2d)
Best wishes,
Jalal
--
*Md. Jalal Uddin*
MSc in Applied Meteorology (English Language)
Nanjing University of Information, Science and Technology, China
B.Sc. in Disaster Management (Hons.)
Patuakhali Science and Technology University, Bangladesh.
Cell: +8613260859092, +8801792052662
Web: www.dmjalal90.weebly.com
Facebook: jalal.hossen.39
LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
Twitter: dmjalal90
Skype: dmjalal90
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190708/e053f05a/attachment.html>
More information about the ncl-talk
mailing list