I have a layer created using a raster data collection RasterDataCollection() that I'm using to create a time series, following the 03_Time_Series.ipynb example notebook.
I'm trying to grab raster data that is bounded by an annotation for each raster included in the time series (each date in timeseries). In the 02_Raster_Data.ipynb example notebook, there is an example of getting raster data from the annotation using:
layer, data = next(M.layers.annotation.rectangles[0].data)
data
I'm seeing this output:
masked_array(data =
[],
mask =
False,
fill_value = -3.40282e+38)
But not sure where to go from here. How does the annotation layer relate to data in other layers? Thanks!