sepal-contrib / sdg_15.3.1

monitor SDG indicators at plot level
MIT License
3 stars 3 forks source link

added option to use cusom land cover legend and transition matrix #105

Closed i-m-amit closed 2 years ago

i-m-amit commented 2 years ago

You could use the following data to test the new dev:

AOI: Singapore
initial landcover : users/amitghosh/sdg/esa_2000
final landcover: users/amitghosh/sdg/esa_2015

Reclassification matrix:

50,artificial,#C31400
40,wetland,#04DC83
30,cropland,#FFFF64
20,grassland,#FFB432
10,forest,#02A000

Landcover matrix:

landcover,2015,artificial,wetland,cropland, grassland, forest
2000,code,50,40,30,20,10
artificial,50,0,1,1,1,1
wetland,40,-1,0,1,1,1
cropland,30,-1,-1,0,0,1
grassland,20,-1,-1,1,0,1
forest,10,-1,-1,-1,-1,0

Land cover matrix format: 1st column: class labels for initial land cover 2nd column: class code/pixel values for initial land cover 1rst row: class labels for target land cover 2nd row: class code/pixel values for target land cover 3rd column 3rd row to nn: transition matrix

i-m-amit commented 2 years ago

screenshot-2022-05-16-19:25:23

Is it okey now?

12rambau commented 2 years ago

that's super nice !

12rambau commented 2 years ago

Don't forget that now that you have merged you're PR you need to create a new one to integrate latest changes

i-m-amit commented 2 years ago

Yes, I am working on some other small issues, will create a new PR to integrate these update.