风场数据下载转换
数据来源地址: NATIONAL WEATHER SERVICE
参考视频:数据下载及转换
数据下载
选择类似的文件点击 grib filter 下载
下载好的数据可以通过基于java开发的工具:grib2json进行转换成下面展示的数据格式
风向数据介绍
{
"header":{
"discipline":0,
"disciplineName":"Meteorological products",
"gribEdition":2,
"gribLength":971990,
"center":7,
"centerName":"US National Weather Service - NCEP(WMC)",
"subcenter":0,
"refTime":"2023-06-15T18:00:00.000Z",
"significanceOfRT":1,
"significanceOfRTName":"Start of forecast",
"productStatus":0,
"productStatusName":"Operational products",
"productType":1,
"productTypeName":"Forecast products",
"productDefinitionTemplate":0,
"productDefinitionTemplateName":"Analysis/forecast at horizontal level/layer at a point in time",
"parameterCategory":2,
"parameterCategoryName":"Momentum",
"parameterNumber":2,
"parameterNumberName":"U-component_of_wind",
"parameterUnit":"m.s-1",
"genProcessType":2,
"genProcessTypeName":"Forecast",
"forecastTime":8,
"surface1Type":103,
"surface1TypeName":"Specified height level above ground",
"surface1Value":10.0,
"surface2Type":255,
"surface2TypeName":"Missing",
"surface2Value":0.0,
"gridDefinitionTemplate":0,
"gridDefinitionTemplateName":"Latitude_Longitude",
"numberPoints":1038240,
"shape":6,
"shapeName":"Earth spherical with radius of 6,371,229.0 m",
"gridUnits":"degrees",
"resolution":48,
"winds":"true",
"scanMode":0,
"nx":1440,
"ny":721,
"basicAngle":0,
"lo1":0.0,
"la1":90.0,
"lo2":359.75003,
"la2":-90.0,
"dx":0.25,
"dy":0.25
},
"data":[ -4.0054445,
-3.8554444,
-4.2654443,
....
-3.5954444,
-3.9154444,
-4.6454444
]
一、示例风向数据将地球以0.25为步长分为横向1440、纵向721个栅格。然后记录了每个栅格中南北方向(U)、东西方向(V)两个方向上的风力值。
示例数据中data中记录了1440*721=1038240个风力数值。数据中已省略。
二、header参数介绍:
parameterCategory 配置了数据记录内容,风力数据默认为2
parameterCategoryName 风向数据默认:Momentum
parameterNumber 记录了数据方向:U向为2,V向为3
parameterNumberName U-component_of_wind/V-component_of_wind
numberPoints 数据点数量
nx 横向划分栅格数量
ny 纵向划分栅格数量
dx 横向步长
dy 纵向步长
lo1 横向起点,全球默认为0
la1 纵向起点,全球默认为-90
lo2 横向终点,全球默认359.5,根据步长有所不同
la2 纵向终点,全球默认-90