I'm working on a project related urban public space.
With the following function I got an array related to a raster band of an urban environment.
#array generation function
def shade_array (index):
altitude = df.altitude[index]
azimut = df.azimut[index]
shade = es.hillshade(elevation, azimuth = azimut, altitude = altitude)
return shade
Now I want to iterate the function for a different days an hour from a dataframe. I run the following for-loop:
for i in df.index:
shade_array(i)
The point is that what I need is to store the info in a list of variables, like:
array_list = [array_01, array_02,..., array_365]
to cross and make some transformations in the values obtained. How can I get to it?