Il 6 maggio 2015 12:09, Margherita Di Leo <direg...@gmail.com> ha scritto: > # questa e` la classe che voglio creare > class TimeSeries(ndarray): > '''This object registers for each point the following characteristics > over time: > * Column 0 : NIR > * Column 1 : RED > * Column 2 : GREEN > * Column 3 : NDVI > * Column 4 : SAVI ''' > def __init__(self, nir, red, green, ndvi, savi): > self.NIR = nir > self.RED = red > self.GREEN = green > self.NDVI = ndvi > self.SAVI = savi
Probabilmente questa soluzione è semplicistica e magari neppure funzionante, ma io metterei in testa al modulo la definizione di alcune costanti: NIR = 0 RED = 1 GREEN = 2 NDVI = 3 SAVI = 4 ... -- Daniele www.fugamatematica.blogspot.com giusto! nel verso forse è perché non guardiamo le cose Quando non ci capiamo, _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python