这是indexloc提供的服务,不要输入任何密码
Skip to content

Getting raster data from timeseries rasters under annotation layer #128

@digitaltopo

Description

@digitaltopo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions