ccsds

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SequenceContinuedSegment = 0
	SequenceFirstSegment     = 1
	SequenceLastSegment      = 2
	SequenceSingleData       = 3
)
View Source
const MSDUTimeout = 15 * 60 // 15 minutes

Variables

This section is empty.

Functions

func CRC

func CRC(data []byte) uint16

func PostHandleFile

func PostHandleFile(filename, outBase string, vcid int, ip *ImageProcessor.ImageProcessor)

func SizeFromMSDUHeader

func SizeFromMSDUHeader(data []byte) int

func SkipChannel

func SkipChannel(channelId int) bool

Types

type Demuxer

type Demuxer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func MakeDemuxer

func MakeDemuxer() *Demuxer

func (*Demuxer) AddSkipVCID

func (dm *Demuxer) AddSkipVCID(vcid int)

func (*Demuxer) SetDrawMap

func (dm *Demuxer) SetDrawMap(d bool)

func (*Demuxer) SetEnhance added in v0.5.2

func (dm *Demuxer) SetEnhance(r bool)

func (*Demuxer) SetFalseColor

func (dm *Demuxer) SetFalseColor(r bool)

func (*Demuxer) SetMetaFrame added in v0.5.2

func (dm *Demuxer) SetMetaFrame(r bool)

func (*Demuxer) SetOnFrameLost

func (dm *Demuxer) SetOnFrameLost(cb func(channelId, currentFrame, lastFrame int))

func (*Demuxer) SetOnNewVCID

func (dm *Demuxer) SetOnNewVCID(cb func(channelId int))

func (*Demuxer) SetOutputFolder

func (dm *Demuxer) SetOutputFolder(folder string)

func (*Demuxer) SetReprojectImage

func (dm *Demuxer) SetReprojectImage(r bool)

func (*Demuxer) SetTemporaryFolder

func (dm *Demuxer) SetTemporaryFolder(folder string)

func (*Demuxer) WriteBytes

func (dm *Demuxer) WriteBytes(data []byte)

type FileAssembler

type FileAssembler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func MakeFileAssembler

func MakeFileAssembler() *FileAssembler

func (*FileAssembler) PutMSDU

func (fa *FileAssembler) PutMSDU(msdu *MSDU)

func (*FileAssembler) SetDrawMap

func (fa *FileAssembler) SetDrawMap(drawMap bool)

func (*FileAssembler) SetEnhance added in v0.5.2

func (fa *FileAssembler) SetEnhance(enhance bool)

func (*FileAssembler) SetFalseColor

func (fa *FileAssembler) SetFalseColor(fsclr bool)

func (*FileAssembler) SetMetaFrame added in v0.5.2

func (fa *FileAssembler) SetMetaFrame(meta bool)

func (*FileAssembler) SetOutputFolder

func (fa *FileAssembler) SetOutputFolder(folder string)

func (*FileAssembler) SetReprojectImages

func (fa *FileAssembler) SetReprojectImages(reproject bool)

func (*FileAssembler) SetTemporaryFolder

func (fa *FileAssembler) SetTemporaryFolder(folder string)

type MSDU

type MSDU struct {
	ChannelId        int
	Version          int
	APID             int
	Priority         int
	Type             int
	HasSecondHeader  bool
	PrimaryHeader    []byte
	Sequence         int
	PacketNumber     int
	PacketLength     int
	FullPacketLength int
	Data             []byte

	CRC           uint16
	CalculatedCRC uint16
	// contains filtered or unexported fields
}

func MakeMSDUWithHeader

func MakeMSDUWithHeader(channelId int, header []byte) *MSDU

func (*MSDU) AddBytes

func (msdu *MSDU) AddBytes(data []byte) []byte

func (*MSDU) Clone

func (msdu *MSDU) Clone() *MSDU

func (*MSDU) Closed

func (msdu *MSDU) Closed() bool

func (*MSDU) Valid

func (msdu *MSDU) Valid() bool

type MSDUInfo

type MSDUInfo struct {
	APID             int
	ReceivedTime     time.Time
	FileName         string
	LastPacketNumber int
	Header           *XRIT.Header
}

func MakeMSDUInfo

func MakeMSDUInfo() *MSDUInfo

func (*MSDUInfo) Expired

func (mi *MSDUInfo) Expired() bool

func (*MSDUInfo) Refresh

func (mi *MSDUInfo) Refresh()

type TransportParser

type TransportParser struct {
	// contains filtered or unexported fields
}

func MakeTransportParser

func MakeTransportParser(channelId int, onMSDU func(*MSDU)) *TransportParser

func (*TransportParser) WriteChannelData

func (tp *TransportParser) WriteChannelData(data *VCDU)

type VCDU

type VCDU struct {
	// contains filtered or unexported fields
}

func MakeVCDU

func MakeVCDU(data []byte) *VCDU

func (*VCDU) Counter

func (vcdu *VCDU) Counter() int

func (*VCDU) Data

func (vcdu *VCDU) Data() []byte

func (*VCDU) Replay

func (vcdu *VCDU) Replay() bool

func (*VCDU) SCID

func (vcdu *VCDU) SCID() int

func (*VCDU) VCID

func (vcdu *VCDU) VCID() int

func (*VCDU) Version

func (vcdu *VCDU) Version() int

Jump to

Keyboard shortcuts

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