<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">
<!--
p
        {margin-top:0;
        margin-bottom:0}
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi list,<br>
<br>
I am trying to build a script to run r.sun.daily so it only runs for the center day of each month of a year. However, when the code starts r.sun.daily script, it creates 4 processes for the first day but only 2 processes for any following day. Even though I
 set ' nprocs=4' when calling the script.  <br>
<br>
I am trying to use a similar setup as the r.horizon parallel script found <a href="http://osgeo-org.1560.x6.nabble.com/Simultaneous-r-horizon-processes-tt4676325.html#a4892854" target="_blank">
here</a>. This script uses the multiprocessing module to have the script wait until the process is finished before feeding new parameters to a worker. I edited this so it changes the 'start_day' and 'end_day' parameters, but only creates one worker that launches
 the r.sun.daily script with 'nprocs=4', then waits until this run is done using '.join', before providing the worker with a different start and end day and starting r.sun.daily again with ' nprocs=4'. </div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt"><br>
</div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">What could be the issue that it switches to two processes after the 1st day?<br>
<br>
Regards,<br>
</div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Tinsley</div>
</div>
</div>
</body>
</html>