<div dir="ltr">I have a run on an unstructured grid. I map to lat-lon grids using ESMF regridding, with an offline weights file. wkSpaceTime runs fine when I use the weight file mapping to a grid with nlon = 512, but it gives an error when I use the weights file for a grid of nlon = 513. I've used both of these wgt files for many months and I have no reason to believe they are corrupt. The error occurs for the grid with nlon = 513:<div><br></div><div><div><div>fatal:Dimension size mismatch, dimension (1) of left hand side reference does not have the same size as the right hand side reference after subscripting.</div><div>fatal:["Execute.c":8640]:Execute: Error occurred at or near line 240 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl</div><div><br></div><div>fatal:["Execute.c":8640]:Execute: Error occurred at or near line 738 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl</div></div><div><br></div><div>line 738 of cam_diagnostics calls the function "resolveWavesHayashi." It has a problem with this block of code:</div><div><br></div><div>varspacetime = new((/2,mlon+1,N+1/),typeof(varfft),1e20)</div><div><br></div><div>varspacetime(:,:mlon/2-1,:N/2-1) = varfft(:,mlon/2:1,N/2:N-1)</div><div>varspacetime(:,:mlon/2-1,N/2:)   = varfft(:,mlon/2:1,:N/2)<br></div><div>varspacetime(:, mlon/2: ,:N/2)   = varfft(:,:mlon/2,N/2:0) <---fatal error here<br></div><div>varspacetime(:, mlon/2: ,N/2+1:) = varfft(:,:mlon/2,N-1:N/2)</div><div><br></div><div>So from the error, I gather that the sizes of subscripted dimension 1 don't agree during the array assignment, i.e., " mlon/2: " is not equal to " :mlon/2". But it should be. The next line uses the same dimension 1 assignment so I think that would probably cause an error too. </div><div><br></div><div>I'm not sure if this is a user error or not. My script is attached. It is a slightly modified version of <a href="http://www.ncl.ucar.edu/Applications/Scripts/wkSpaceTime_1.ncl">http://www.ncl.ucar.edu/Applications/Scripts/wkSpaceTime_1.ncl</a>.</div></div><div><br></div><div>Adam</div></div>