Skip to content

gips.inventory.DataInventory.inventory with tile list only #32

@ircwaves

Description

@ircwaves

Based on this block (from here):

    spatial = SpatialExtent.factory(cls, site=site, key=key, where=where, tiles=tiles, pcov=pcov, ptile=ptile)
    temporal = TemporalExtent(dates, days)
    return DataInventory(cls, spatial[0], temporal, **kwargs)

Previously we were able to (I believe) inventory via tiles and dates (i.e. without a shapefile). The above results in only inventorying the data for the first tile. This seems like a bug.

I see that gips.core.SpatialExtent.factory returns a list of SpatialExtent objects, always. Seems like DataInventory.__init__ should handle (or always expect) the spatial extent being a list of SpatialExtent objects; OR SpatialExtent should internally keep track of the list of extents, and thus factory would return one SpatialExtent. I'm aesthetically drawn to the latter, but architectural constraints might necessitate the former.

What do you think, Matt?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions