Landscape change analysis with MOLUSCE - methods and algorithms: различия между версиями

Материал из GIS-Lab
Перейти к навигации Перейти к поиску
Строка 15: Строка 15:
==Utility modules==
==Utility modules==
===Data Provider===
===Data Provider===
The module provides data structure for internal storing of raster data. It uses [http://docs.scipy.org/doc/numpy/reference/maskedarray.html numpy masked arrays] as data store. The most important methods are:
The module provides data structure for internal storing of raster data. It uses [http://docs.scipy.org/doc/numpy/reference/maskedarray.html numpy masked arrays] as data store. But to to prevent low-level manupulations of the data by user, the module gives special methods for data access (it allows to change internal structure in future, if any need occurs). The most important methods are:
* Creation and storing methods
* Creation and storing methods
** reading data from file
** reading data from file
** create new raster
  r = Raster('examples/multifact.tif')
** save data
** creating new raster
** saving data
* Access to the data and data manupulation
* Access to the data and data manupulation
** getBand getBandsCount
** getBand getBandsCount

Версия от 13:59, 15 августа 2013

General structure of the plugin

MOLUSCE consists of several parts:

  • GUI modules (implement user interface)
  • Utility modules
    • Data Provider (provides procedures of reading/writing raster/vector data and similar utility functions)
    • Cross Tabulation (provides functions for creating contingency tables)
  • Algorithmic modules:
    • Area Analysis (provides procedures of change searching, making change maps)
    • Modeling (provides submodules for modeling relation between input-output data)
    • Simulation (provides procedure of land change simulation)
    • Validation (provides statistic functions and procedures for validation of simulation result)

The paper describes internal structure of most important utility and algorithmic modules. The description is valid for structure of plugin version <= 1.x.x

Utility modules

Data Provider

The module provides data structure for internal storing of raster data. It uses numpy masked arrays as data store. But to to prevent low-level manupulations of the data by user, the module gives special methods for data access (it allows to change internal structure in future, if any need occurs). The most important methods are:

  • Creation and storing methods
    • reading data from file
 r = Raster('examples/multifact.tif')
    • creating new raster
    • saving data
  • Access to the data and data manupulation
    • getBand getBandsCount
    • getBandGradation
    • getBandStat
    • getGeodata
  • *normalize denormalize
    • resetMask
    • setBand
    • setGeoData
  • Comparing
    • geoDataMatch
    • geoTransformMatch