Hi Christian,<br><br>Determining the position of the sun relative to a given pixel requires knowing the pixel's latitude at the very least. That's why using r.sun in an XY location won't work. r.sun definitely needs a geographic location to work with - otherwise it doesn't know which way is north and south and where the sun's at at a given time of day or year.<br>

<br>Best,<br>Daniel<br clear="all">

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"></span></p><p>--<br></p><p>B.Sc. Daniel Lee<br>

Geschäftsführung für Forschung und Entwicklung<br>ISIS - International Solar Information Solutions GbR<br>Vertreten durch: Daniel Lee, Nepomuk Reinhard und Nils Räder<br></p><p>Softwarecenter 3<br>35037 Marburg<br>Festnetz: <a value="+4964213796256" style="color:rgb(28,81,168)">+49 6421 379 6256</a><br>

Mobil: <a value="+4917661277269" style="color:rgb(28,81,168)">+49 176 6127 7269</a><br>E-Mail: <a href="mailto:Lee@isi-solutions.org" style="color:rgb(28,81,168)" target="_blank">Lee@isi-solutions.org</a><br>Web: <a href="http://www.isi-solutions.org/" style="color:rgb(28,81,168)" target="_blank">http://www.isi-solutions.org</a></p>

<p></p><br>
<br><br><div class="gmail_quote">2012/8/8 Christian Braun <span dir="ltr"><<a href="mailto:Christian.Braun@tudor.lu" target="_blank">Christian.Braun@tudor.lu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear all,<br>
<br>
I want to create a WPS module which is calculating solar irradiance. As WPS architecture I have to use PyWPS which is creating a XY-location and mapsets on the fly to process the data.<br>
<br>
What is the current status of running r.sun in a XY location? On a testing machine I got back an error message [1] while providing latitude and longtiude grids to the r.sun command [2]. Is it feasible at all?<br>
<br>
I am aware of the setting in PyWPS to have the GRASS processing done in a predefined GRASS location, but this is not an option because of how the WPS should work.<br>
<br>
Greetings from Luxembourg,<br>
Christian<br>
<br>
<br>
<br>
[1]<br>
WARNING: <PROJ_INFO> file not found for location <XY><br>
ERROR: Can't get projection info of current location<br>
<br>
[2]<br>
r.sun -s elevin=ro_dsm latin=ro_latitude longin=ro_longitude lin=3 alb=0.17 beam_rad=ro_irra_B_hc diff_rad=ro_irra_D_hc glob_rad=ro_irra_G_hc day=180 step=1<br>
<br>
<br>
------------------------------------------------------------<br>
Christian Braun<br>
R+D Engineer<br>
Environmental Modelling, Geocomputation<br>
<br>
Tel: <a href="tel:%2B352-%20425991-6608" value="+3524259916608">+352- 425991-6608</a><br>
Mobil: <a href="tel:%2B49-179-6845896" value="+491796845896">+49-179-6845896</a><br>
Mail: <a href="mailto:christian.braun@tudor.lu">christian.braun@tudor.lu</a><br>
<br>
Resource Centre for Environmental Technologies,<br>
Public Research Centre Henri Tudor,<br>
Technoport Schlassgoart,<br>
66 rue de Luxembourg,<br>
P.O. BOX 144,<br>
L-4002 Esch-sur-Alzette, Luxembourg<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br>