Giter VIP home page Giter VIP logo

smbyc / acatama Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 5.0 59.75 MB

AcATaMa is a powerful and complete Qgis plugin for accuracy assessment that provides comprehensive support for sampling, response design and estimation.

Home Page: https://smbyc.github.io/AcATaMa/

License: GNU General Public License v3.0

Makefile 1.84% Python 82.54% HTML 10.43% Shell 0.42% QML 4.71% Dockerfile 0.06%
qgis-plugin accuracy-assessment thematic-maps qgis remote-sensing sampling-designs

acatama's People

Contributors

xaviercll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acatama's Issues

Check error in export to csv

from https://fivequestionz.home.blog/2020/04/07/accuracy-assessment-of-your-classification-map-check-a-confusion-matrix-calculated-based-on-ground-truth-points/

Thank you so much for the useful tutorial! I followed exactly your steps on my image and now just trying to obtain the Confusion Matrix in the Accuracy Assessment Tab but got the Classification Accuracy Assessment Results Window empty and an error saying the following. I’m not able to export it as csv. Not sure what it means. Could you recognise the error here?
Many thanks in advance

—–
Error:

unsupported operand type(s) for +: ‘int’ and ‘NoneType’
Traceback (most recent call last):
File “/Users/safaaalawadhi/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/AcATaMa/utils/system_utils.py”, line 36, in wrapper
return func(*args, **kwargs)
File “/Users/safaaalawadhi/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/AcATaMa/gui/accuracy_assessment_results.py”, line 501, in export_to_csv
sum([accu_asse.thematic_pixels_count[v] for v in accu_asse.values])))
TypeError: unsupported operand type(s) for +: ‘int’ and ‘NoneType’

Feature Request: Processing Framework Integration

AcATaMa is a great plugin! It would be nice if some of its tool can be used in the QGIS Processing Framework, as this allows to include them into the QGIS Model builder.

The first ones that come to my mind are:

[ ] Simple Random Sampling
[ ] Stratified Random Sampling
[ ] Accuracy Assessment

how to cite AcATaMa?

It would be nice if the README.md gives an example how to cite AcATaMa.

E.g. like
Llano, X. C. (2019). "AcATaMa - QGIS plugin for Accuracy Assessment of Thematic Maps.", https://plugins.qgis.org/plugins/AcATaMa/.

No sample file generated

Hi! Thanks for your plugin!
But i found bugs that the plugin were not generated any sample file.
When I click "Generate the sampling" it says :

2021-09-12T07:05:26     INFO    AcATaMa : Could not load layer: /mnt/65625765-a7a4-482f-8971-5e97fb483b25/linux/documents/Kerja/mba nurul pandeglang/Citra Pandeglang/sentinel/mencoba/aaaaaa
2021-09-12T07:05:26     SUCCESS    AcATaMa : Generate the simple random sampling, completed

Thus no sample file were generated.
I've tried both geopackage and shapefile, but still have the same issues.
I've tried reinstalling the plugin too.
I'm using QGIS:

QGIS version 3.20.2-Odense QGIS code branch Release 3.20
Qt version 5.15.2
Python version 3.9.6
GDAL/OGR version 3.2.2
PROJ version 7.2.1
EPSG Registry database version v10.008 (2020-12-16)
GEOS version 3.9.0-CAPI-1.16.2
SQLite version 3.34.1
PDAL version 2.2.0
PostgreSQL client version 13.3
SpatiaLite version 5.0.1
QWT version 6.1.5
QScintilla2 version 2.11.5
OS version Fedora 34 (Workstation Edition)
       
Active Python plugins temporalprofiletoolCalculateGeometryMetaSearchdb_managerprocessingSemiAutomaticClassificationPluginAcATaMa

Here's a gif I hope it can help you:
ezgif-6-de7a4dc38925

Stdev or SE to determine number of samples?

Hi,

Firstly I'd like to appreciate you much for your hard work to create this great plugin.

I'd like to ask you for clarification regarding the quantity you use to calculate the number of samples. In the AcATaMa plugin at the 'sampling' tab, it shows standard error for each stratum. Alofsson et al. (2014) used standard deviation. In its user guide (https://smbyc.github.io/AcATaMa/), particularly on the Sampling design section at "Stratified random sampling using area-based proportion", it was mentioned that "Standard deviation of each stratum: You define the values in the table". Olofsson provides a way to calculate the standard deviation (by using the user's accuracy conjecture), but I am not sure for SE. How do you actually calculate SE and how it relates to the sample number of each stratum.

Thanks,
WN

Python error when opening Acatama Panel

When opening Acatama panel from toolbar, I got this python error:

2022-01-25T17:54:48     WARNING    Traceback (most recent call last):
              File "/home/lam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/AcATaMa/acatama.py", line 127, in run
              self.dockwidget = AcATaMaDockWidget()
              File "/home/lam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/AcATaMa/gui/acatama_dockwidget.py", line 68, in __init__
              self.setup_gui()
              File "/home/lam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/AcATaMa/gui/acatama_dockwidget.py", line 95, in setup_gui
              self.QCBox_ThematicRaster.layerChanged.connect(self.select_thematic_raster)
             TypeError: decorated slot has no signature compatible with layerChanged(QgsMapLayer*)

This is my QGIS info:

QGIS version 3.22.2-Białowieża QGIS code branch Release 3.22
Qt version 5.15.2
Python version 3.10.0
GDAL/OGR version 3.3.2
Compiled against PROJ 8.2.0.%3.%4 Running against PROJ 8.2.1
EPSG Registry database version v10.041 (2021-12-03)
GEOS version 3.9.2-CAPI-1.14.3
SQLite version 3.36.0
PDAL version 2.3.0
PostgreSQL client version 13.4
SpatiaLite version 5.0.1
QWT version 6.1.5
QScintilla2 version 2.13.0
OS version Fedora Linux 35 (Workstation Edition)
       
Active Python plugins
CalculateGeometry 0.6.4
AcATaMa 19.11.21
SemiAutomaticClassificationPlugin 7.10.5
MetaSearch 0.3.5
db_manager 0.1.20
processing 2.12.99
grassprovider 2.12.99
sagaprovider 2.12.99

This also happens on Windows with the same error message:

2022-01-25T17:56:21     WARNING    Traceback (most recent call last):
              File "C:\Users/sakinah.lestari/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AcATaMa\acatama.py", line 127, in run
              self.dockwidget = AcATaMaDockWidget()
              File "C:\Users/sakinah.lestari/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AcATaMa\gui\acatama_dockwidget.py", line 68, in __init__
              self.setup_gui()
              File "C:\Users/sakinah.lestari/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AcATaMa\gui\acatama_dockwidget.py", line 95, in setup_gui
              self.QCBox_ThematicRaster.layerChanged.connect(self.select_thematic_raster)
             TypeError: decorated slot has no signature compatible with layerChanged(QgsMapLayer*)

Edit: It does not happened on the LTR version 3.16.16 'Hannover'.

About text question

The about text mentions "ThRasE", but the acronym it is not further explained:

About us
ThRasE was developing, designed and implemented by the Group of Forest and Carbon Monitoring System (SMByC), operated by the Institute of Hydrology, Meteorology and Environmental Studies (IDEAM) - Colombia.

Seems like ThRasE is a former name of AcATaMa and the about text needs to be updated?

'AccuracyAssessment' object has no attribute 'samples_outside_the_thematic'

Greetings, I am getting this error when trying to generate the confusion matrix... what could it be due to?
Traceback (most recent call last):
File "C:/Users/usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AcATaMa\utils\system_utils.py", line 36, in wrapper
return func(*args, **kwargs)
File "C:/Users/usuario/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\AcATaMa\gui\accuracy_assessment_results.py", line 86, in get_html
if accu_asse.samples_outside_the_thematic:
AttributeError: 'AccuracyAssessment' object has no attribute 'samples_outside_the_thematic'

Stratified Sampling Stuck

When I try to do fixed number of samplings using the plug in, it says "The sampling process seems stuck due to sampling conditions. Do you want to continue this sampling process and never ask this again?" But when I try to continue it, QGIS becomes stuck and become unresponsive.
image

Warning! Sampled labelled that are outside the thematic map area or inside the no data values:

Hi, Just experimenting with your plug in and I really like the GUI and hope you can help me fix my issue.

I've run a 200 point Simple Random Sample over a tif with 2 classes, 0 and 1.

When I get to the accuracy results, I get the warning (of the title) and essentially all of the classes that were marked 0 are not included in the accuracy assessment analysis and report.

Any chance this is a known issue and I might have just done the set up wrong? Should I perhaps re-classify the 0 values to another integer number in the raster..

image

TIA,
m

Accept a larger range of values for nodata

Discussed in #14

Originally posted by short-k1ng August 6, 2022
Hello! I'm sorry I'm not really a coder but I don't know where else to turn. I'm using the plugin for a project and I need it for accuracy assessment. My raster has a NoData value of -1e+9, but I couldnt choose that option in the tabs prior so when it gets to the accuracy assessment portion, I think it turns my 0 value pixels into the NoData pixels and subsequently, this excludes those pixels from the assessment. What can I do to remedy this? I'm sorry if this isn't the place to ask.

Cannot set the minimum distance between samples when doing random sampling

The plugin works well with the minimum distance = 0.
Whatever non-zero minimum distance is set, this error message comes:

Traceback (most recent call last):
  File "/home/tung/.local/share/QGIS/QGIS3/profiles/default/python/plugins/AcATaMa/utils/system_utils.py", line 36, in wrapper
    return func(*args, **kwargs)
  File "/home/tung/.local/share/QGIS/QGIS3/profiles/default/python/plugins/AcATaMa/core/sampling.py", line 224, in do_stratified_random_sampling
    if sampling.total_of_samples < total_of_samples and sampling.total_of_samples > 0:
TypeError: unorderable types: NoneType() < int()

I use QGIS 3.4, OS Ubuntu 16.04, AcATaMa v19.11.21
Please check.

The plugin doesn't appear

Hi! I already installed the AcATaMa plugin, but when I clicked the table content doesn't appear on the screen. Could you tell me, what I should do about this issue?

WhatsApp.Video.2022-01-04.at.11.24.17.mp4

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.