PacketData

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NO_COMPRESSION = 0
	LRIT_RICE      = 1
	JPEG           = 2
	GIF            = 5
	ZIP            = 10
)

CompressionType

View Source
const (
	UNKNOWN = -1

	// By LRIT/HRIT Standard
	// Section 4 of LRIT/HRIT Global Specification, CGMS 03, August 12, 1999
	IMAGE          = 0
	MESSAGES       = 1
	TEXT           = 2
	ENCRYPTION_KEY = 3
	RESERVED4      = 4

	METEOROLOGICAL_DATA = 128

	// NOAA
	DCS   = 130
	EMWIN = 214
)

FileTypeCode

View Source
const (
	Unknown                 = -1
	PrimaryHeader           = 0
	ImageStructureRecord    = 1
	ImageNavigationRecord   = 2
	ImageDataFunctionRecord = 3
	AnnotationRecord        = 4
	TimestampRecord         = 5
	AncillaryTextRecord     = 6
	KeyRecord               = 7
	Head9                   = 9 // Weird

	SegmentIdentificationRecord = 128
	NOAASpecificHeader          = 129
	HeaderStructuredRecord      = 130
	RiceCompressionRecord       = 131
	DCSFileNameRecord           = 132
)

HeaderType

Variables

View Source
var CompressionType = map[int]string{
	NO_COMPRESSION: "No Compression",
	LRIT_RICE:      "Goloumb Rice (LRIT)",
	JPEG:           "JPEG",
	GIF:            "GIF",
	ZIP:            "ZIP",
}
View Source
var CompressionTypeExtension = map[int]string{
	NO_COMPRESSION: ".bin",
	LRIT_RICE:      ".bin",
	JPEG:           ".jpg",
	GIF:            ".gif",
	ZIP:            ".zip",
}
View Source
var FileTypeCode = map[int]string{
	UNKNOWN:             "Unknown",
	IMAGE:               "Image",
	MESSAGES:            "Messages",
	TEXT:                "Text",
	ENCRYPTION_KEY:      "Encryption Key",
	RESERVED4:           "Reserved",
	METEOROLOGICAL_DATA: "Meteorological Data",
	DCS:                 "DCS",
	EMWIN:               "EMWIN",
}
View Source
var HeaderType = map[int]string{
	Unknown:                     "Unknown",
	PrimaryHeader:               "Primary Header",
	ImageStructureRecord:        "Image Structure Record",
	ImageNavigationRecord:       "Image Navigation Record",
	ImageDataFunctionRecord:     "Image Data Function Record",
	AnnotationRecord:            "Annotation Record",
	TimestampRecord:             "Timestamp Record",
	AncillaryTextRecord:         "Ancillary Text Record",
	KeyRecord:                   "Key Record",
	Head9:                       "Unknown",
	SegmentIdentificationRecord: "Segment Identification Record",
	NOAASpecificHeader:          "NOAA Specific Header",
	HeaderStructuredRecord:      "Header Structured Record",
	RiceCompressionRecord:       "Rice Compression Record",
	DCSFileNameRecord:           "DCS StringData Record",
}

Functions

func GetCompressionTypeExtension

func GetCompressionTypeExtension(compressionType int) string

func GetCompressionTypeString

func GetCompressionTypeString(compressionType int) string

func GetFileTypeCodeString

func GetFileTypeCodeString(fileTypeCode int) string

func GetHeaderTypeString

func GetHeaderTypeString(headerType int) string

Types

type NOAAProduct

type NOAAProduct struct {
	ID          int
	Name        string
	SubProducts map[int]NOAASubProduct
}

func MakeNOAAProduct

func MakeNOAAProduct(id int) NOAAProduct

func MakeNOAAProductWithName

func MakeNOAAProductWithName(id int, name string) NOAAProduct

func MakeNOAAProductWithSubProductsAndName

func MakeNOAAProductWithSubProductsAndName(id int, name string, subProducts map[int]NOAASubProduct) NOAAProduct

func (*NOAAProduct) GetSubProduct

func (np *NOAAProduct) GetSubProduct(id int) NOAASubProduct

type NOAASubProduct

type NOAASubProduct struct {
	ID   int
	Name string
}

func MakeSubProduct

func MakeSubProduct(id int, name string) NOAASubProduct

Jump to

Keyboard shortcuts

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