Reclassify in QGIS
I have a raster file (DEM) whose values range from 0 to 1565 meters (elevation). I want to extract a new raster file after classifying the values in four classes like this:
<= to 150 meters
150-600 meters
600-900 meters
>900 meters
after that I want to make statistical calculations.
How can I do this in QGIS?
I have installed the LecoS plugin and I probably don't have the NumPy, SciPy, Pip libraries installed, because it doesn't work.
- How can I see if I have these libraries?
- How do I install these libraries, if I don't have them?
- Is there an easiest way to extract a classified raster file?
I have Windows 7 Pro (64-bit) and QGIS 2.18.7
qgis raster reclassify
add a comment |
I have a raster file (DEM) whose values range from 0 to 1565 meters (elevation). I want to extract a new raster file after classifying the values in four classes like this:
<= to 150 meters
150-600 meters
600-900 meters
>900 meters
after that I want to make statistical calculations.
How can I do this in QGIS?
I have installed the LecoS plugin and I probably don't have the NumPy, SciPy, Pip libraries installed, because it doesn't work.
- How can I see if I have these libraries?
- How do I install these libraries, if I don't have them?
- Is there an easiest way to extract a classified raster file?
I have Windows 7 Pro (64-bit) and QGIS 2.18.7
qgis raster reclassify
add a comment |
I have a raster file (DEM) whose values range from 0 to 1565 meters (elevation). I want to extract a new raster file after classifying the values in four classes like this:
<= to 150 meters
150-600 meters
600-900 meters
>900 meters
after that I want to make statistical calculations.
How can I do this in QGIS?
I have installed the LecoS plugin and I probably don't have the NumPy, SciPy, Pip libraries installed, because it doesn't work.
- How can I see if I have these libraries?
- How do I install these libraries, if I don't have them?
- Is there an easiest way to extract a classified raster file?
I have Windows 7 Pro (64-bit) and QGIS 2.18.7
qgis raster reclassify
I have a raster file (DEM) whose values range from 0 to 1565 meters (elevation). I want to extract a new raster file after classifying the values in four classes like this:
<= to 150 meters
150-600 meters
600-900 meters
>900 meters
after that I want to make statistical calculations.
How can I do this in QGIS?
I have installed the LecoS plugin and I probably don't have the NumPy, SciPy, Pip libraries installed, because it doesn't work.
- How can I see if I have these libraries?
- How do I install these libraries, if I don't have them?
- Is there an easiest way to extract a classified raster file?
I have Windows 7 Pro (64-bit) and QGIS 2.18.7
qgis raster reclassify
qgis raster reclassify
edited Aug 27 '18 at 8:06
Kadir Şahbaz
4,47921230
4,47921230
asked Aug 27 '18 at 7:46
EvgeniaEvgenia
113
113
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
There is an easy way to reclassify a raster in QGIS using GRASS tool r.reclass
. When you installed QGIS you probably installed GRASS as well. In the processing toolbox of QGIS go to GRASS/raster/r.reclass
Select the input raster layer, and then you can open a txt file containing reclassification rules. If you want 4 classes the file must contain the following:
1 thru 150 = 1
151 thru 600 = 2
601 thru 900 = 3
901 thru 1565 = 4
Sorry, I am not familiar with GRASS GIS. I have just started in QGIS. Any other ideas? Perhaps using Raster Calculator?
– Evgenia
Aug 27 '18 at 8:58
Don’t worry, you don´t have to work in GRASS, its functionalities are implemented in QGIS. Open QGIS and press Ctrl+Alt+T to open the Processing toolbox (if it is not open already). Then type ‘r.reclass’ in the search bar to find the tool.
– HMSP
Aug 27 '18 at 9:29
This seems easy, but, why don't I see any results? Shouldn't I give a name to my new reclassified raster in Reclassified field? Even though I'm doing this, I get no result in return. Nothing appears on my screen and nothing is saved anywhere. What am I doing wrong?
– Evgenia
Aug 29 '18 at 8:42
Instead of GRASS, I used SAGA (2.3.2) Raster tools and it worked at last! Thank you for your time!
– Evgenia
Aug 29 '18 at 10:12
add a comment |
QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.
sorry, I'm working with a company's computer device. It's not easy for me to download new editions.
– Evgenia
Aug 27 '18 at 9:14
add a comment |
You can check this out.
Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
Snap 1
Snap 2
SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!
– Evgenia
Aug 29 '18 at 10:04
add a comment |
It worked for me using the steps below....
Check min max values in first raster (dem),
Use Processing Toolbox > SAGA (2.3.2) > Reclassify values (simple)
Grid = dem (my first raster),
Replace Condition = [2] Low value <=grid valueLookup table = a fixed table with 4 rows created in Fixed table window,
Changed Grid = Save to temporary file,
Check on Open output file after running algorithm
Run (algorithm)
The Changed Grid raster appears on project.
After that arrange the style through properties and save as dem_reclass.tif
After that statistical analysis can be made through LecoS plugin (if it is installed)
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%2f294062%2freclassify-in-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
There is an easy way to reclassify a raster in QGIS using GRASS tool r.reclass
. When you installed QGIS you probably installed GRASS as well. In the processing toolbox of QGIS go to GRASS/raster/r.reclass
Select the input raster layer, and then you can open a txt file containing reclassification rules. If you want 4 classes the file must contain the following:
1 thru 150 = 1
151 thru 600 = 2
601 thru 900 = 3
901 thru 1565 = 4
Sorry, I am not familiar with GRASS GIS. I have just started in QGIS. Any other ideas? Perhaps using Raster Calculator?
– Evgenia
Aug 27 '18 at 8:58
Don’t worry, you don´t have to work in GRASS, its functionalities are implemented in QGIS. Open QGIS and press Ctrl+Alt+T to open the Processing toolbox (if it is not open already). Then type ‘r.reclass’ in the search bar to find the tool.
– HMSP
Aug 27 '18 at 9:29
This seems easy, but, why don't I see any results? Shouldn't I give a name to my new reclassified raster in Reclassified field? Even though I'm doing this, I get no result in return. Nothing appears on my screen and nothing is saved anywhere. What am I doing wrong?
– Evgenia
Aug 29 '18 at 8:42
Instead of GRASS, I used SAGA (2.3.2) Raster tools and it worked at last! Thank you for your time!
– Evgenia
Aug 29 '18 at 10:12
add a comment |
There is an easy way to reclassify a raster in QGIS using GRASS tool r.reclass
. When you installed QGIS you probably installed GRASS as well. In the processing toolbox of QGIS go to GRASS/raster/r.reclass
Select the input raster layer, and then you can open a txt file containing reclassification rules. If you want 4 classes the file must contain the following:
1 thru 150 = 1
151 thru 600 = 2
601 thru 900 = 3
901 thru 1565 = 4
Sorry, I am not familiar with GRASS GIS. I have just started in QGIS. Any other ideas? Perhaps using Raster Calculator?
– Evgenia
Aug 27 '18 at 8:58
Don’t worry, you don´t have to work in GRASS, its functionalities are implemented in QGIS. Open QGIS and press Ctrl+Alt+T to open the Processing toolbox (if it is not open already). Then type ‘r.reclass’ in the search bar to find the tool.
– HMSP
Aug 27 '18 at 9:29
This seems easy, but, why don't I see any results? Shouldn't I give a name to my new reclassified raster in Reclassified field? Even though I'm doing this, I get no result in return. Nothing appears on my screen and nothing is saved anywhere. What am I doing wrong?
– Evgenia
Aug 29 '18 at 8:42
Instead of GRASS, I used SAGA (2.3.2) Raster tools and it worked at last! Thank you for your time!
– Evgenia
Aug 29 '18 at 10:12
add a comment |
There is an easy way to reclassify a raster in QGIS using GRASS tool r.reclass
. When you installed QGIS you probably installed GRASS as well. In the processing toolbox of QGIS go to GRASS/raster/r.reclass
Select the input raster layer, and then you can open a txt file containing reclassification rules. If you want 4 classes the file must contain the following:
1 thru 150 = 1
151 thru 600 = 2
601 thru 900 = 3
901 thru 1565 = 4
There is an easy way to reclassify a raster in QGIS using GRASS tool r.reclass
. When you installed QGIS you probably installed GRASS as well. In the processing toolbox of QGIS go to GRASS/raster/r.reclass
Select the input raster layer, and then you can open a txt file containing reclassification rules. If you want 4 classes the file must contain the following:
1 thru 150 = 1
151 thru 600 = 2
601 thru 900 = 3
901 thru 1565 = 4
answered Aug 27 '18 at 8:31
HMSPHMSP
1815
1815
Sorry, I am not familiar with GRASS GIS. I have just started in QGIS. Any other ideas? Perhaps using Raster Calculator?
– Evgenia
Aug 27 '18 at 8:58
Don’t worry, you don´t have to work in GRASS, its functionalities are implemented in QGIS. Open QGIS and press Ctrl+Alt+T to open the Processing toolbox (if it is not open already). Then type ‘r.reclass’ in the search bar to find the tool.
– HMSP
Aug 27 '18 at 9:29
This seems easy, but, why don't I see any results? Shouldn't I give a name to my new reclassified raster in Reclassified field? Even though I'm doing this, I get no result in return. Nothing appears on my screen and nothing is saved anywhere. What am I doing wrong?
– Evgenia
Aug 29 '18 at 8:42
Instead of GRASS, I used SAGA (2.3.2) Raster tools and it worked at last! Thank you for your time!
– Evgenia
Aug 29 '18 at 10:12
add a comment |
Sorry, I am not familiar with GRASS GIS. I have just started in QGIS. Any other ideas? Perhaps using Raster Calculator?
– Evgenia
Aug 27 '18 at 8:58
Don’t worry, you don´t have to work in GRASS, its functionalities are implemented in QGIS. Open QGIS and press Ctrl+Alt+T to open the Processing toolbox (if it is not open already). Then type ‘r.reclass’ in the search bar to find the tool.
– HMSP
Aug 27 '18 at 9:29
This seems easy, but, why don't I see any results? Shouldn't I give a name to my new reclassified raster in Reclassified field? Even though I'm doing this, I get no result in return. Nothing appears on my screen and nothing is saved anywhere. What am I doing wrong?
– Evgenia
Aug 29 '18 at 8:42
Instead of GRASS, I used SAGA (2.3.2) Raster tools and it worked at last! Thank you for your time!
– Evgenia
Aug 29 '18 at 10:12
Sorry, I am not familiar with GRASS GIS. I have just started in QGIS. Any other ideas? Perhaps using Raster Calculator?
– Evgenia
Aug 27 '18 at 8:58
Sorry, I am not familiar with GRASS GIS. I have just started in QGIS. Any other ideas? Perhaps using Raster Calculator?
– Evgenia
Aug 27 '18 at 8:58
Don’t worry, you don´t have to work in GRASS, its functionalities are implemented in QGIS. Open QGIS and press Ctrl+Alt+T to open the Processing toolbox (if it is not open already). Then type ‘r.reclass’ in the search bar to find the tool.
– HMSP
Aug 27 '18 at 9:29
Don’t worry, you don´t have to work in GRASS, its functionalities are implemented in QGIS. Open QGIS and press Ctrl+Alt+T to open the Processing toolbox (if it is not open already). Then type ‘r.reclass’ in the search bar to find the tool.
– HMSP
Aug 27 '18 at 9:29
This seems easy, but, why don't I see any results? Shouldn't I give a name to my new reclassified raster in Reclassified field? Even though I'm doing this, I get no result in return. Nothing appears on my screen and nothing is saved anywhere. What am I doing wrong?
– Evgenia
Aug 29 '18 at 8:42
This seems easy, but, why don't I see any results? Shouldn't I give a name to my new reclassified raster in Reclassified field? Even though I'm doing this, I get no result in return. Nothing appears on my screen and nothing is saved anywhere. What am I doing wrong?
– Evgenia
Aug 29 '18 at 8:42
Instead of GRASS, I used SAGA (2.3.2) Raster tools and it worked at last! Thank you for your time!
– Evgenia
Aug 29 '18 at 10:12
Instead of GRASS, I used SAGA (2.3.2) Raster tools and it worked at last! Thank you for your time!
– Evgenia
Aug 29 '18 at 10:12
add a comment |
QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.
sorry, I'm working with a company's computer device. It's not easy for me to download new editions.
– Evgenia
Aug 27 '18 at 9:14
add a comment |
QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.
sorry, I'm working with a company's computer device. It's not easy for me to download new editions.
– Evgenia
Aug 27 '18 at 9:14
add a comment |
QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.
QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.
answered Aug 27 '18 at 8:55
ndawsonndawson
19.8k22742
19.8k22742
sorry, I'm working with a company's computer device. It's not easy for me to download new editions.
– Evgenia
Aug 27 '18 at 9:14
add a comment |
sorry, I'm working with a company's computer device. It's not easy for me to download new editions.
– Evgenia
Aug 27 '18 at 9:14
sorry, I'm working with a company's computer device. It's not easy for me to download new editions.
– Evgenia
Aug 27 '18 at 9:14
sorry, I'm working with a company's computer device. It's not easy for me to download new editions.
– Evgenia
Aug 27 '18 at 9:14
add a comment |
You can check this out.
Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
Snap 1
Snap 2
SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!
– Evgenia
Aug 29 '18 at 10:04
add a comment |
You can check this out.
Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
Snap 1
Snap 2
SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!
– Evgenia
Aug 29 '18 at 10:04
add a comment |
You can check this out.
Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
Snap 1
Snap 2
You can check this out.
Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
Snap 1
Snap 2
edited Aug 27 '18 at 9:59
answered Aug 27 '18 at 9:50
arefin shawonarefin shawon
135
135
SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!
– Evgenia
Aug 29 '18 at 10:04
add a comment |
SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!
– Evgenia
Aug 29 '18 at 10:04
SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!
– Evgenia
Aug 29 '18 at 10:04
SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!
– Evgenia
Aug 29 '18 at 10:04
add a comment |
It worked for me using the steps below....
Check min max values in first raster (dem),
Use Processing Toolbox > SAGA (2.3.2) > Reclassify values (simple)
Grid = dem (my first raster),
Replace Condition = [2] Low value <=grid valueLookup table = a fixed table with 4 rows created in Fixed table window,
Changed Grid = Save to temporary file,
Check on Open output file after running algorithm
Run (algorithm)
The Changed Grid raster appears on project.
After that arrange the style through properties and save as dem_reclass.tif
After that statistical analysis can be made through LecoS plugin (if it is installed)
add a comment |
It worked for me using the steps below....
Check min max values in first raster (dem),
Use Processing Toolbox > SAGA (2.3.2) > Reclassify values (simple)
Grid = dem (my first raster),
Replace Condition = [2] Low value <=grid valueLookup table = a fixed table with 4 rows created in Fixed table window,
Changed Grid = Save to temporary file,
Check on Open output file after running algorithm
Run (algorithm)
The Changed Grid raster appears on project.
After that arrange the style through properties and save as dem_reclass.tif
After that statistical analysis can be made through LecoS plugin (if it is installed)
add a comment |
It worked for me using the steps below....
Check min max values in first raster (dem),
Use Processing Toolbox > SAGA (2.3.2) > Reclassify values (simple)
Grid = dem (my first raster),
Replace Condition = [2] Low value <=grid valueLookup table = a fixed table with 4 rows created in Fixed table window,
Changed Grid = Save to temporary file,
Check on Open output file after running algorithm
Run (algorithm)
The Changed Grid raster appears on project.
After that arrange the style through properties and save as dem_reclass.tif
After that statistical analysis can be made through LecoS plugin (if it is installed)
It worked for me using the steps below....
Check min max values in first raster (dem),
Use Processing Toolbox > SAGA (2.3.2) > Reclassify values (simple)
Grid = dem (my first raster),
Replace Condition = [2] Low value <=grid valueLookup table = a fixed table with 4 rows created in Fixed table window,
Changed Grid = Save to temporary file,
Check on Open output file after running algorithm
Run (algorithm)
The Changed Grid raster appears on project.
After that arrange the style through properties and save as dem_reclass.tif
After that statistical analysis can be made through LecoS plugin (if it is installed)
edited Aug 29 '18 at 10:18
answered Aug 29 '18 at 10:09
EvgeniaEvgenia
113
113
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%2f294062%2freclassify-in-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