ConservationInternational / trends.earth

trends.earth - measure land change
http://trends.earth
GNU General Public License v2.0
106 stars 45 forks source link

Make size of land cover degradation matrix larger when a large number of classes is chosen #725

Closed azvoleff closed 1 year ago

azvoleff commented 1 year ago

When a large number of land cover classes are chosen, the window to setup the land cover degradation matrix should increase in size so that more rows of the matrix are shown (below is from the SDG 15.3.1 tool, but same goes for the land cover tool as well):

image

vermeulendivan commented 1 year ago

@azvoleff Is this related to the Landcover table in the settings?

azvoleff commented 1 year ago

@vermeulendivan yes, if the number of classes is increased in the land cover table in settings then this matrix increases in size

vermeulendivan commented 1 year ago

Minor change to limit the size of the cells when there are only a few LC classes. Otherwise this is done.

azvoleff commented 1 year ago

Thanks @vermeulendivan. Can you please send this as a pull request?

vermeulendivan commented 1 year ago

@azvoleff Here you go: https://github.com/ConservationInternational/trends.earth/pull/746. Some of the tests are failing, but all of it refers to LDN and urban, and has no reference to the code I worked on for this.