Vote count:
0
I have two grids of equal shape, one is for land class and the other is land area.
Examples: Land class [[1 4 3], [3 2 3], [1 3 3]]
Land area [[0.3 0.8 2.0], [5.0 1.5 0.5], [0.1 1.0 3.2]]
I need to sum up land area based on land class, and it would be delightful to print something like this:
1 0.4 2 1.5 3 11.7 4 0.8
The only module I've imported is numpy, and I would like to avoid importing others if possible. Suggestions?
asked 31 secs ago
Sum land area grid based on land class grid in Python
Aucun commentaire:
Enregistrer un commentaire