[ncl-talk] Hodograph

ali mughal mughalali655 at gmail.com
Wed Feb 9 01:23:51 MST 2022


Dear NCL Team

In the NCL example script,  skewt_10.ncl. The following loop is not
working. I am also copying the error below.

;---Calculate coordinates of hodograph grid circles

 circle_rad   = ispan(20,240,20)                     ; hodograph grid
circle radii
 n_circle_rad = dimsizes(circle_rad)
 circle_deg   = ispan(0,360,2)                       ; points 360 deg
around hodograph circle
 n_deg        = dimsizes(circle_deg)
 cir_x_pts    = new((/n_circle_rad,n_deg/),"float")  ; x coordinates
for hodograph circles
 cir_y_pts    = new((/n_circle_rad,n_deg/),"float")  ; y coordinates
for hodograph circles

 do cc=0,n_deg-1                                         ; loop
through all degrees in circle
  do dd=0,n_circle_rad-1                                 ; loop
through all radii
   uv = wind_component(circle_rad(dd),circle_deg(cc),0)  ; calculate
x,y coordinates using wind_component fx
   cir_x_pts(dd,cc) = uv(0,0)                            ; x
coordinates are in index 0
   cir_y_pts(dd,cc) = uv(1,0)                            ; y
coordinates are in index 1
  end do
 end do


warning:New: Could not coerce missing value parameter into appropriate
type, using default
fatal:Number of subscripts (1) and number of dimensions (2) do not
match for variable (uv)
fatal:["Execute.c":8578]:Execute: Error occurred at or near line 1279
in file /opt/ncl/lib/ncarg/nclscripts/csm/contributed.ncl


I would be grateful if I can get a reply to this question.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220209/1c5bf916/attachment.html>


More information about the ncl-talk mailing list