Documentation ¶
Index ¶
- Constants
- func DEFINED_VAL(x float) bool
- func GB2_Center(sec [][]unsigned_char) int
- func GB2_Discipline(sec [][]unsigned_char) int
- func GB2_LocalTable(sec [][]unsigned_char) int
- func GB2_MasterTable(sec [][]unsigned_char) int
- func GB2_ParmCat(sec [][]unsigned_char) int
- func GB2_ParmNum(sec [][]unsigned_char) int
- func GB2_ProdDefTemplateNo(sec [][]unsigned_char) int
- func GB2_Sec3_npts(sec [][]unsigned_char) unsigned_int
- func GB2_Subcenter(sec [][]unsigned_char) int
- func GDS_Lambert_La1(gds []unsigned_char) double
- func GDS_Lambert_LatD(gds []unsigned_char) double
- func GDS_Lambert_Latin1(gds []unsigned_char) double
- func GDS_Lambert_Latin2(gds []unsigned_char) double
- func GDS_Lambert_Lo1(gds []unsigned_char) double
- func GDS_Lambert_Lov(gds []unsigned_char) double
- func GDS_Lambert_dx(gds []unsigned_char) double
- func GDS_Lambert_dy(gds []unsigned_char) double
- func GDS_LatLon_basic_ang(gds []unsigned_char) int
- func GDS_LatLon_dlat(gds []unsigned_char) int
- func GDS_LatLon_dlon(gds []unsigned_char) int
- func GDS_LatLon_lat1(gds []unsigned_char) int
- func GDS_LatLon_lat2(gds []unsigned_char) int
- func GDS_LatLon_lon1(gds []unsigned_char) unsigned_int
- func GDS_LatLon_lon2(gds []unsigned_char) unsigned_int
- func GDS_LatLon_sub_ang(gds []unsigned_char) int
- func GDS_Mercator_dx(gds []unsigned_char) double
- func GDS_Mercator_dy(gds []unsigned_char) double
- func GDS_Mercator_lat1(gds []unsigned_char) double
- func GDS_Mercator_lat2(gds []unsigned_char) double
- func GDS_Mercator_latD(gds []unsigned_char) double
- func GDS_Mercator_lon1(gds []unsigned_char) double
- func GDS_Mercator_lon2(gds []unsigned_char) double
- func GDS_Mercator_ori_angle(gds []unsigned_char) double
- func GDS_Polar_dx(gds []unsigned_char) double
- func GDS_Polar_dy(gds []unsigned_char) double
- func GDS_Polar_lad(gds []unsigned_char) double
- func GDS_Polar_lat1(gds []unsigned_char) double
- func GDS_Polar_lon1(gds []unsigned_char) double
- func GDS_Polar_lov(gds []unsigned_char) double
- func GDS_Polar_sps(gds []unsigned_char) bool
- func GDS_RotLatLon_rotation(gds []unsigned_char) unsigned_int
- func GDS_RotLatLon_sp_lat(gds []unsigned_char) int
- func GDS_RotLatLon_sp_lon(gds []unsigned_char) unsigned_int
- func GDS_Scan_row_rev(scan int) bool
- func GDS_Scan_staggered_storage(scan int) bool
- func GDS_Scan_x(scan int) bool
- func GDS_Scan_y(scan int) bool
- func GetInfo(sec [][]byte) (name string, desc string, unit string, err error)
- func GetLevel(sec [][]byte) (level string, err error)
- func INT1(a unsigned_char) int
- func Int_Power(x double, y int) double
- func LatLon(sec [][]byte, lon *[]float64, lat *[]float64) error
- func RefTime(sec [][]byte) time.Time
- func UINT2(a, b unsigned_char) int
- func UnpackData(sec [][]byte) ([]float32, error)
- func VerfTime(sec [][]byte) (time.Time, error)
Constants ¶
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 )
const ( UNDEFINED = 9.999e20 UNDEFINED_LOW = 9.9989e20 UNDEFINED_HIGH = 9.9991e20 )
const INT_MAX = X_INT_MAX
#define INT_MAX X_INT_MAX
const JMA1 = 34
const JMA2 = 35
const M_PI = 3.14159265358979323846
const M_PI_2 = 1.57079632679489661923 /* pi/2 */
const M_PI_4 = 0.78539816339744830962 /* pi/4 */
const NCEP = 7
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_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 ¶
#define GDS_Scan_row_rev(scan) ((scan & 16) == 16)
func GDS_Scan_staggered_storage ¶
#define GDS_Scan_staggered_storage(scan) (((scan) & (1)) != 0)
func INT1 ¶
func INT1(a unsigned_char) int
#define INT1(a) ((a & 0x80) ? - (int) (a & 127) : (int) (a & 127))
func UnpackData ¶
Types ¶
This section is empty.
Source Files ¶
- CodeTable.c.go
- CodeTable4_4.h.go
- Code_Values.c.go
- Earth.c.go
- FlagTable.c.go
- Latlon.c.go
- Level.c.go
- Sec3.c.go
- VerfTime.c.go
- addtime.c.go
- bitstream.c.go
- cname.c.go
- geo.c.go
- grib2.c.go
- gribtab.c.go
- ieee2flt.c.go
- ieee2flt_nan.c.go
- int8.c.go
- missing.c.go
- ncx.c.go
- stagger.c.go
- stubs.go
- unpk.c.go
- unpk_0.c.go
- wgrib2.c.go