<div dir="ltr">Greetings,<div>I am very new to netcdf  and need some assistance.  I am trying to calculate zonal statistics (sums and averages within watershed shapes) using some tools in ArcGIS for netcdf.  The tools require netcdf files to be in a regular grid.  My source data is NARR data, which isn&#39;t being recognized as a regular grid (I believe it is curvilinear).  So I am trying to regrid using templates provided on the ucar website.  Attached is the code I am currently using.  It gives me the following error.  Despite search archives of this list, other responses have not resolved my problem. Help is very much appreciated, clearly there is something I am not understanding.</div><div><br></div><div><br></div><div><br></div><div><div>fatal:Eq: Dimension size, for dimension number 0, of operands does not match, can&#39;t continue</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl&quot;</div><div><br></div><div>;---Data file containing source grid</div><div>    src_file = &quot;<a href="http://air.sfc.2009.nc">air.sfc.2009.nc</a>&quot;                    ;;---Change (likely)</div><div>    sfile    = addfile(src_file,&quot;r&quot;)</div><div><br></div><div>;---Get variable to regrid</div><div>    varname = &quot;air&quot;                    ;;---Change (likely)</div><div>    var     = sfile-&gt;air</div><div>    src_lat = sfile-&gt;lat               ;;---Change (maybe)</div><div>    src_lon = sfile-&gt;lon               ;;---Change (maybe)</div><div><br></div><div>;---Set up regridding options</div><div>    Opt                   = True</div><div><br></div><div>;---&quot;bilinear&quot; is the default. &quot;patch&quot; and &quot;conserve&quot; are other options.</div><div>    Opt@InterpMethod      = &quot;bilinear&quot;        ;;---Change (maybe)</div><div><br></div><div>    Opt@WgtFileName       = &quot;<a href="http://curv_to_1deg.nc">curv_to_1deg.nc</a>&quot;</div><div><br></div><div>    Opt@SrcGridLat        = src_lat           ; source grid</div><div>    Opt@SrcGridLon        = src_lon</div><div>    Opt@SrcRegional       = True             ;;--Change (maybe)</div><div>    Opt@SrcInputFileName  = src_file          ; optional, but good idea</div><div>    Opt@SrcMask2D         = where(.not.ismissing(var),1,0) ; Necessary if has</div><div>                                                           ; missing values.</div><div><br></div><div>    Opt@DstGridType       = &quot;0.5x0.5&quot;            ; Destination grid</div><div>    ;Opt@DstLLCorner       = (/-89.75d,   0.00d /)   ;;--Change (likely)</div><div>    ;Opt@DstURCorner       = (/ 89.75d, 359.75d /)   ;;--Change (likely)</div><div>    Opt@DstRegional       = True                 ;;--Change (maybe)</div><div><br></div><div>    Opt@ForceOverwrite    = True</div><div>    Opt@PrintTimings      = True</div><div>    Opt@Debug             = True</div></div><div><br></div><div><div>    var_regrid = ESMF_regrid(var,Opt)     ; Do the regridding</div><div><br></div><div>    printVarSummary(var_regrid)</div></div><div><br></div></div>