Table of Contents

Class ChartTools.Grib2WindCsvConverter

Namespace
LightningChartLib.WinForms.Charting
Assembly
LightningChart.WinForms.Charting.NET4.dll

Converts GRIB2 10-metre wind fields to x,y,U,V CSV without native dependencies. Supports product template 4.0, regular latitude/longitude template 3.0, and complex packing with spatial differencing (template 5.3). Bitmaps, embedded missing values and other templates are deliberately rejected. Format references: https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/

public static class ChartTools.Grib2WindCsvConverter
Inheritance
ChartTools.Grib2WindCsvConverter
Inherited Members

Methods

ConvertToCsv(string, string, int, int)

Writes original eastward/northward wind velocities in m/s and longitude/latitude in degrees. Longitude is normalized to [-180,180). Output is north to south, then west to east. Supply sample counts, e.g. 100 and 50 for 5,000 points. A zero count retains all points in that dimension. Sampling does not interpolate. The destination must not already exist. Returns the number of written vectors.

public static int ConvertToCsv(string gribPath, string csvPath, int longitudeCount = 0, int latitudeCount = 0)

Parameters

gribPath string
csvPath string
longitudeCount int
latitudeCount int

Returns

int