pystac.common_metadata#

class pystac.common_metadata.CommonMetadata(object: Union[Asset_Type, Item_Type])[source]

Object containing fields that are not included in core item schema but are still commonly used. All attributes are defined within the properties of this item and are optional

Parameters

properties – Dictionary of attributes that is the Item’s properties

property constellation: Optional[str]

Gets or set the name of the constellation associate with an object.

property created: Optional[datetime.datetime]

Get or set the metadata file’s creation date. All datetime attributes have setters that can take either a string or a datetime, but always stores the attribute as a string.

Note

created has a different meaning depending on the type of STAC object. On an Item, it refers to the creation time of the metadata. On an Asset, it refers to the creation time of the actual data linked to in Asset.href <pystac.Asset.href.

property description: Optional[str]

Gets or set the object’s description.

property end_datetime: Optional[datetime.datetime]

Get or set the item’s end_datetime.

property gsd: Optional[float]

Gets or sets the Ground Sample Distance at the sensor.

property instruments: Optional[List[str]]

Gets or sets the names of the instruments used.

property license: Optional[str]

Get or set the current license.

property mission: Optional[str]

Gets or set the name of the mission associated with an object.

object: Union[Asset_Type, Item_Type]

The object from which common metadata is obtained.

property platform: Optional[str]

Gets or set the object’s platform attribute.

property providers: Optional[List[Provider_Type]]

Get or set a list of the object’s providers.

property start_datetime: Optional[datetime.datetime]

Get or set the object’s start_datetime.

property title: Optional[str]

Gets or set the object’s title.

property updated: Optional[datetime.datetime]

Get or set the metadata file’s update date. All datetime attributes have setters that can take either a string or a datetime, but always stores the attribute as a string

Note

updated has a different meaning depending on the type of STAC object. On an Item, it refers to the update time of the metadata. On an Asset, it refers to the update time of the actual data linked to in Asset.href <pystac.Asset.href.