Versions in this module Expand all Collapse all v1 v1.2.6 Jun 17, 2020 v1.2.5 Jun 17, 2020 Changes in this version + func ExportMessageAsPng(message *Message, filename string) error v1.2.4 Feb 11, 2020 v1.2.3 Mar 3, 2019 v1.2.2 Feb 12, 2019 v1.2.1 Jan 15, 2019 Changes in this version + const EndSectionLength + const ExportJSONToConsole + const ExportNone + const ExportToPNG + const Grib + const INT_MAX + const LatitudeNorth + const LatitudeSouth + const LongitudeEnd + const LongitudeStart + const PrintMessageCategories + const PrintMessageDisciplines + const SupportedGribEdition + func DisciplineDescription(value uint8) string + func EarthShapeDescription(value int) string + func Export(messages []*Message, options Options) + func ExportMessagesAsPngs(messages []*Message) + func FilterValuesFromGeoFilter(message *Message, filter GeoFilter) (*[]float64, error) + func GridDefinitionSourceDescription(value int) string + func GridDefinitionTemplateDescription(value int) string + func GridPointPositionDescription(value int) string + func LocalTableVersionNumber(value int) string + func MasterTableDescription(value int) string + func MaxMin(float64s []float64) (float64, float64) + func ParseData0(dataReader io.Reader, dataLength int, template *Data0) ([]float64, error) + func ParseData2(dataReader io.Reader, dataLength int, template *Data2) ([]float64, error) + func ParseData3(dataReader io.Reader, dataLength int, template *Data3) ([]float64, error) + func ReadAerosolPresence(value int) string + func ReadAerosolType(value int) string + func ReadBitMapIndicator(value int) string + func ReadCategoricalOutlook(value int) string + func ReadCategoricalResult(value int) string + func ReadCloudMaskType(value int) string + func ReadCloudTopHeightQuality(value int) string + func ReadCloudType(value int) string + func ReadClusteringMethod(value int) string + func ReadClutterFillerIndicator(value int) string + func ReadCompressionType(value int) string + func ReadContrailEngineType(value int) string + func ReadContrailIntensity(value int) string + func ReadDataRepresentationTemplateNumber(value int) string + func ReadDataType(value uint8) string + func ReadDerivedForecast(value int) string + func ReadEnsembleForecastType(value int) string + func ReadFireDetection(value int) string + func ReadFloatingPointNumbersPrecision(value int) string + func ReadGeneratingProcessType(value int) string + func ReadGroupSplittingMethod(value int) string + func ReadHorizontalDimensionProcessed(value int) string + func ReadHorizontalLineType(value int) string + func ReadIcing(value int) string + func ReadIntervalType(value int) string + func ReadLandUse(value int) string + func ReadListInterpretation(value int) string + func ReadMatrixCoordinateParameter(value int) string + func ReadMatrixCoordinateValueFunctionDefinition(value int) string + func ReadMissingDataTreatment(value int) string + func ReadMissingValueManagement(value int) string + func ReadOperatingMode(value int) string + func ReadOriginalFieldValuesType(value int) string + func ReadPixelSceneType(value int) string + func ReadPlanetaryBoundaryLayerRegime(value int) string + func ReadPrecipitableWaterCategory(value int) string + func ReadPrecipitationType(value int) string + func ReadProbabilityType(value int) string + func ReadProductDefinitionTemplateNumber(value uint16) string + func ReadProductDisciplineCategoryParameters(discipline uint16, category uint8, number uint8) string + func ReadProductDisciplineParameters(discipline uint8, category uint8) string + func ReadProductionStatus(value int) string + func ReadQualityControlIndicator(value int) string + func ReadReferenceTimeSignificance(value int) string + func ReadRemotelySensedSnowCoverage(value int) string + func ReadSnowCoveredTerrainElevation(value int) string + func ReadSoilType(value int) string + func ReadSpatialDifferencingOrder(value int) string + func ReadSpatialProcessingType(value int) string + func ReadSpectralDataRepresentationMode(value int) string + func ReadStatisticalProcessingType(value int) string + func ReadSurfaceTypesUnits(value int) string + func ReadThunderstormCoverage(value int) string + func ReadTimeIntervalsType(value int) string + func ReadTimeRangeUnitIndicator(value int) string + func ReadTurbulence(value int) string + func ReadVerticalCoordinatePhysicalMeaning(value int) string + func ReadVerticalDimensionCoordinateValuesDefinition(value int) string + func ReadVolcanicAsh(value int) string + func ReadWindGeneratedWaveSpectralDescription(value int) string + func RedValue(value float64, maxValue float64, minValue float64) uint8 + func Reduce(readSeeker io.Reader, options Options, content chan []byte, end chan bool) + func SpectralDataRepresentationTypeDescription(value int) string + func StartStopIndexes(filter GeoFilter, grid Grid0) (uint32, uint32, uint32, uint32) + type BasicAngle struct + BasicAngle uint32 + BasicAngleSub uint32 + type BitReader struct + type Data0 struct + BinaryScale uint16 + Bits uint8 + DecimalScale uint16 + Reference float32 + Type uint8 + type Data2 struct + GroupLastLength uint32 + GroupLengthIncrement uint8 + GroupLengthsReference uint32 + GroupMethod uint8 + GroupScaledLengthsBits uint8 + GroupWidths uint8 + GroupWidthsBits uint8 + MissingSubstitute1 uint32 + MissingSubstitute2 uint32 + MissingValue uint8 + NG uint32 + type Data3 struct + OctetsNumber uint8 + SpatialOrderDifference uint8 + type GeoFilter struct + MaxLat int32 + MaxLong int32 + MinLat int32 + MinLong int32 + type Grid interface + Export func() map[string]string + func ReadGrid(f io.Reader, templateNumber uint16) (Grid, error) + type Grid0 struct + BasicAngle BasicAngle + Di int32 + Dj int32 + La1 int32 + La2 int32 + Lo1 int32 + Lo2 int32 + Ni uint32 + Nj uint32 + ResolutionAndComponentFlags uint8 + ScanningMode uint8 + func (h *Grid0) Export() map[string]string + type Grid10 struct + Di int32 + Dj int32 + GridOrientation uint32 + La1 int32 + La2 int32 + Lad int32 + Lo1 int32 + Lo2 int32 + Ni uint32 + Nj int32 + ResolutionAndComponentFlags uint8 + ScanningMode uint8 + type Grid20 struct + Dx int32 + Dy int32 + La1 int32 + Lad int32 + Lo1 int32 + Lov int32 + Nx uint32 + Ny uint32 + ProjectionCenter uint8 + ResolutionAndComponentFlags uint8 + ScanningMode uint8 + type Grid30 struct + Dx int32 + Dy int32 + La1 int32 + LaSouthPole uint32 + Lad int32 + Latin1 uint32 + Latin2 uint32 + Lo1 int32 + LoSouthPole uint32 + Lov int32 + Nx uint32 + Ny uint32 + ProjectionCenter uint8 + ResolutionAndComponentFlags uint8 + ScanningMode uint8 + type Grid40 struct + BasicAngle uint32 + Di int32 + La1 int32 + La2 int32 + Lo1 int32 + Lo2 int32 + N uint32 + Ni uint32 + Nj uint32 + ResolutionAndComponentFlags uint8 + ScanningMode uint8 + type Grid90 struct + Dx uint32 + Dy uint32 + Lap int32 + Lop int32 + Nr uint32 + Nx uint32 + Ny uint32 + Orientation uint32 + ResolutionAndComponentFlags uint8 + ScanningMode uint8 + Xo uint32 + Xp uint32 + Yo uint32 + Yp uint32 + type GridHeader struct + EarthShape uint8 + MajorAxis ScaledValue + MinorAxis ScaledValue + SphericalRadius ScaledValue + func (h *GridHeader) Export() (d map[string]string) + type Message struct + Section0 Section0 + Section1 Section1 + Section2 Section2 + Section3 Section3 + Section4 Section4 + Section5 Section5 + Section6 Section6 + Section7 Section7 + func Filter(messages []*Message, options Options) []*Message + func ReadMessage(gribFile io.Reader) (*Message, error) + func ReadMessages(gribFile io.Reader) ([]*Message, error) + func (message Message) Data() []float64 + type Options struct + Category int + DataExport bool + Discipline int + ExportType int + Filepath string + GeoFilter GeoFilter + MaximumNumberOfMessages int + Operation string + ReduceFilePath string + Surface Surface + type Product0 struct + AnalysisProcess uint8 + BackgroundProcess uint8 + FirstSurface Surface + ForecastTime uint32 + Hours uint16 + Minutes uint8 + ParameterCategory uint8 + ParameterNumber uint8 + ProcessType uint8 + SecondSurface Surface + TimeUnitIndicator uint8 + type Product1 struct + EnsembleForecastType uint8 + ForecastInEnsembleCount uint8 + PertubationNumber uint8 + type Product2 struct + DerivedForecast uint8 + ForecastInEnsembleCount uint8 + type Product5 struct + ForecastProbabilityNumber uint8 + ProbabilityType uint8 + ScaleFactorLowerLimit uint8 + ScaleFactorUpperLimit uint8 + ScaleValueLowerLimit uint32 + ScaleValueUpperLimit uint32 + TotalForecastProbabilities uint8 + type Product6 struct + PercentileValue uint8 + type Product7 struct + type Product8 struct + AdditionalTimeRangeSpecifications []TimeRangeSpecification + NumberOfIntervalTimeRanges uint8 + Time Time + TimeRangeSpecification1 TimeRangeSpecification + TimeRangeSpecification2 TimeRangeSpecification + TotalMissingDataValuesCount uint32 + type ScaledValue struct + Scale uint8 + Value uint32 + type Section0 struct + Discipline uint8 + Edition uint8 + Indicator uint32 + MessageLength uint64 + Reserved uint16 + func ReadSection0(reader io.Reader) (section0 Section0, err error) + type Section1 struct + LocalTablesVersion uint8 + MasterTablesVersion uint8 + OriginatingCenter uint16 + OriginatingSubCenter uint16 + ProductionStatus uint8 + ReferenceTime Time + ReferenceTimeSignificance uint8 + Type uint8 + func ReadSection1(f io.Reader, length int) (section Section1, err error) + type Section2 struct + LocalUse []uint8 + func ReadSection2(f io.Reader, len int) (section Section2, err error) + type Section3 struct + DataPointCount uint32 + Definition interface{} + PointCountInterpretation uint8 + PointCountOctets uint8 + Source uint8 + TemplateNumber uint16 + func ReadSection3(f io.Reader, length int) (section Section3, err error) + func (s Section3) String() string + type Section4 struct + Coordinates []byte + CoordinatesCount uint16 + ProductDefinitionTemplate Product0 + ProductDefinitionTemplateNumber uint16 + func ReadSection4(f io.Reader, length int) (section Section4, err error) + type Section5 struct + Data []byte + DataTemplateNumber uint16 + PointsNumber uint32 + func ReadSection5(f io.Reader, length int) (section Section5, err error) + func (section Section5) GetDataTemplate() (interface{}, error) + type Section6 struct + Bitmap []byte + BitmapIndicator uint8 + func ReadSection6(f io.Reader, length int) (section Section6, err error) + type Section7 struct + Data []float64 + func ReadSection7(f io.Reader, length int, section5 Section5) (section Section7, sectionError error) + type SectionHead struct + ByteLength uint32 + Number uint8 + func ReadSectionHead(section io.Reader) (head SectionHead, err error) + func (s SectionHead) ContentLength() int + func (s SectionHead) SectionNumber() uint8 + func (s SectionHead) String() string + type Surface struct + Scale uint8 + Type uint8 + Value uint32 + type Time struct + Day uint8 + Hour uint8 + Minute uint8 + Month uint8 + Second uint8 + Year uint16 + type TimeRangeSpecification struct + IncrementBetweenSuccessiveFieldsRangeTimeUnitIndicator uint8 + IncrementBetweenSuccessiveFieldsTimeUnitIndicator uint8 + IncrementBetweenSuccessiveFieldsType uint8 + StatisticalFieldCalculationProcess uint8 + StatististicalProcessTimeLength uint32 + TimeIncrementBetweenSuccessiveField uint32