zmqDecoder

package
v0.0.0-...-71917b9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fpath = ""

Fpath is set in case data should be stored on file system. If empty nothing is saved, locally.

Functions

func Decode

func Decode(multiPartMessage [][]byte, fpath string) error

Decode EIGER zmq messages and process according to message type Save output to fpath if string is not empty

Types

type ImageData

type ImageData struct {
	Series int    `json:"series"`
	Frame  int    `json:"frame"`
	Hash   string `json:"hash"`

	Shape    [3]int `json:"shape"`
	Type     string `json:"type"`
	Encoding string `json:"encoding"`
	Size     int    `json:"size"`

	StartTime int `json:"start_time"`
	StopTime  int `json:"stop_time"`
	RealTime  int `json:"real_time"`

	DataBlob    []byte
	Data        []byte
	ByteSize    int
	ElementSize int
}

ImageData contains the EIGER zmq image meta data as well as the data blob and the uncompressed data

func (*ImageData) WriteTiff

func (imgData *ImageData) WriteTiff(fpath string) error

WriteTiff writes the image imgData data to fname.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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