Greetings all<div><br></div><div>I want to develop a few functions that I probably will need in a few months. So I decided to learn with r.example.</div><div><br></div><div>One of my first doubts is regarding functions name. For instance if I want to open a old file I use:</div>
<div><span lang="EN-GB" style="font-size:11.0pt;mso-bidi-font-size:
12.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;;
mso-bidi-font-family:&quot;Times New Roman&quot;;color:black;mso-ansi-language:EN-GB;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA">G_open_cell_old</span></div><div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;">But if I want to open a new file I use</span></font></div>
<div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;"> G_open_raster_new</span></font></div><div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br>
</span></font></div><div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;">My question is why I use in one case &quot;cell&quot; and in the other case &quot;raster&quot; since they both refer to the same type of data (RASTER)? Because it exists a <span class="Apple-style-span" style="font-family: arial; font-size: small; "><a class="el" title="Opens a new cell file in a database (compressed)." href="http://download.osgeo.org/grass/grass6_progman/opencell_8c.html#a8e8d5ad9e5a4ea3b21110edf5fec012e">G_open_cell_new()</a>. and it&#39;s not being used.</span></span></font></div>
<div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px; "><br></span></font></div><div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;">Another question is regarding the functions: open(path, 0), refered by lots of functions from gis/open.c (e.g. G__open). I cannot find this function and fdopen(<span class="Apple-style-span" style="font-family: arial; font-size: small; "><span class="keywordflow">return</span> fdopen(fd, <span class="stringliteral">&quot;w&quot;).</span></span></span></font></div>
<div>Where can I find these functions?</div><div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px; "><br></span></font></div><div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;">Thanks</span></font></div>
<div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;"><br></span></font></div><div><font class="Apple-style-span" face="Tahoma, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;">Luis</span></font></div>