<p dir="ltr">Hi,</p>
<p dir="ltr">I would use the Grass algorithm or Gdaldem instead.  It is also found in the processing plugin using the batch mode. You can also script it in python but that should not be necessary.</p>
<p dir="ltr">I am not sure about the Saga algorithm, and I am far from a computer but my guess is that your layer CRS is in Long/lat but the z is in meters like the SRTM or Aster GDems giving you different units for x,y and z.</p>
<p dir="ltr">In many cases, that will give you results like those you are getting. You need to adjust the z scale.  <br></p>
<p dir="ltr">This is from gdal:<br>
" <b>slope</b></p>
<p dir="ltr">This command will take a DEM raster and output a 32-bit float raster with slope values. You have the option of specifying the type of slope value you want: degrees or percent slope. In cases where the horizontal units differ from the vertical units, you can also supply a scaling factor.</p>
<p dir="ltr">The value -9999 is used as the output nodata value.</p>
<p dir="ltr">The following specific options are available :</p>
<p dir="ltr"><b>-p</b> :if specified, the slope will be expressed as percent slope. Otherwise, it is expressed as degrees<b>-s</b> <i>scale</i>:ratio of vertical units to horizontal. If the horizontal unit of the source DEM is degrees (e.g Lat/Long WGS84 projection), you can use scale=111120 if the vertical units are meters (or scale=370400 if they are in feet)"<br></p>
<p dir="ltr">http://www.gdal.org/gdaldem.html<br><br><br><br><br><br><br><br></p>
<p dir="ltr">Nicolas Cadieux M.Sc.<br>
Les Entreprises Archéotec inc. <br>
8548, rue Saint-Denis Montréal H2P 2H2<br>
Téléphone: 514.381.5112  Fax: 514.381.4995</p>
<div class="quote">Le 2014-12-28 09:29, "nagyrobi_r [via OSGeo.org]" <<a href="/user/SendEmail.jtp?type=node&node=5179353&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> a écrit :<br type='attribution'><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        Hey! Im using Qgis 2.6 on a 64 bit windows platform. I need to process 140 DEMs and i would like to make an automatic process to calculate Slope aspect curvature. In order to do the script i need the command itself for the slope aspect curvature. I have tried :
<br/><br/>import processing
<br/>processing.runalg("saga:slopeaspectcurvature", 'D:/data/dem.tif', 1,'D:/data/slope/dem_slope.tif',None, None, None, None)
<br/><br/>the process creates a slope map at my given path, but the value of ranges is between 0 and 1. As i know it should be between 0-90 degrees. if i execute it from the toolbox, the range is different( even if percentages are used). in any case the values are totally different. Because the slope has a different range every other map(aspect, curvatures) have bad values.
<br/><br/>Other ways to compute slope aspect from console or python script? Any suggestions what i am missing or doing wrong?
<br/><br/>Thank you a lot!

        
        
        
        <br/>
        <br/>
        <hr noshade="noshade" size="1" color="#cccccc" />
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/Slope-aspect-curvature-tp5179348.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Slope-aspect-curvature-tp5179348.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Quantum GIS - User, email <a href="/user/SendEmail.jtp?type=node&node=5179353&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br/>
                To unsubscribe from Quantum GIS - User, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br/>
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></blockquote></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Slope-aspect-curvature-tp5179348p5179353.html">Re: Slope aspect curvature</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>