<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;"><div><br><font color="#0f61c8"><br><br></font><font face="Menlo"><span style="font-size: 11px;">&nbsp; &nbsp; source_file =&nbsp;</span></font><font color="#c33720" face="Menlo"><span style="font-size: 11px;">“./snodas_tmp.nc"</span></font><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; infile = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(52, 187, 199);">addfile</span><span style="font-family: Menlo; font-size: 11px;">(source_file, </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">"r"</span><span style="font-family: Menlo; font-size: 11px;">)</span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp;&nbsp;</span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">; WORKS</span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp;&nbsp;</span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">;swe = infile-&gt;Snow_Water_Equivalent_with_State_Model_variable_type(0,:,:)</span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp;&nbsp;</span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">; FAILS</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; swe = infile-&gt;Snow_Water_Equivalent_with_State_Model_variable_type(:,:,:)</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; lat = infile-&gt;latitude</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; lon = infile-&gt;longitude</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; minlon = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(52, 187, 199);">min</span><span style="font-family: Menlo; font-size: 11px;">(lon)</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; maxlon = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(52, 187, 199);">max</span><span style="font-family: Menlo; font-size: 11px;">(lon)</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; minlat = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(52, 187, 199);">min</span><span style="font-family: Menlo; font-size: 11px;">(lat)</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; maxlat = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(52, 187, 199);">max</span><span style="font-family: Menlo; font-size: 11px;">(lat)</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">True</span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;"> </span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">; Regridding options</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@SrcFileName = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">"snodas_SrcSCRIP.nc"</span><span style="font-family: Menlo; font-size: 11px;"> </span><span style="font-family: Menlo; font-size: 11px; color: rgb(83, 48, 225);">; Output files</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@DstFilename = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">"snodas_DstSCRIP.nc"</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@ForceOverwrite = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">True</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@SrcTitle = source_file</span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp;&nbsp;</span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@DstGridType = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">".0818deg"</span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;"> </span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">; destination grid of 9km or .0818 degrees&nbsp;</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@DstLLCorner = (/minlat, minlon/)</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@DstURCorner = (/maxlat, maxlon/)</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@SrcRegional = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">True</span><span style="font-family: Menlo; font-size: 11px;"> </span><span style="font-family: Menlo; font-size: 11px; color: rgb(83, 48, 225);">; regional grid source</span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@DstRegional = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">True</span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;"> </span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">; regional grid destination</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp;&nbsp;</span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">; need to mask out water pts, marked as -9999</span><br><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@SrcGridMask = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(52, 187, 199);">where</span><span style="font-family: Menlo; font-size: 11px;">(swe.eq.-</span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">9999</span><span style="font-family: Menlo; font-size: 11px;">,</span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">0</span><span style="font-family: Menlo; font-size: 11px;">,</span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">1</span><span style="font-family: Menlo; font-size: 11px;">)</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@InterpMethod = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);">"bilinear"</span><br><span style="color: rgb(195, 55, 32); font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; Opt@WgtFileName = </span><span style="color: rgb(195, 55, 32); font-family: Menlo; font-size: 11px;">"snodas_Swath_2_Rect_bilinear.nc"</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;">&nbsp; &nbsp; swe_regrid = ESMF_regrid(swe,Opt)</span><br><font color="#0f61c8"><br><br><br><br><br></font><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div></div></div><br></div></div><br></body></html>