<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body smarttemplateinserted="true" text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 01-12-15 14:51, Paulo van Breugel
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGrkfc+VqTcDRbDnX2W9Z=WSgPFu7-X4TNfXihrBsYbP8zUpNQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Dec 1, 2015 at 2:04 PM,
            Helmut Kudrnovsky <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:hellik@web.de"
                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:hellik@web.de">hellik@web.de</a></a>></span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">pvanbosgeo wrote<br>
              <span class="">> When running a script (r.biodiversity)
                in GRASS 7.0 for Windows, I am<br>
                > getting the warning:<br>
                ><br>
                > WARNING: Unable to rename cell file<br>
                >
                'C:\GIS\GrassJvdS/latlong/YLD_NUT/.tmp/unknown/3988.0'
                to<br>
                >
                'C:\GIS\GrassJvdS/latlong/YLD_NUT/fcell/Shan3_CA_Renyi_0_0':
                File exists<br>
                > WARNING: Unable to rename null file<br>
                >
                'C:\GIS\GrassJvdS/latlong_2005/YLD_NUT/.tmp/unknown/4100.1'
                to<br>
                >
'C:\GIS\GrassJvdS/latlong_2005/YLD_NUT/cell_misc/Shan3_CA_Renyi_1_0/null':<br>
                > File exists<br>
                <br>
              </span>tested here:<br>
              <br>
              r.biodiversity -r --verbose<br>
              input=spec1@data,spec2@data,spec3@data,spec4@data,spec5@data
              output=renyi<br>
              alpha=0,1,2<br>
              <span class="">WARNING: Unable to rename null file<br>
              </span>'C:\grassdata/test3035/data/.tmp/unknown/1680.1' to<br>
              'C:\grassdata/test3035/data/cell_misc/renyi_Renyi_0_0/null':
              File exists<br>
              WARNING: Unable to rename cell file<br>
              'C:\grassdata/test3035/data/.tmp/unknown/1680.0' to<br>
              'C:\grassdata/test3035/data/fcell/renyi_Renyi_0_0': File
              exists<br>
              <span class="">WARNING: Unable to rename null file<br>
              </span>'C:\grassdata/test3035/data/.tmp/unknown/8936.1' to<br>
              'C:\grassdata/test3035/data/cell_misc/renyi_Renyi_1_0/null':
              File exists<br>
              WARNING: Unable to rename cell file<br>
              'C:\grassdata/test3035/data/.tmp/unknown/8936.0' to<br>
              'C:\grassdata/test3035/data/fcell/renyi_Renyi_1_0': File
              exists<br>
              <span class="">WARNING: Unable to rename null file<br>
              </span>'C:\grassdata/test3035/data/.tmp/unknown/9328.1' to<br>
              'C:\grassdata/test3035/data/cell_misc/renyi_Renyi_2_0/null':
              File exists<br>
              WARNING: Unable to rename cell file<br>
              'C:\grassdata/test3035/data/.tmp/unknown/9328.0' to<br>
              'C:\grassdata/test3035/data/fcell/renyi_Renyi_2_0': File
              exists<br>
              <br>
              is there some overwriting of existing files in the script?
              AFAIR there may<br>
              be some issues with overwriting existing files in windows
              os.<br>
              <span class=""><br>
              </span></blockquote>
            <div>Thanks Helmut. Yes, the script does also overwrite some
              intermediate files (with r.mapcalc). I will look into that
              and see how to change that.<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Hi Helmut, you were absolutely right, the problem was with r.mapcalc
    overwriting some intermediate files, so I changed that. I don't have
    Windows myself, but had a quick try on my colleagues computer, and
    it seems to work now.  Thanks for your help.<br>
    <br>
    <blockquote
cite="mid:CAGrkfc+VqTcDRbDnX2W9Z=WSgPFu7-X4TNfXihrBsYbP8zUpNQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div><br>
              I wonder though, if I use overwrite on the command line,
              there is no problem. So than that would be a problem
              specific to grass.script.mapcalc ?<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex"><span class="">
                <br>
                <br>
                -----<br>
                best regards<br>
                Helmut<br>
                --<br>
              </span>View this message in context: <a
                moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/Unable-to-rename-cell-null-file-NULL-file-messed-up-tp5239350p5239357.html"
                rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://osgeo-org.1560.x6.nabble.com/Unable-to-rename-cell-null-file-NULL-file-messed-up-tp5239350p5239357.html">http://osgeo-org.1560.x6.nabble.com/Unable-to-rename-cell-null-file-NULL-file-messed-up-tp5239350p5239357.html</a></a><br>
              <div class="">
                <div class="h5">Sent from the Grass - Dev mailing list
                  archive at Nabble.com.<br>
                  _______________________________________________<br>
                  grass-dev mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.osgeo.org/mailman/listinfo/grass-dev"
                    rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>