[ncl-talk] Cartesian coordinate plotting
Md. Jalal Uddin
dmjalal90 at gmail.com
Fri Jul 19 01:53:48 MDT 2019
Hi all,
I set a Cartesian coordinate (x,y) below.
pi = 3.141593
deg2rad = pi/180.
earth_radius = 6371.
r = ispan(0,300,10)
theta = ispan(0,360,10)
x =
conform_dims((/dimsizes(r),dimsizes(theta)/),r,0)*cos(conform_dims((/dimsizes(r),dimsizes(theta)/),theta,1)*deg2rad)
y =
conform_dims((/dimsizes(r),dimsizes(theta)/),r,0)*sin(conform_dims((/dimsizes(r),dimsizes(theta)/),theta,1)*deg2rad)
;printVarSummary(x) ; [31] x [37]
;printVarSummary(y) ; [31] x [37]
My precipitation data within 300 Km from the center lat and lon.
cen_avg = dim_avg_n_Wrap(time_avg,0) ;[radius | 31] x [circle | 180]
How can I conform to cen_avg data as x, y and plot? Full code in the
attached file?
;Jalal
--
*Md. Jalal Uddin*
MSc in Applied Meteorology
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190719/e686fe2c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cartesian.ncl
Type: application/octet-stream
Size: 3113 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190719/e686fe2c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cartesian.png
Type: image/png
Size: 47290 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190719/e686fe2c/attachment.png>
More information about the ncl-talk
mailing list