GithubHelp home page GithubHelp logo

gnetwvs / acc-assess Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkibele/acc-assess

0.0 2.0 0.0 232 KB

Accuracy Assessment plugin for QGIS 2.0

License: BSD 3-Clause "New" or "Revised" License

Makefile 12.91% Python 80.91% Batchfile 6.18%

acc-assess's Introduction

##Accuracy Assessment

####Accuracy Assessment plugin for QGIS 2.0

DOI

by Jared Kibele

Graduate Student at Leigh Marine Lab, University of Auckland

[email protected]

This plugin calculates an error matrix from two raster datasets and outputs a CSV file that can be loaded into a spreadsheet (LibreOffice Calc, or MicroSloth Excel). To use it, open your raster layers in QGis, launch the plugin, select the layer you want to use as the reference layer, select your comparison layer, and select an output file with a .csv extension. Click 'OK' then open your .csv file with a spreadsheet. You should see something like this:

LayerName1 (ref) vs. LayerName2                     
            1   2   3   4   Totals  Accuracy
        1   618 0   0   3   621     100
        2   0   570 2   0   572     100
        3   0   0   313 2   315     99
        4   0   0   1   383 384     100
Totals      618 570 316 388 1892    
Accuracy    100 100 99  99          100
                    
Quantity Disagreement   5                   
Allocation Disagreement 3                   

The classes in this example are integers 1, 2, 3, 4. The reference layer is laid out in columns (so the reference class labels are headers in a row) and the comparison map data is laid out in rows (so the comparison class labels are in the first column). User's accuracy is in the 'Accuracy' column and producer's accuracy is in the 'Accuracy' row (see Congalton 1991 in references.txt). For a description of Quantity Disagreement and Allocation Disagreement, see Pointius and Millones 2011 (references.txt)

Current Limitations: This plugin assumes that raster values of 0 are unclassified so you can't use 0 as a class value. The plugin also assumes that you're providing it with two rasters that have the same pixel size and dimensions. I haven't tested it yet with different sized rasters. If it doesn't crash with different sized rasters, it will at least give you useless results. I intend to address that in future versions.

error_matrix.py can do other calculations that are currently not implemented in the GUI. error_matrix.py also has a bunch of explanitory comments that I won't include here. At some point I'd like to get the Sphinx documentation working with those comments but that will have to wait for a future version. error_matrix.py also has a bunch of doc tests. If you want to check that the code is working on your machine, go to the directory that contains error_matrix.py with the command line and type: "python error_matrix.py" and hit return. If you get output, please email it to me. If you just get another command prompt, that means the tests all passed.

This plugin was built with the "Plugin Builder" plugin by GeoApt LLC - geoapt.com. Thanks GeoApt.

-Jared

acc-assess's People

Contributors

jkibele avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.