Documentation ¶
Index ¶
- Constants
- func ConstellationStrings() []string
- func FormatBrackets(str string, info map[string]string) string
- func GetDateFromProductId(sceneName string) (time.Time, error)
- func Info(sceneName string) (map[string]string, error)
- func StatusStrings() []string
- type Constellation
- type Result
- type Scene
- type SceneAttrs
- type SceneToIngest
- type Status
- type Tile
- type TileAttrs
- type TileMapping
- type TileToIngest
- type TileToProcess
Constants ¶
const ( GraphCopyProductToStorage = "CopyProductToStorage" GraphPass = "Pass" )
const ( ResultTypeTile = "tile" ResultTypeScene = "scene" )
const ( TagSourceID = "sourceID" TagUUID = "uuid" TagIngestionDate = "ingestionDate" TagConstellation = "constellation" TagSatellite = "satellite" TagPolarisationMode = "polarisationMode" TagOrbitDirection = "orbitDirection" TagRelativeOrbit = "relativeOrbit" TagOrbit = "orbit" TagProductType = "productType" TagDownloadURL = "downloadURL" TagSliceNumber = "sliceNumber" TagLastRelativeOrbit = "lastRelativeOrbit" TagLastOrbit = "lastOrbit" TagCloudCoverPercentage = "cloudCoverPercentage" TagProcessingDate = "processingDate" TagPrevScenes = "previous_scenes" TagRefScenes = "reference_scenes" )
Record tags
const (
DownloadLinkMetadata = "downloadLink"
)
Variables ¶
This section is empty.
Functions ¶
func ConstellationStrings ¶ added in v1.0.1
func ConstellationStrings() []string
ConstellationStrings returns a slice of all String values of the enum
func FormatBrackets ¶ added in v1.0.1
*
- FormatBrackets replaces in <str> all {keys} of <info> by the corresponding value
- keys must be one of SCENE, MISSION_ID, PRODUCT_LEVEL, DATE(YEAR/MONTH/DAY), TIME(HOUR/MINUTE/SECOND), PDGS, ORBIT, TILE (LATITUDE_BAND/GRID_SQUARE/GRANULE_ID)
func GetDateFromProductId ¶ added in v1.0.1
func StatusStrings ¶ added in v1.0.0
func StatusStrings() []string
StatusStrings returns a slice of all String values of the enum
Types ¶
type Constellation ¶ added in v1.0.1
type Constellation int
Constellation defines the kind of satellites
const ( Unknown Constellation = iota Sentinel1 // MMM_BB_TTTR_LFPP_YYYYMMDDTHHMMSS_YYYMMDDTHHMMSS_OOOOOO_DDDDDD_CCCC.SAFE Sentinel2 // MMM_MSIXXX_YYYYMMDDTHHMMSS_Nxxyy_ROOO_Txxxxx_<Product Discriminator>.SAFE or MMM_CCCC_FFFFDDDDDD_ssss_YYYYMMDDTHHMMSS_ROOO_VYYYYMMTDDHHMMSS_YYYYMMTDDHHMMSS.SAFE PHR // DS_PHR1B_201706161037358_XXX_XX_XXXXXXX_XXXX_XXXXX SPOT // DS_SPOT7_201806232333174_XXX_XXX_XXX_XXX_XXXXXXX_XXXXX )
func ConstellationString ¶ added in v1.0.1
func ConstellationString(s string) (Constellation, error)
ConstellationString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ConstellationValues ¶ added in v1.0.1
func ConstellationValues() []Constellation
ConstellationValues returns all values of the enum
func GetConstellationFromProductId ¶ added in v1.0.1
func GetConstellationFromProductId(sceneName string) Constellation
func (Constellation) IsAConstellation ¶ added in v1.0.1
func (i Constellation) IsAConstellation() bool
IsAConstellation returns "true" if the value is listed in the enum definition. "false" otherwise
func (Constellation) MarshalJSON ¶ added in v1.0.1
func (i Constellation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for Constellation
func (Constellation) String ¶ added in v1.0.1
func (i Constellation) String() string
func (*Constellation) UnmarshalJSON ¶ added in v1.0.1
func (i *Constellation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for Constellation
type Scene ¶
type Scene struct { ID int `json:"id"` SourceID string `json:"source_id"` AOI string `json:"aoi"` Data SceneAttrs `json:"data,omitempty"` }
type SceneAttrs ¶
type SceneAttrs struct { UUID string `json:"uuid"` Date time.Time `json:"date"` TileMappings map[string]TileMapping `json:"tiles"` GraphName string `json:"graph_name"` GraphConfig map[string]string `json:"graph_config"` RecordID string `json:"record_id"` InstancesID map[string]string `json:"instances_id"` Metadata map[string]interface{} `json:"metadata"` }
func (*SceneAttrs) Scan ¶
func (a *SceneAttrs) Scan(value interface{}) error
Scan implements the sql.Scanner interface.
type SceneToIngest ¶
type SceneToIngest struct { Scene Tiles map[string]TileToIngest `json:"tiles"` }
type Status ¶
type Status int
func StatusString ¶
StatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Status) IsAStatus ¶
IsAStatus returns "true" if the value is listed in the enum definition. "false" otherwise
func (Status) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Status
func (*Status) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Status
type TileAttrs ¶
type TileAttrs struct { SwathID string `json:"swath_id"` TileNr int `json:"tile_nr"` GraphName string `json:"graph_name"` }