<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Anna,<br>
      Here the test on NC dataset, I reduced a little bit the resolution
      to speedup computation:<br>
    </p>
    <ol>
      <li>g.region raster=elevation res=30 -p</li>
      <li>r.resamp.interp input=elevation@PERMANENT output=dem30<br>
      </li>
      <li>r.slope.aspect elevation=dem30@PERMANENT slope=slo aspect=asp</li>
      <li>r.sun.daily -t elevation=dem30@PERMANENT aspect=asp@PERMANENT
        slope=slo@PERMANENT start_day=91 end_day=304 glob_rad=sol_glob
        glob_rad_basename=sol nprocs=4</li>
      <li>t.rast.series input=sol@PERMANENT method=sum output=sol_sum<br>
      </li>
    </ol>
    <p>And the output querying on a random pixel is:</p>
    <blockquote>
      <p>est, nord: 636522.196262, 219573.598131<br>
        sol_glob@PERMANENT: value: 28270.75<br>
        sol_sum@PERMANENT: value: 1632588.35400391</p>
    </blockquote>
    <p>The only thing that could create problem maybe is that during the
      execution of r.sun.daily I received many warnings like this
      (translated: can't rename file NULL/CELL)<br>
    </p>
    <blockquote>
      <p><font size="-1">WARNING: Non riesco a rinominare il file null
          'C:\...\GRASS_data\nc_basic_spm_grass7\PERMANENT\.tmp/unknown\4860.1'
          in
'C:\...\GRASS_data\nc_basic_spm_grass7\PERMANENT\cell_misc\sol_glob\null':
          File exists</font><br>
        <font size="-1">WARNING: Non riesco a rinominare il file cella
          'C:\...\GRASS_data\nc_basic_spm_grass7\PERMANENT\.tmp/unknown\4860.0'
          in
          'C:\...\GRASS_data\nc_basic_spm_grass7\PERMANENT\fcell\sol_glob':
          File exists</font></p>
    </blockquote>
    <p>Since sum by r.sun.daily is less than sum by t.rast.series, maybe
      the summed file is not properly summed and represent just the sum
      of the last days of the period?<br>
      P.S. I am on Windows with GRASS 7.2.1 <br>
    </p>
    <pre class="moz-signature" cols="72">---
Andrea Balotti</pre>
    <div class="moz-cite-prefix">Il 28/09/2017 19:00, Anna Petrášová ha
      scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAE0EDEoN9Z6i4hhyWmjOJev0KLO7NBjkEcEJVdGe3w4k-hkPLw@mail.gmail.com">
      <pre wrap="">Hi,


On Thu, Sep 28, 2017 at 5:30 AM,  <a class="moz-txt-link-rfc2396E" href="mailto:balotti.and@gmail.com"><balotti.and@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,
I am using  r.sun.daily to perform global radiation maps over a range of
dates but I am a little bit confused about the outputs of this module.
I created two outputs: the accumulated map of the whole time period and a
temporal dataset with all the daily maps.
I have tried to aggregate the daily maps in the temporal dataset with
t.rast.series (average and sum) supposing that one of them was the same with
the accumulated output of r.sun.daily but I was wrong.
Here the query on a pixel: the first line is the accumulated map from
r.sun.daily, the last two line are the aggregated maps from t.rast.series.
sol_glob_veg@PERMANENT: value: 24291.95
sol_veg_sum@PERMANENT: value: 1495683.87133789
sol_veg_avg@PERMANENT: value: 6989.17696886865

My question now is which kind of accumulation perform r.sun.daily?
TIA
</pre>
      </blockquote>
      <pre wrap="">
it just sums the maps from each day, so t.rast.series with sum should
give you the same results. I tested it in NC sample datatset and
indeed it gave me identical results. Could you test it in the sample
dataset and perhaps send the commands you are using?

Thank you,

Anna

</pre>
      <blockquote type="cite">
        <pre wrap="">
--
Andrea Balotti


_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>