<div dir="ltr"><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">Dear ncl users,</p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">I was wondering if could help me to find out the source of error I got in </span><span style="font-size:11pt">plotting correlation of principal components (PCs)</span><span style="font-size:11pt">. I have used filtered precipitation datasets to calculate
and plot eofs and generate associate PCs and write them into netcdf file (EOF_my.nc).</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">Then using the written netcdf file (EOF_my.nc), I am getting
error in plotting correlation of the PCs.</p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-family:"Adobe Devanagari",serif;background:yellow">fatal: Subscript out of range, error in subscript #1</span></b></p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-family:"Adobe Devanagari",serif;background:yellow">fatal:["Execute.c":8637]:Execute: Error occurred at or near
line 98 in file plot_correlation.ncl</span></b><b><span style="font-family:"Adobe Devanagari",serif"></span></b></p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">I have done a thorough investigation of the script and suspect
line 75 to be a source of error of line 98, however, I have not been able to solve
the problem. </p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><b>Line 75: </b></p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-family:"Adobe Devanagari",serif;background:silver">ind_mar_1_1981=ind(cd_cal(:,0) .eq. yrs .and. cd_cal(:,1) .eq. mns
.and. cd_cal(:,2) .eq. 1 .and. cd_cal(:,3) .eq. 0)</span></b><b><span style="font-family:"Adobe Devanagari",serif"></span></b></p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"> <span style="font-size:11pt">Please I need your help!!</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">I attach the script and the <a href="http://eof_my.nc">eof_my.nc</a> datasets.</p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">Thanks</p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif">Edwin</p></div>