<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;"> source_file = </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;"> 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;"> </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;"> </span><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;">;swe = infile->Snow_Water_Equivalent_with_State_Model_variable_type(0,:,:)</span><br><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;">; FAILS</span><br><span style="font-family: Menlo; font-size: 11px;"> swe = infile->Snow_Water_Equivalent_with_State_Model_variable_type(:,:,:)</span><br><span style="font-family: Menlo; font-size: 11px;"> lat = infile->latitude</span><br><span style="font-family: Menlo; font-size: 11px;"> lon = infile->longitude</span><br><font color="#0f61c8" face="Menlo"><span style="font-size: 11px;"><br></span></font><span style="font-family: Menlo; font-size: 11px;"> 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;"> 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;"> 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;"> 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;"> 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;"> 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;"> 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;"> 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;"> Opt@SrcTitle = source_file</span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;"> </span><br><span style="color: rgb(83, 48, 225); font-family: Menlo; font-size: 11px;"> 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 </span><br><span style="font-family: Menlo; font-size: 11px;"> Opt@DstLLCorner = (/minlat, minlon/)</span><br><span style="font-family: Menlo; font-size: 11px;"> 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;"> 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;"> 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;"> </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;"> 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;"> 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;"> 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;"> 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>