Calculating slope in percentage with QGISHow to perform a slope analysis in QGIS?How to extract slope from...
How can changes in personality/values of a person who turned into a vampire be explained?
How Create a list of the first 10,000 digits of Pi and sum it?
Is it ethical to apply for a job on someone's behalf?
If I have Haste cast on me, does it reduce the casting time for my spells that normally take more than a turn to cast?
How does the spell Slow affect freefall?
Badly designed reimbursement form. What does that say about the company?
Is the tritone (A4 / d5) still banned in Roman Catholic music?
Euler and minus sign
Is there a way to pause a running process on Linux systems and resume later?
How to typeset a small black square as a binary operator?
Aliased pipeline using head and cut
What does @ mean in a hostname in DNS configuration?
How do I avoid the "chosen hero" feeling?
Found a major flaw in paper from home university – to which I would like to return
Why are "square law" devices important?
How can I make my enemies feel real and make combat more engaging?
What did Putin say about a US deep state in his state-of-the-nation speech; what has he said in the past?
What is the reason behind this musical reference to Pinocchio in the Close Encounters main theme?
Why is Shelob considered evil?
What if you do not believe in the project benefits?
Multiple null checks in Java 8
Identical projects by students at two different colleges: still plagiarism?
Can you wish for more wishes from an Efreeti bound to service via an Efreeti Bottle?
Build ASCII Podiums
Calculating slope in percentage with QGIS
How to perform a slope analysis in QGIS?How to extract slope from topographic raster map?Creating slope map from DEM using QGIS?Calculating slope between 5 and 10 percent using raster calculator of QGIS?Removing contour artifacts from low slope regionsQGIS slope percent calculationCalculating slope length using LS-toolActual slope between two points from raster slope valueCreating slope map from DEM using QGIS?How to understand/interpret slope unit values in QGIS 2.14?gdaldem slope…odd values, almost all 89.98+/- (? - why?)QGIS slope layer helpcalculate slope of lines between nodes?Calculate slope of line segments with QGISMosaic multiple slope files
I'm working with QGIS, v. 2.0.1. I have several soil types. They are (amongst others) described with slope indications. I already calculated the slope from the DTM in degrees, but as description of the soil types is in percentage, I need to calculate the slope in percentage.
I tried two things:
- I tried the analysis tool from the raster section, but it didn't work. The result was just black with values from 0 to 0.
- The same happened when I tried to calculate the percentage in the raster calculator but the result was the same.
Maybe I need to say that the terrain is pretty plain.
What else can I do?
Update
I tried the raster calculator and did what @radouxju suggested. It gave me a black picture with values from 1756.64 to 1756.64. But as soon as I click in the picture the values are "normal", say 5.88 or 13.224 or something like that. The same happens when I try the gdaldem
tool but with values from 0 to 0. I also tried to change the contrast enhancement (like stretch to min/max) but it didn't change anything.
Update 2
I just found out that maybe I have to set the scale to 111120 but that doesn't work neither (result: black, values 0-0).
qgis slope
add a comment |
I'm working with QGIS, v. 2.0.1. I have several soil types. They are (amongst others) described with slope indications. I already calculated the slope from the DTM in degrees, but as description of the soil types is in percentage, I need to calculate the slope in percentage.
I tried two things:
- I tried the analysis tool from the raster section, but it didn't work. The result was just black with values from 0 to 0.
- The same happened when I tried to calculate the percentage in the raster calculator but the result was the same.
Maybe I need to say that the terrain is pretty plain.
What else can I do?
Update
I tried the raster calculator and did what @radouxju suggested. It gave me a black picture with values from 1756.64 to 1756.64. But as soon as I click in the picture the values are "normal", say 5.88 or 13.224 or something like that. The same happens when I try the gdaldem
tool but with values from 0 to 0. I also tried to change the contrast enhancement (like stretch to min/max) but it didn't change anything.
Update 2
I just found out that maybe I have to set the scale to 111120 but that doesn't work neither (result: black, values 0-0).
qgis slope
for a quick change, slope[percent] = tan(slope[degree])*100, or you can change your soil description slope[degree] = atan(slope[percent]/100)
– radouxju
Jun 6 '14 at 10:49
add a comment |
I'm working with QGIS, v. 2.0.1. I have several soil types. They are (amongst others) described with slope indications. I already calculated the slope from the DTM in degrees, but as description of the soil types is in percentage, I need to calculate the slope in percentage.
I tried two things:
- I tried the analysis tool from the raster section, but it didn't work. The result was just black with values from 0 to 0.
- The same happened when I tried to calculate the percentage in the raster calculator but the result was the same.
Maybe I need to say that the terrain is pretty plain.
What else can I do?
Update
I tried the raster calculator and did what @radouxju suggested. It gave me a black picture with values from 1756.64 to 1756.64. But as soon as I click in the picture the values are "normal", say 5.88 or 13.224 or something like that. The same happens when I try the gdaldem
tool but with values from 0 to 0. I also tried to change the contrast enhancement (like stretch to min/max) but it didn't change anything.
Update 2
I just found out that maybe I have to set the scale to 111120 but that doesn't work neither (result: black, values 0-0).
qgis slope
I'm working with QGIS, v. 2.0.1. I have several soil types. They are (amongst others) described with slope indications. I already calculated the slope from the DTM in degrees, but as description of the soil types is in percentage, I need to calculate the slope in percentage.
I tried two things:
- I tried the analysis tool from the raster section, but it didn't work. The result was just black with values from 0 to 0.
- The same happened when I tried to calculate the percentage in the raster calculator but the result was the same.
Maybe I need to say that the terrain is pretty plain.
What else can I do?
Update
I tried the raster calculator and did what @radouxju suggested. It gave me a black picture with values from 1756.64 to 1756.64. But as soon as I click in the picture the values are "normal", say 5.88 or 13.224 or something like that. The same happens when I try the gdaldem
tool but with values from 0 to 0. I also tried to change the contrast enhancement (like stretch to min/max) but it didn't change anything.
Update 2
I just found out that maybe I have to set the scale to 111120 but that doesn't work neither (result: black, values 0-0).
qgis slope
qgis slope
edited Jan 10 '16 at 18:33
wittich
2,0681928
2,0681928
asked Jun 6 '14 at 10:00
G.H.G.H.
11113
11113
for a quick change, slope[percent] = tan(slope[degree])*100, or you can change your soil description slope[degree] = atan(slope[percent]/100)
– radouxju
Jun 6 '14 at 10:49
add a comment |
for a quick change, slope[percent] = tan(slope[degree])*100, or you can change your soil description slope[degree] = atan(slope[percent]/100)
– radouxju
Jun 6 '14 at 10:49
for a quick change, slope[percent] = tan(slope[degree])*100, or you can change your soil description slope[degree] = atan(slope[percent]/100)
– radouxju
Jun 6 '14 at 10:49
for a quick change, slope[percent] = tan(slope[degree])*100, or you can change your soil description slope[degree] = atan(slope[percent]/100)
– radouxju
Jun 6 '14 at 10:49
add a comment |
4 Answers
4
active
oldest
votes
Use the gdaldem tool http://www.gdal.org/gdaldem.html as
gdaldem slope input.dem output_in_percents.tif -p -of GTiff
From the manual page: "-p : if specified, the slope will be expressed as percent slope. Otherwise, it is expressed as degrees "
QGIS generates a similar gdaldem command and degrees/percents is selected here:
add a comment |
Some other things to notice:
- If you converted the degree slope to percent by using the tan, check to see that your input and output have floating point values. Your results with values from 0 to 0 seem to me as a integer conversion problem
- If you are calculating your slope again (using r.slope.aspect or gdaldem), check to see if your horizontal units are the same as your vertical units, that is, check your projection
- I've seen two ways GIS softwares calculate slope, one based on the maximum change in elevation for each cell in relation to it's neighbor (ArcMAP) and the other based on the harmonic mean of the slopes on the X and Y direction (ERDAS Imagine). Not sure how gdaldem or grass handles. So be aware that your results may vary depending on the tool used.
1
GDAL is re-using algorithms from GRASS which according to this document is selecting the steepest slope grass.osgeo.org/grass64/manuals/r.slope.aspect.html
– user30184
Jun 6 '14 at 11:53
add a comment |
There are a couple of ways to get a slope raster with units in percent. In addition to the 1st answer below by user30184, you can also choose the GRASS module r.slope.aspect
which calculates several geo-morphological layers, including slope, and you can choose to output either in degrees or percent. It's under in Processing menu, under GRASS -> raster.
But I think you need to first check your "pretty plain" DTM. What is the resolution? Check some cell values and be sure you have a slope at all.
add a comment |
How to change the band from 1 to 4. When i tried to convert DSM to slope only 1 band is coming. But i need 4 bands.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f100206%2fcalculating-slope-in-percentage-with-qgis%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use the gdaldem tool http://www.gdal.org/gdaldem.html as
gdaldem slope input.dem output_in_percents.tif -p -of GTiff
From the manual page: "-p : if specified, the slope will be expressed as percent slope. Otherwise, it is expressed as degrees "
QGIS generates a similar gdaldem command and degrees/percents is selected here:
add a comment |
Use the gdaldem tool http://www.gdal.org/gdaldem.html as
gdaldem slope input.dem output_in_percents.tif -p -of GTiff
From the manual page: "-p : if specified, the slope will be expressed as percent slope. Otherwise, it is expressed as degrees "
QGIS generates a similar gdaldem command and degrees/percents is selected here:
add a comment |
Use the gdaldem tool http://www.gdal.org/gdaldem.html as
gdaldem slope input.dem output_in_percents.tif -p -of GTiff
From the manual page: "-p : if specified, the slope will be expressed as percent slope. Otherwise, it is expressed as degrees "
QGIS generates a similar gdaldem command and degrees/percents is selected here:
Use the gdaldem tool http://www.gdal.org/gdaldem.html as
gdaldem slope input.dem output_in_percents.tif -p -of GTiff
From the manual page: "-p : if specified, the slope will be expressed as percent slope. Otherwise, it is expressed as degrees "
QGIS generates a similar gdaldem command and degrees/percents is selected here:
edited Jun 6 '14 at 10:13
answered Jun 6 '14 at 10:07
user30184user30184
29.2k23057
29.2k23057
add a comment |
add a comment |
Some other things to notice:
- If you converted the degree slope to percent by using the tan, check to see that your input and output have floating point values. Your results with values from 0 to 0 seem to me as a integer conversion problem
- If you are calculating your slope again (using r.slope.aspect or gdaldem), check to see if your horizontal units are the same as your vertical units, that is, check your projection
- I've seen two ways GIS softwares calculate slope, one based on the maximum change in elevation for each cell in relation to it's neighbor (ArcMAP) and the other based on the harmonic mean of the slopes on the X and Y direction (ERDAS Imagine). Not sure how gdaldem or grass handles. So be aware that your results may vary depending on the tool used.
1
GDAL is re-using algorithms from GRASS which according to this document is selecting the steepest slope grass.osgeo.org/grass64/manuals/r.slope.aspect.html
– user30184
Jun 6 '14 at 11:53
add a comment |
Some other things to notice:
- If you converted the degree slope to percent by using the tan, check to see that your input and output have floating point values. Your results with values from 0 to 0 seem to me as a integer conversion problem
- If you are calculating your slope again (using r.slope.aspect or gdaldem), check to see if your horizontal units are the same as your vertical units, that is, check your projection
- I've seen two ways GIS softwares calculate slope, one based on the maximum change in elevation for each cell in relation to it's neighbor (ArcMAP) and the other based on the harmonic mean of the slopes on the X and Y direction (ERDAS Imagine). Not sure how gdaldem or grass handles. So be aware that your results may vary depending on the tool used.
1
GDAL is re-using algorithms from GRASS which according to this document is selecting the steepest slope grass.osgeo.org/grass64/manuals/r.slope.aspect.html
– user30184
Jun 6 '14 at 11:53
add a comment |
Some other things to notice:
- If you converted the degree slope to percent by using the tan, check to see that your input and output have floating point values. Your results with values from 0 to 0 seem to me as a integer conversion problem
- If you are calculating your slope again (using r.slope.aspect or gdaldem), check to see if your horizontal units are the same as your vertical units, that is, check your projection
- I've seen two ways GIS softwares calculate slope, one based on the maximum change in elevation for each cell in relation to it's neighbor (ArcMAP) and the other based on the harmonic mean of the slopes on the X and Y direction (ERDAS Imagine). Not sure how gdaldem or grass handles. So be aware that your results may vary depending on the tool used.
Some other things to notice:
- If you converted the degree slope to percent by using the tan, check to see that your input and output have floating point values. Your results with values from 0 to 0 seem to me as a integer conversion problem
- If you are calculating your slope again (using r.slope.aspect or gdaldem), check to see if your horizontal units are the same as your vertical units, that is, check your projection
- I've seen two ways GIS softwares calculate slope, one based on the maximum change in elevation for each cell in relation to it's neighbor (ArcMAP) and the other based on the harmonic mean of the slopes on the X and Y direction (ERDAS Imagine). Not sure how gdaldem or grass handles. So be aware that your results may vary depending on the tool used.
answered Jun 6 '14 at 11:34
DanielDaniel
1,370725
1,370725
1
GDAL is re-using algorithms from GRASS which according to this document is selecting the steepest slope grass.osgeo.org/grass64/manuals/r.slope.aspect.html
– user30184
Jun 6 '14 at 11:53
add a comment |
1
GDAL is re-using algorithms from GRASS which according to this document is selecting the steepest slope grass.osgeo.org/grass64/manuals/r.slope.aspect.html
– user30184
Jun 6 '14 at 11:53
1
1
GDAL is re-using algorithms from GRASS which according to this document is selecting the steepest slope grass.osgeo.org/grass64/manuals/r.slope.aspect.html
– user30184
Jun 6 '14 at 11:53
GDAL is re-using algorithms from GRASS which according to this document is selecting the steepest slope grass.osgeo.org/grass64/manuals/r.slope.aspect.html
– user30184
Jun 6 '14 at 11:53
add a comment |
There are a couple of ways to get a slope raster with units in percent. In addition to the 1st answer below by user30184, you can also choose the GRASS module r.slope.aspect
which calculates several geo-morphological layers, including slope, and you can choose to output either in degrees or percent. It's under in Processing menu, under GRASS -> raster.
But I think you need to first check your "pretty plain" DTM. What is the resolution? Check some cell values and be sure you have a slope at all.
add a comment |
There are a couple of ways to get a slope raster with units in percent. In addition to the 1st answer below by user30184, you can also choose the GRASS module r.slope.aspect
which calculates several geo-morphological layers, including slope, and you can choose to output either in degrees or percent. It's under in Processing menu, under GRASS -> raster.
But I think you need to first check your "pretty plain" DTM. What is the resolution? Check some cell values and be sure you have a slope at all.
add a comment |
There are a couple of ways to get a slope raster with units in percent. In addition to the 1st answer below by user30184, you can also choose the GRASS module r.slope.aspect
which calculates several geo-morphological layers, including slope, and you can choose to output either in degrees or percent. It's under in Processing menu, under GRASS -> raster.
But I think you need to first check your "pretty plain" DTM. What is the resolution? Check some cell values and be sure you have a slope at all.
There are a couple of ways to get a slope raster with units in percent. In addition to the 1st answer below by user30184, you can also choose the GRASS module r.slope.aspect
which calculates several geo-morphological layers, including slope, and you can choose to output either in degrees or percent. It's under in Processing menu, under GRASS -> raster.
But I think you need to first check your "pretty plain" DTM. What is the resolution? Check some cell values and be sure you have a slope at all.
edited Jun 6 '14 at 10:44
answered Jun 6 '14 at 10:28
MichaMicha
10.8k1321
10.8k1321
add a comment |
add a comment |
How to change the band from 1 to 4. When i tried to convert DSM to slope only 1 band is coming. But i need 4 bands.
New contributor
add a comment |
How to change the band from 1 to 4. When i tried to convert DSM to slope only 1 band is coming. But i need 4 bands.
New contributor
add a comment |
How to change the band from 1 to 4. When i tried to convert DSM to slope only 1 band is coming. But i need 4 bands.
New contributor
How to change the band from 1 to 4. When i tried to convert DSM to slope only 1 band is coming. But i need 4 bands.
New contributor
New contributor
answered 8 mins ago
JSimonJSimon
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f100206%2fcalculating-slope-in-percentage-with-qgis%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
for a quick change, slope[percent] = tan(slope[degree])*100, or you can change your soil description slope[degree] = atan(slope[percent]/100)
– radouxju
Jun 6 '14 at 10:49