internal

package
v0.0.0-...-816e6d6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MINUTE  = 0
	HOUR    = 1
	DAY     = 2
	MONTH   = 3
	YEAR    = 4
	DECADE  = 5
	NORMAL  = 6
	CENTURY = 7
	HOUR3   = 10
	HOUR6   = 11
	HOUR12  = 12
	SECOND  = 13
)
View Source
const (
	UNDEFINED      = 9.999e20
	UNDEFINED_LOW  = 9.9989e20
	UNDEFINED_HIGH = 9.9991e20
)
View Source
const INT_MAX = X_INT_MAX

#define INT_MAX X_INT_MAX

View Source
const JMA1 = 34
View Source
const JMA2 = 35
View Source
const M_PI = 3.14159265358979323846
View Source
const M_PI_2 = 1.57079632679489661923 /* pi/2 */
View Source
const M_PI_4 = 0.78539816339744830962 /* pi/4 */
View Source
const NCEP = 7
View Source
const X_INT_MAX = 2147483647

#define X_INT_MAX 2147483647

Variables

This section is empty.

Functions

func DEFINED_VAL

func DEFINED_VAL(x float) bool

#define DEFINED_VAL(x) ((x) < UNDEFINED_LOW || (x) > UNDEFINED_HIGH)

func GB2_Center

func GB2_Center(sec [][]unsigned_char) int

#define GB2_Center(sec) UINT2(sec[1][5], sec[1][6])

func GB2_Discipline

func GB2_Discipline(sec [][]unsigned_char) int

#define GB2_Discipline(sec) ((int) (sec[0][6]))

func GB2_LocalTable

func GB2_LocalTable(sec [][]unsigned_char) int

#define GB2_LocalTable(sec) ((int) (sec[1][10]))

func GB2_MasterTable

func GB2_MasterTable(sec [][]unsigned_char) int

#define GB2_MasterTable(sec) ((int) (sec[1][9]))

func GB2_ParmCat

func GB2_ParmCat(sec [][]unsigned_char) int

#define GB2_ParmCat(sec) (sec[4][9])

func GB2_ParmNum

func GB2_ParmNum(sec [][]unsigned_char) int

#define GB2_ParmNum(sec) (sec[4][10])

func GB2_ProdDefTemplateNo

func GB2_ProdDefTemplateNo(sec [][]unsigned_char) int

#define GB2_ProdDefTemplateNo(sec) (UINT2(sec[4][7],sec[4][8]))

func GB2_Sec3_npts

func GB2_Sec3_npts(sec [][]unsigned_char) unsigned_int

#define GB2_Sec3_npts(sec) uint4(sec[3]+6)

func GB2_Subcenter

func GB2_Subcenter(sec [][]unsigned_char) int

#define GB2_Subcenter(sec) UINT2(sec[1][7], sec[1][8])

func GDS_Lambert_La1

func GDS_Lambert_La1(gds []unsigned_char) double

#define GDS_Lambert_La1(gds) (int4(gds+38) * 0.000001)

func GDS_Lambert_LatD

func GDS_Lambert_LatD(gds []unsigned_char) double

#define GDS_Lambert_LatD(gds) (int4(gds+47) * 0.000001)

func GDS_Lambert_Latin1

func GDS_Lambert_Latin1(gds []unsigned_char) double

#define GDS_Lambert_Latin1(gds) (int4(gds+65) * 0.000001)

func GDS_Lambert_Latin2

func GDS_Lambert_Latin2(gds []unsigned_char) double

#define GDS_Lambert_Latin2(gds) (int4(gds+69) * 0.000001)

func GDS_Lambert_Lo1

func GDS_Lambert_Lo1(gds []unsigned_char) double

#define GDS_Lambert_Lo1(gds) (int4(gds+42) * 0.000001)

func GDS_Lambert_Lov

func GDS_Lambert_Lov(gds []unsigned_char) double

#define GDS_Lambert_Lov(gds) (int4(gds+51) * 0.000001)

func GDS_Lambert_dx

func GDS_Lambert_dx(gds []unsigned_char) double

#define GDS_Lambert_dx(gds) (int4(gds+55) * 0.001)

func GDS_Lambert_dy

func GDS_Lambert_dy(gds []unsigned_char) double

#define GDS_Lambert_dy(gds) (int4(gds+59) * 0.001)

func GDS_LatLon_basic_ang

func GDS_LatLon_basic_ang(gds []unsigned_char) int

#define GDS_LatLon_basic_ang(gds) int4(gds+38)

func GDS_LatLon_dlat

func GDS_LatLon_dlat(gds []unsigned_char) int

#define GDS_LatLon_dlat(gds) int4(gds+67)

func GDS_LatLon_dlon

func GDS_LatLon_dlon(gds []unsigned_char) int

#define GDS_LatLon_dlon(gds) int4(gds+63)

func GDS_LatLon_lat1

func GDS_LatLon_lat1(gds []unsigned_char) int

#define GDS_LatLon_lat1(gds) int4(gds+46)

func GDS_LatLon_lat2

func GDS_LatLon_lat2(gds []unsigned_char) int

#define GDS_LatLon_lat2(gds) int4(gds+55)

func GDS_LatLon_lon1

func GDS_LatLon_lon1(gds []unsigned_char) unsigned_int

#define GDS_LatLon_lon1(gds) uint4(gds+50)

func GDS_LatLon_lon2

func GDS_LatLon_lon2(gds []unsigned_char) unsigned_int

#define GDS_LatLon_lon2(gds) uint4(gds+59)

func GDS_LatLon_sub_ang

func GDS_LatLon_sub_ang(gds []unsigned_char) int

#define GDS_LatLon_sub_ang(gds) int4(gds+42)

func GDS_Mercator_dx

func GDS_Mercator_dx(gds []unsigned_char) double

#define GDS_Mercator_dx(gds) ((uint4(gds+64))*0.001)

func GDS_Mercator_dy

func GDS_Mercator_dy(gds []unsigned_char) double

#define GDS_Mercator_dy(gds) ((uint4(gds+68))*0.001)

func GDS_Mercator_lat1

func GDS_Mercator_lat1(gds []unsigned_char) double

#define GDS_Mercator_lat1(gds) (int4(gds+38)*0.000001)

func GDS_Mercator_lat2

func GDS_Mercator_lat2(gds []unsigned_char) double

#define GDS_Mercator_lat2(gds) (int4(gds+51)*0.000001)

func GDS_Mercator_latD

func GDS_Mercator_latD(gds []unsigned_char) double

#define GDS_Mercator_latD(gds) (int4(gds+47)*0.000001)

func GDS_Mercator_lon1

func GDS_Mercator_lon1(gds []unsigned_char) double

#define GDS_Mercator_lon1(gds) (uint4(gds+42)*0.000001)

func GDS_Mercator_lon2

func GDS_Mercator_lon2(gds []unsigned_char) double

#define GDS_Mercator_lon2(gds) (uint4(gds+55)*0.000001)

func GDS_Mercator_ori_angle

func GDS_Mercator_ori_angle(gds []unsigned_char) double

#define GDS_Mercator_ori_angle(gds) (uint4(gds+60)*0.000001)

func GDS_Polar_dx

func GDS_Polar_dx(gds []unsigned_char) double

#define GDS_Polar_dx(gds) (uint4(gds+55)*0.001)

func GDS_Polar_dy

func GDS_Polar_dy(gds []unsigned_char) double

#define GDS_Polar_dy(gds) (uint4(gds+59)*0.001)

func GDS_Polar_lad

func GDS_Polar_lad(gds []unsigned_char) double

#define GDS_Polar_lad(gds) (int4(gds+47)*0.000001)

func GDS_Polar_lat1

func GDS_Polar_lat1(gds []unsigned_char) double

#define GDS_Polar_lat1(gds) (int4(gds+38)*0.000001)

func GDS_Polar_lon1

func GDS_Polar_lon1(gds []unsigned_char) double

#define GDS_Polar_lon1(gds) (uint4(gds+42)*0.000001)

func GDS_Polar_lov

func GDS_Polar_lov(gds []unsigned_char) double

#define GDS_Polar_lov(gds) (uint4(gds+51)*0.000001)

func GDS_Polar_sps

func GDS_Polar_sps(gds []unsigned_char) bool

#define GDS_Polar_sps(gds) ((gds[63] & 128) == 128)

func GDS_RotLatLon_rotation

func GDS_RotLatLon_rotation(gds []unsigned_char) unsigned_int

#define GDS_RotLatLon_rotation(gds) (int4(gds+80))

func GDS_RotLatLon_sp_lat

func GDS_RotLatLon_sp_lat(gds []unsigned_char) int

#define GDS_RotLatLon_sp_lat(gds) (int4(gds+72))

func GDS_RotLatLon_sp_lon

func GDS_RotLatLon_sp_lon(gds []unsigned_char) unsigned_int

#define GDS_RotLatLon_sp_lon(gds) (uint4(gds+76))

func GDS_Scan_row_rev

func GDS_Scan_row_rev(scan int) bool

#define GDS_Scan_row_rev(scan) ((scan & 16) == 16)

func GDS_Scan_staggered_storage

func GDS_Scan_staggered_storage(scan int) bool

#define GDS_Scan_staggered_storage(scan) (((scan) & (1)) != 0)

func GDS_Scan_x

func GDS_Scan_x(scan int) bool

#define GDS_Scan_x(scan) ((scan & 128) == 0)

func GDS_Scan_y

func GDS_Scan_y(scan int) bool

#define GDS_Scan_y(scan) ((scan & 64) == 64)

func GetInfo

func GetInfo(sec [][]byte) (name string, desc string, unit string, err error)

func GetLevel

func GetLevel(sec [][]byte) (level string, err error)

func INT1

func INT1(a unsigned_char) int

#define INT1(a) ((a & 0x80) ? - (int) (a & 127) : (int) (a & 127))

func Int_Power

func Int_Power(x double, y int) double

func LatLon

func LatLon(sec [][]byte, lon *[]float64, lat *[]float64) error

func RefTime

func RefTime(sec [][]byte) time.Time

func UINT2

func UINT2(a, b unsigned_char) int

#define UINT2(a,b) ((int) ((a << 8) + (b)))

func UnpackData

func UnpackData(sec [][]byte) ([]float32, error)

func VerfTime

func VerfTime(sec [][]byte) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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