Reclassify in QGIS










2















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










share|improve this question




























    2















    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










    share|improve this question


























      2












      2








      2








      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










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 27 '18 at 8:06









      Kadir Şahbaz

      4,47921230




      4,47921230










      asked Aug 27 '18 at 7:46









      EvgeniaEvgenia

      113




      113




















          4 Answers
          4






          active

          oldest

          votes


















          1














          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



          enter image description here



          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





          share|improve this answer























          • 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


















          1














          QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.






          share|improve this answer























          • 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


















          0














          You can check this out.
          Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
          Snap 1
          Snap 2






          share|improve this answer

























          • SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!

            – Evgenia
            Aug 29 '18 at 10:04



















          0














          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)






          share|improve this answer
























            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
            );



            );













            draft saved

            draft discarded


















            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









            1














            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



            enter image description here



            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





            share|improve this answer























            • 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















            1














            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



            enter image description here



            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





            share|improve this answer























            • 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













            1












            1








            1







            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



            enter image description here



            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





            share|improve this answer













            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



            enter image description here



            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






            share|improve this answer












            share|improve this answer



            share|improve this answer










            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

















            • 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













            1














            QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.






            share|improve this answer























            • 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















            1














            QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.






            share|improve this answer























            • 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













            1












            1








            1







            QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.






            share|improve this answer













            QGIS 3.2 has native, simple to use reclassification algorithms available through the processing toolbox.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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

















            • 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











            0














            You can check this out.
            Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
            Snap 1
            Snap 2






            share|improve this answer

























            • SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!

              – Evgenia
              Aug 29 '18 at 10:04
















            0














            You can check this out.
            Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
            Snap 1
            Snap 2






            share|improve this answer

























            • SAGA (2.3.2) Raster tools > Reclassify values (simple) worked for me! Thank you!

              – Evgenia
              Aug 29 '18 at 10:04














            0












            0








            0







            You can check this out.
            Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
            Snap 1
            Snap 2






            share|improve this answer















            You can check this out.
            Go to QGIS Processing Toolbox, then follow the snaps. Hope this will help
            Snap 1
            Snap 2







            share|improve this answer














            share|improve this answer



            share|improve this answer








            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


















            • 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












            0














            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)






            share|improve this answer





























              0














              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)






              share|improve this answer



























                0












                0








                0







                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)






                share|improve this answer















                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)







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 29 '18 at 10:18

























                answered Aug 29 '18 at 10:09









                EvgeniaEvgenia

                113




                113



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

                    Crossroads (UK TV series)

                    ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế