swan

package
v0.0.0-...-4053810 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SwanHeader

type SwanHeader struct {
	Data_type     [12]byte     // 12c len:12
	Data_name     [38]byte     // 38c len:38
	Name          [8]byte      // 8c len:8
	Version       [8]byte      // 8c len:8
	Year          int16        // u2 len:2
	Month         int16        // len:2 // 70
	Day           int16        // len:2
	Hour          int16        // len:2
	Minute        int16        // len:2
	Interval      int16        // len:2
	X_grid_num    int16        // len:2 // 80
	Y_grid_num    int16        // len:2
	Z_grid_num    int16        // len:2
	Radar_count   int32        // i4 len:4
	Start_lon     float32      // f4 len:4
	Start_lat     float32      // f4 len:4
	Center_lon    float32      // f4 len:4 // 100
	Center_lat    float32      // f4 len:4
	X_reso        float32      // f4 len:4
	Y_reso        float32      // f4 len:4
	Height        [40]float32  // 40f4 len:4 * 40 // 272
	Station_names [20][16]byte // 20S16 len 16 * 20 // 592
	Station_lons  [20]float32  // 20f4 len:4 * 20
	Station_lats  [20]float32  // 20f4 len:4 * 20
	Station_alts  [20]float32  // 20f4 len:4 * 20
	Mosaic_flags  [20]byte     // 20B len:20 // 852
	M_data_type   int16        // i2 len:2
	Dimension     int16        // i2 len:2
	Res           [168]byte    // 168c len:168 1024
}

type SwanModel

type SwanModel struct {
	SwanHeader SwanHeader
	Data       [][]*float64
}

func Parse

func Parse(filepath string) (*SwanModel, error)

Jump to

Keyboard shortcuts

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