<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Sometimes, you have to read documentation associated with the file(s)<br><span class="gmail-st"><em>Soil Moisture</em> Operational Products System (<b><em>SMOPS</em></b>)</span><br><br>The file has:<br><br>netcdf NPR_SMOPS_CMAP_D20170410 {<br>dimensions:<br><b>        Longitude = 1440 ;<br>        Latitude = 720 ;</b><br>variables:<br>        <b>short</b> Blended_SM(<b>Latitude, Longitude</b>) ;<br>                Blended_SM:long_name = "Blended Soil Moisture" ;<br>                Blended_SM:units = "m^3/m^3" ;<br>                Blended_SM:FillValue = -999s ;<br>                Blended_SM:valid_range = 0s, 10000s ;<br>                Blended_SM:<b>scale_factor </b>= 0.0001f ;<br>                Blended_SM:<b>add_offset</b> = 0.f ;<br><br></div><div>[SNIP]<br>                :Product_Resolution = "0.25 degree" ;<br>                :Date_Start = "20170410" ;<br>                :Date_End = "20170410" ;<br></div><div>[SNIP]<br></div><div> ====<br></div><div>It does not have Latitude[*] and Longitude[*] coordinates. However, <b>*you*</b> can create them. Then, use ESMF or (say)<a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/linint2_Wrap.shtml" target="_blank"><b> linint2_Wrap </b></a>or <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/linint2_points_Wrap.shtml" target="_blank"><b>linint2_points_Wrap</b></a> to perform the interpolation.<br><br>====<br><pre>      nlat = 720<br>      latitude = <b>fspan</b>(-49.875, 49.875, nlat)<br>      latitude@units = "degrees_east"<br>      latitude@long_name = "latitude"<br>      latitude!0        = "latitude"<br>      latitude&latitude =  latitude<br></pre><pre>      printVarSummary(latitude)<br>      printMinMax(latitude,0)<br><br></pre><pre>      mlon = 1440
      longitude  = <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/lonGlobeFo.shtml" target="_blank"><b>lonGlobeFo</b></a>(mlon, "longitude", "longitude", "degrees_east")  ; 0->360<br>      longitude  = (/ longitude - 180. /)  ; subtract 180 from all values 
      longitude&longitude = longitude            ; update coordinates       printVarSummary(lon)<br>   <br>      printVarSummary(longitude)<br>      printMinMax(longitude,0)<br><br><pre>      f = <b>addfile</b>("NPR_SMOPS_CMAP_D20170<wbr><a href="http://410.nc">410.nc</a>","r")<br>      x = <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/short2flt.shtml" target="_blank"><b>short2flt</b></a>( f->Blended_SM )<br></pre></pre><pre>      x&latitude = latitude<br>      x&longitude = longitude <br></pre><pre>      printVarSummary(x)<br></pre><pre>    <br></pre></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 31, 2018 at 5:45 AM, Ehsan Taghizadeh <span dir="ltr"><<a href="mailto:ehsantaghizadeh@yahoo.com" target="_blank">ehsantaghizadeh@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:bookman old style,new york,times,serif;font-size:16px"><div>Hi,</div><div>Until now I've asked some questions related to interpolating some dataset on some unstructured points (synoptic stations). Now I have a new data set which I'm not sure about appropriate method to interpolating. I put one of my data (<span>NPR_SMOPS_CMAP_D20170410.nc</span>) in <span style="font-family:courier;font-size:13.3333px;white-space:pre-wrap"><a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a>. <span><span style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">I'll be thankful if some one could refer me to correct script, like on (</span></span></span><a href="https://www.ncl.ucar.edu/Applications/ESMF.shtml" rel="nofollow" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/ESMF.shtml</a><span style="font-family:courier;font-size:13.3333px;white-space:pre-wrap"><span><span style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">) or (</span></span></span><a href="https://www.ncl.ucar.edu/Applications/regrid.shtml" rel="nofollow" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/regrid.shtml</a><span style="font-family:courier;font-size:13.3333px;white-space:pre-wrap"><span><span style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">), which interpolates my data on some special unstructured points.</span></span></span></div><div><span style="font-family:courier;font-size:13.3333px;white-space:pre-wrap"><span><span style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">However the printVarSummary(<span>Blended_SM</span>) result is as below:</span></span></span></div><div><span style="font-family:courier;font-size:13.3333px;white-space:pre-wrap"><span><span style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px"><br></span></span></span></div><div><span style="font-size:13.3333px;white-space:pre-wrap"><span style="color:rgb(0,0,0);font-size:16px"><div><font face="times new roman, new york, times, serif">Variable: <span style="color:rgb(0,0,0);font-size:16px;white-space:pre-wrap">Blended_SM</span></font></div><div><font face="times new roman, new york, times, serif">Type: float</font></div><div><font face="times new roman, new york, times, serif">Total Size: 4147200 bytes</font></div><div><font face="times new roman, new york, times, serif">            1036800 values</font></div><div><font face="times new roman, new york, times, serif">Number of Dimensions: 2</font></div><div><font face="times new roman, new york, times, serif">Dimensions and sizes:   [Latitude | 720] x [Longitude | 1440]</font></div><div><font face="times new roman, new york, times, serif">Coordinates:</font></div><div><font face="times new roman, new york, times, serif">Number Of Attributes: 5</font></div><div><font face="times new roman, new york, times, serif">  _FillValue :  1e+20</font></div><div><font face="times new roman, new york, times, serif">  long_name :   Blended Soil Moisture</font></div><div><font face="times new roman, new york, times, serif">  units :       m^3/m^3</font></div><div><font face="times new roman, new york, times, serif">  FillValue :   -999</font></div><div><font face="times new roman, new york, times, serif">  valid_range : (  0,  1 )</font></div><div style="font-family:"bookman old style","new york",times,serif"><br></div><br></span></span></div><div><span style="white-space:pre-wrap">Sincerely</span><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-family:courier;font-size:13.3333px;white-space:pre-wrap"><span><span style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">Ehsan</span></span></span></div></font></span></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>