<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hello,</div>
<div>I am having issues with regridding a cmip5 ocean variable. Using the function “ESMF_regrid” (with NCL version 6.3.0) my script is as follows:</div>
<div>
<div><br>
</div>
<div>;**************************************</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl"</div>
<div>;**************************************</div>
<div>begin</div>
<div>;****************************************</div>
<div><br>
</div>
<div> diri = "/Volumes/theato/"</div>
<div><br>
</div>
<div> dp1 = addfile(diri+"theato_Omon_CESM1-BGC_rcp85_r1i1p1_200601-210012.nc","r")</div>
<div> tsi = dp1->theta</div>
<div> tsia = month_to_annual(tsi,1)</div>
<div><br>
</div>
<div> tsiax = tsia(0,:,:)</div>
<div> tsiax@lat2d = dp1->lat</div>
<div> tsiax@lon2d = dp1->lon</div>
<div><br>
</div>
<div> Opt = True</div>
<div> Opt@ForceOverwrite = True</div>
<div> Opt@SrcMask2D = where(.not.ismissing(tsiax),1,0)</div>
<div> Opt@DstGridType = "1deg"</div>
<div> Opt@SrcGridCornerLat = dp1->lat_vertices</div>
<div> Opt@SrcGridCornerLon = dp1->lon_vertices</div>
<div> Opt@DstLLCorner = (/-89.75d, 0.00d /)</div>
<div> Opt@DstURCorner = (/ 89.75d, 359.75d /)</div>
<div><br>
</div>
<div> rgtsi = ESMF_regrid(tsiax,Opt)</div>
<div><br>
</div>
<div> printVarSummary(rgtsi)</div>
</div>
<div><br>
</div>
<div>;**********************</div>
<div>End</div>
<div><br>
</div>
<div>The error message(s) I receive after running above script is as follows:</div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures;">fatal:Variable (Opt) is undefined</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures;">fatal:["Execute.c":8575]:Execute: Error occurred at or near line 1588 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;">
<span style="font-variant-ligatures: no-common-ligatures;"></span><br>
</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures;">fatal:["Execute.c":8575]:Execute: Error occurred at or near line 3853 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl</span></p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;">
<span style="font-variant-ligatures: no-common-ligatures;"></span><br>
</p>
<p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures;">fatal:["Execute.c":8575]:Execute: Error occurred at or near line 3983 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl</span></p>
</div>
<div><span style="font-variant-ligatures: no-common-ligatures;"><br>
</span></div>
<div><span style="font-variant-ligatures: no-common-ligatures;"><br>
</span></div>
<div><span style="font-variant-ligatures: no-common-ligatures;">Is this a version issue because on a previous version (NCL 6.1.0) I did not run into this problem?</span></div>
<div><span style="font-variant-ligatures: no-common-ligatures;">Any help will be appreciated.</span></div>
<div><span style="font-variant-ligatures: no-common-ligatures;">Thank you.</span></div>
</div>
<div><span style="font-variant-ligatures: no-common-ligatures;"><br>
</span></div>
</body>
</html>