<div dir="ltr">Hi,<div><br></div><div>I get the error messages: </div><div><br></div><div><font face="monospace, monospace">fatal:Subscript out of range, error in subscript #0</font></div><div><font face="monospace, monospace">fatal:An error occurred reading lon</font></div><div><font face="monospace, monospace">fatal:["Execute.c":8128]:Execute: Error occurred at or near line 18228 in file local_bin/contributed.ncl_beta_640</font></div><div><br></div><div><font face="monospace, monospace">fatal:["Execute.c":8128]:Execute: Error occurred at or near line 168 in file wrf_temp_adv.ncl</font></div><div><br></div><div><br></div><div>when trying to feed a rectilinear grid into the function grad_latlon_cfd. A subset of my script is below:</div><div><div><br></div><div><font face="monospace, monospace">(...opts for regrid...)</font></div><div><font face="monospace, monospace">tc_rect_plane = ESMF_regrid(tc_plane,Opt) ; Do the regridding</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">; Define variables needed to calculate temp advection</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> printVarSummary(tc_rect_plane)</font></div><div><font face="monospace, monospace"> print(nlat)</font></div><div><font face="monospace, monospace"> print(mlon)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> gradT = grad_latlon_cfd(tc_rect_plane,nlat,mlon,False,False) ; First "False" is to indicate that data is NOT cyclic</font></div><div><font face="monospace, monospace"> dTdx = gradT[0]</font></div><div><font face="monospace, monospace"> dTdy = gradT[1]</font></div><div><br></div><div>The print lines return (1) that tc_rect_plane has 2 dimensions with coordinates [281,353], (2) 281, and (3) 353, respectively, which is why I'm confused on where it's going out of bounds.</div><div><br></div><div>I appreciate any help I can get!</div><div><br></div><div>Ryan</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="1">Ryan Connelly</font></div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><font color="#000000"><font size="1">M.S. Student in Atmospheric Sciences, </font><span style="font-size:x-small">Stony Brook University</span><br></font></div><div dir="ltr" style="font-size:12.8px"><div><font color="#000000"><font size="1">B.S. in Meteorology with Minors in Mathematics and GIS, </font><span style="font-size:x-small">Valparaiso University</span></font></div></div><div><a href="mailto:rconne01@gmail.com" style="font-size:x-small" target="_blank">rconne01@gmail.com</a><br></div><div><font size="1"><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div>
</div></div>