so should i change the Proj_units file to:<br>
<br>
unit: degree<br>
units: degrees<br>
meters: 111300 * cos(y())<br>
<br>
-vishal<br>
<br>
<br><div><span class="gmail_quote">On 8/25/06, <b class="gmail_sendername">Glynn Clements</b> <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Vishal Mehta wrote:<br><br>> > This problem can be solved to an extent by using the value from the<br>> > PROJ_UNITS file to convert ground distances to metres (although that<br>> > requires that the PROJ_UNITS file actually contains the correct
<br>> > value).<br>><br>> I did'nt fully understand this comment Glynn. Could you please elaborate<br>> this idea?<br>> FYI,<br>> GRASS 6.0.1 (cru3):~/CRU > g.proj -w<br>> GEOGCS["wgs84",
<br>> DATUM["WGS_1984",<br>> SPHEROID["wgs84",6378137,298.257223563],<br>> TOWGS84[0.000,0.000,0.000]],<br>> PRIMEM["Greenwich",0],<br>> UNIT["degree",
0.0174532925199433]]<br>><br>> And my Proj_units file in the PERMANENT mapset is:<br><br>> unit: degree<br>> units: degrees<br>> meters: 1.0<br><br>The "meters" value in the PROJ_UNITS file is supposed to be a scale
<br>factor which converts map units to metres (i.e. 1.0 for metres, 0.3048<br>for feet). For degrees, it should be roughly 111300 * cos(latitude).<br><br>r.slope.aspect uses that value to convert map units to metres; if it's
<br>set correctly (and the zfactor= option is set correctly if your<br>elevations aren't in metres), your slope map should be correct. There<br>might still be problems with r.sun itself, though.<br><br>> I'm not sure what the last line of
g.proj -w means, what does unit there<br>> refer to, as opposed to the proj_units 'meters' field?<br><br>0.0174532925199433 is pi/180, i.e. it represents the size of the<br>(angular) units in radians.<br><br>--<br>Glynn Clements <
<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br></blockquote></div><br>