<div dir="ltr"><div><div><div><div><div><div>Dear NCL users<br><br><br></div>I am trying to get the spatial <br><br>atal:Number of subscripts do not match number of dimensions of variable,(3) Subscripts used, (5) Subscripts expected<br><br></div>I have two files with <br>Ist file have lat, lon, X1, time dimensions<br></div></div>2nd file have lat, lat_bands, lon, lon_bands, Y1, time, time_bands dimensions<br><br></div>So how to remove the time_bands, lon_bands, and lat_bands so that all the dimensions of 2nd file will be matched with 1st file.<br><br><br><br></div><div>I used the script<br><br> in1 = addfile("/home/kunal/<a href="http://x1.nc">x1.nc</a>","r")<br> in2 = addfile("/home/kunal/<a href="http://y2.nc">y2.nc</a>","r")<br> filename = "/home/kunal/IND_adm/india_state.shp"<br> <br> tmp2 = int1->X1<br> tmp1 = in2->Y2<br>;************************************************<br>; reorder to get time as right most dimension<br>;***********************************************<br> ts1 = tmp1(lat|:,lon|:,time|:)<br> ts2 = tmp2(lat|:,lon|:,time|:)<br>;************************************************<br>; calculate cross correlations<br>;************************************************<br> maxlag = 0 ; set lag<br>; note, the max lag should not be more than N/4<br> <br> ccr = esccr(ts2,ts1,maxlag) ; calc cross correlations<br><br>; copy meta data and coordinate variables using contributed functions<br> copy_VarAtts(ts1, ccr) <br> copy_VarCoords_1(ts2,ccr)<br> printVarSummary(ccr)<br></div><div><div><div><div><div><br> plot = gsn_csm_contour_map_ce(wks,ccr(:,:,lag),res)<br><br><br></div><div>please provide some information on that.<br></div><div>Thank You<br></div><div><br><div><div><div><div class="gmail_signature"><div dir="ltr"><div><div>Regards<br></div><div>Kunal<br></div><div dir="ltr"><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div>