<html><head></head><body><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div></div>
<div><span style="color: rgb(38, 40, 42);">Hi,</span><br></div><div id="ydpdfb568aayahoo_quoted_7713408982" class="ydpdfb568aayahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div id="ydpdfb568aayiv8920612249"><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div class="ydpdfb568aayiv8920612249ydpbbc61b17yahoo_quoted" id="ydpdfb568aayiv8920612249ydpbbc61b17yahoo_quoted_8100818481"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div id="ydpdfb568aayiv8920612249ydpbbc61b17yiv0430163723"><div style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div>I want to interpolate soil moisture data from SMAP (Soil Moisture Ative/Passive) to some specified locations (in stations_NW.csv attached file). Some information of data are as belows.</div><div><br></div><div><div>printVarSummary(lat2d)<br></div><div><div><span style="background-color: rgb(173, 215, 115);">Variable: lat2d</span></div><div><span style="background-color: rgb(173, 215, 115);">Type: float</span></div><div><span style="background-color: rgb(173, 215, 115);">Total Size: 1565536 bytes</span></div><div><span style="background-color: rgb(173, 215, 115);"> 391384 values</span></div><div><span style="background-color: rgb(173, 215, 115);">Number of Dimensions: 2</span></div><div><span style="background-color: rgb(173, 215, 115);">Dimensions and sizes: [DIM_000 | 406] x [DIM_001 | 964]</span></div><div><span style="background-color: rgb(173, 215, 115);">Coordinates:</span></div><div><span style="background-color: rgb(173, 215, 115);">Number Of Attributes: 2</span></div><div><span style="background-color: rgb(173, 215, 115);"> long_name : Latitude of the center of the Earth based grid cell.</span></div><div><span style="background-color: rgb(173, 215, 115);"> units : degrees_north</span></div><div><br></div></div><div><div>printVarSummary(lon2d)<br></div><div><span style="background-color: rgb(173, 215, 115);">Variable: lon2d</span></div><div><span style="background-color: rgb(173, 215, 115);">Type: float</span></div><div><span style="background-color: rgb(173, 215, 115);">Total Size: 1565536 bytes</span></div><div><span style="background-color: rgb(173, 215, 115);"> 391384 values</span></div><div><span style="background-color: rgb(173, 215, 115);">Number of Dimensions: 2</span></div><div><span style="background-color: rgb(173, 215, 115);">Dimensions and sizes: [DIM_000 | 406] x [DIM_001 | 964]</span></div><div><span style="background-color: rgb(173, 215, 115);">Coordinates:</span></div><div><span style="background-color: rgb(173, 215, 115);">Number Of Attributes: 2</span></div><div><span style="background-color: rgb(173, 215, 115);"> long_name : Longitude of the center of the Earth based grid cell.</span></div><div><span style="background-color: rgb(173, 215, 115);"> units : degrees_east</span></div><div><br></div></div><div>printVarSummary(var):<br></div><div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);">Variable: var</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);">Type: float</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);">Total Size: 1565536 bytes</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);"> 391384 values</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);">Number of Dimensions: 2</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);">Dimensions and sizes: [DIM_000 | 406] x [DIM_001 | 964]</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);">Coordinates:</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);">Number Of Attributes: 6</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);"> _FillValue : -9999</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);"> coordinates : /Soil_Moisture_Retrieval_Data_AM/latitude /Soil_Moisture_Retrieval_Data_AM/longitude</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);"> long_name : Representative soil moisture measurement for the Earth based grid cell.</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);"> units : cm**3/cm**3</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);"> valid_max : 0.5</span></div><div style="font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><span style="background-color: rgb(173, 215, 115);"> valid_min : 0.02</span></div></div><div><span style="background-color: rgb(173, 215, 115);"><br></span></div></div><div>However I've faced below error:<br></div><div><span style="background-color:rgb(228, 172, 100);">fatal:(lon) is not a dimension name in variable (var), could not determine dimension number</span><br clear="none"></div><div><br clear="none"></div><div>I searched in google and I found may be <span style="background-color: rgb(125, 190, 241);">"<span style="color:rgb(0, 0, 0);font-size:medium;">There is no 'lon' dimension name. In fact, there are no latitude/longitude </span><span style="color:rgb(0, 0, 0);font-size:medium;">coordinates on the file at all.</span>"</span><br></div><div>So I used following line:</div><div><div> <span style="background-color:rgb(210, 100, 170);">SMAP_fo = linint2_points(lon2d,lat2d,var(</span><span style="background-color: rgb(132, 90, 167);">DIM_000 | :, DIM_001 | :)</span><span style="background-color:rgb(210, 100, 170);">, False , lon_NW, lat_NW, 0)</span></div><div><br clear="none"></div>instead of:</div><div><div> <span style="background-color:rgb(210, 100, 170);">SMAP_fo = linint2_points(lon2d,lat2d,var(</span><span style="background-color: rgb(132, 90, 167);">lat | :, lon | :</span><span style="background-color:rgb(210, 100, 170);">), False , lon_NW, lat_NW, 0)</span></div><div><br clear="none"></div>and after that I faced following error:</div><div><span style="background-color:rgb(228, 172, 100);">fatal:linint2_points: If xi is not one-dimensional, then it must have one less dimension than fi<br clear="none"></span></div><div><br clear="none"></div><div>After that I added following lines to the script:</div><div><div><span style="background-color: rgb(210, 100, 170);"> lat1d = ndtooned(lat2d)</span></div><div><span style="background-color: rgb(210, 100, 170);"> lon1d = ndtooned(lon2d)</span></div><div><br></div>Again I had following error:</div><div><span style="background-color: rgb(228, 172, 100);">fatal:linint2_points: The rightmost dimensions of fi must be nyi x nxi, where nyi and nxi are the lengths of yi and xi respectively</span><br></div><div><br clear="none"></div><div>And here I'm not sure about what I've done.</div><div>I've attached the script, stations_NW.csv (input for unstructured points) and links.txt (which contains links for downloading SMAP data. Sorry about that but I couldn't attach SMAP files, because of their sizes. However to download them it is necessary to have earthdata user name!).<br></div><div><div class="ydpdfb568aayiv8920612249yqt7366927260" id="ydpdfb568aayiv8920612249yqtfd76790">I'll be thankful if I could have your help, again.</div></div><div class="ydpdfb568aayiv8920612249yqt7366927260" id="ydpdfb568aayiv8920612249yqtfd02077"><div><br clear="none"></div><div>Sincerely</div><div>Ehsan<br></div></div></div></div></div><div class="ydpdfb568aayiv8920612249yqt7366927260" id="ydpdfb568aayiv8920612249yqtfd44909">
</div></div><div class="ydpdfb568aayiv8920612249yqt7366927260" id="ydpdfb568aayiv8920612249yqtfd00362">
</div></div></div></div></div>
</div>
</div></div></body></html>