entities

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConstellation

func GetConstellation(constellation string) common.Constellation

GetConstellation returns the constellation from the user input

Types

type AreaToIngest

type AreaToIngest struct {
	AOIID          string `json:"name"`
	AOI            geom.Geometry
	StartTime      time.Time         `json:"start_time"`
	EndTime        time.Time         `json:"end_time"`
	SceneType      SceneType         `json:"scene_type"`
	SceneGraphName string            `json:"scene_graph_name"`
	TileGraphName  string            `json:"tile_graph_name"`
	GraphConfig    map[string]string `json:"graph_config"`
	Layers         map[string]struct {
		Variable   string `json:"variable"`
		Instance   string `json:"instance"`
		InstanceID string `json:"instance_id"`
	} `json:"layers"`
	RecordTags           map[string]string `json:"record_tags"`
	GCSAnnotationsBucket string            `json:"gcs_annotations_bucket"`
}

AreaToIngest is the input of the catalog

func (*AreaToIngest) InstancesID

func (a *AreaToIngest) InstancesID() map[string]string

func (*AreaToIngest) UnmarshalJSON

func (area *AreaToIngest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for AreaToIngest

type Scene

type Scene struct {
	common.Scene
	ProductName string // SceneName without the product discriminator (to remove double entries)
	Tags        map[string]string
	GeometryWKT string
	Tiles       []*Tile
	Ingested    bool // This scene has already been ingested
	OwnRecord   bool // The record has been created for this scene
}

Scene is a specialisation of common.Scene for the catalog

func (*Scene) AutoFill

func (s *Scene) AutoFill()

AutoFill fills ProductName, Satellite, Constellation

type SceneType

type SceneType struct {
	Constellation string `json:"constellation"`
	Parameters    map[string]string
}

type Scenes

type Scenes struct {
	Scenes     []*Scene
	Properties map[string]string
}

func (Scenes) MarshalJSON

func (scenes Scenes) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Unmarshaler interface for Scenes

func (*Scenes) UnmarshalJSON

func (scenes *Scenes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Scenes

type Tile

type Tile struct {
	TileLite
	ID          int
	Data        common.TileAttrs
	AnxTime     int
	GeometryWKT string
	Previous    *TileLite
	Reference   *TileLite
	Ingested    bool
}

Tile defined a tile (i.e. burst/granule...) for the catalog

type TileLite

type TileLite struct {
	SourceID string
	SceneID  string
	Date     time.Time
}

TileLite defined only the needed fields for a Previous or Reference Tile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL