<div dir="ltr"><div dir="ltr"><div dir="ltr">I have an ascii output in irregular grid and trying to some station points using the script below<div><div>;*************************************************</div><div>; location.ncl </div><div>;************************************************</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"  </div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"  </div><div>;************************************************</div><div>begin</div><div>;************************************************</div><div>; read ascii input file</div><div>;************************************************</div><div>  values = asciiread("/Users/Jag/Desktop/cdz-regrid/20060101-sindia.txt",-1,"float")</div><div>  nvals = dimsizes(values)</div><div>  ncols = 9</div><div>  nrows = ncols/nvals</div><div>  lat2d  = values(1::ncols)   </div><div>  lon2d  = values(2::ncols)</div><div>  srad = values(3::ncols) </div><div>  tmax = values(4::ncols)</div><div>  tmin = values(5::ncols) </div><div>  rain = values(6::ncols)</div><div>  wind = values(7::ncols)  </div><div>  rhum = values(8::ncols)  </div><div>;***********************************************</div><div>  latcdz = (/ 10.20, 10.48, 10.67 /)</div><div>  loncdz = (/ 79.00, 78.20, 78.75 /)</div><div>  tmaxcdz = rcm2points (lat2d, lon2d, tmax, latcdz, loncdz, 0)</div><div>print(tmaxcdz)</div><div>end</div><div><br></div><div>But when I run the code it shows the following error.</div><div><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">fatal:Number of dimensions in parameter (0) of (rcm2points) is (1), (2) dimensions were expected </span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">fatal:["Execute.c":8637]:Execute: Error occurred at or near line 26 in file check.ncl</span></p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">The file is for single time. </p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">Will you please help me to solve the problem</p></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>With regards<br><br>Dr.R.Jagannathan                <br>Professor & Former Dean<br>Tamil Nadu Agricultural University <br>Coimbatore - 641 003 India        <br><br>PHONE:  Mob: +91 94438 89891<br><br>DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.</div></div></div></div></div></div></div>