-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What should I do if one class is missing from one of the input maps #12
Comments
@lluisvicens , you have different landuse types in your data:
For example, landuse types '4', '6' are not presented in the second raster. It means that the module can't calculate transition statistics |
Thanks Dmitry for your answer and help. May I do a question? |
@lluisvicens , I don't know answers for your questions :( For the current state of the module the init-raster and final-raster must have the same landuse classes. Probably the issue can be solved with small code change, but I'm not sure. We have developed the module using the next assumptions and user story:
We expect that the model works in constant enviroment (there aren't sudden changes in factors and external medium). For example if an user studies deforestation and some parts of the territory became a National park in the studied time period, the module isn't applicable (external medium have changed). More precisely the limits of the models are (we assumed that):
In case of your question. Actually we haven't thought about such possibility as elimination of a landuse class during the landuse evaluation process. In your case you have N% of transition Class1->Class2 for the firs pair of rasters (init-final), but you don't have even one pixel for make the transition for the second pairs of rasters (final-new). As result, the model became inapplicable (and we haven't programmed this possibility)... But on the other hand I don't see a fundamental objection to use a trained model without the disappeared landuse class. The main question is: can be the trained model applicable in such condition or can't be. I don't know, I have to think about it :) |
@lluisvicens I'd suppose there an easy answer to your question, turn your 'disappearing' class to NODATA before running the analysis |
I've added another issue to provide more informative error message |
A lot of thanks Maxim and Dmitry for your kind reply. I will take in consideration your hints, and in the meantime I won't consider the 'disappearing classes' between init-raster and final-raster and I will focus the analysis on the classes that are present on both layers. I will keep an eye on future versions on MOLUSCE, just in case... ;) |
Corine layers: corine.zip
I'm trying to perform an analysis of land use/cover change detection using QGIS and MOLUSCE but I get an error message. I'm working with two CORINE raster layers (1990 vs 2006) and other two optional layers as a Spatial variables (distance to roads, distance to rivers). I successfully completed the "Inputs" and "Evaluating Correlation" tabs processes, but when I get to "Area Changes" tab, and I press the "Update tables" or "Create changes map", I always get the same python error message:
Here it goes the error log message:
I'm working with QGIS 2.14.1 and MOLUSCE 3.0.11 under Ubuntu 14.04 LTS. I've tried the same on a Windows machine with same error message.
Thanks.
The text was updated successfully, but these errors were encountered: