气象数据之风向数据json格式解析

气象数据之风向数据json格式解析

数据示例:(全球风向数据)

[
  {
    "header": {
      "discipline": 0,
      "disciplineName": "Meteorological products",
      "gribEdition": 2,
      "gribLength": 251674,
      "center": 7,
      "centerName": "US National Weather Service - NCEP(WMC)",
      "subcenter": 0,
      "refTime": "2017-12-27T00: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": 0,
      "surface1Type": 103,
      "surface1TypeName": "Specified height level above ground",
      "surface1Value": 10,
      "surface2Type": 255,
      "surface2TypeName": "Missing",
      "surface2Value": 0,
      "gridDefinitionTemplate": 0,
      "gridDefinitionTemplateName": "Latitude_Longitude",
      "numberPoints": 259920,
      "shape": 6,
      "shapeName": "Earth spherical with radius of 6,371,229.0 m",
      "gridUnits": "degrees",
      "resolution": 48,
      "winds": "true",
      "scanMode": 0,
      "nx": 720,
      "ny": 361,
      "basicAngle": 0,
      "lo1": 0,
      "la1": 90,
      "lo2": 359.5,
      "la2": -90,
      "dx": 0.5,
      "dy": 0.5
    },
    "data": [
      2.3011596,
      2.3011596,
      2.3011596,
      2.2811596,
      ......
      1.1211597,
      1.1511596,
      1.1711596
    ]
  },
  {
    "header": {
      "discipline": 0,
      "disciplineName": "Meteorological products",
      "gribEdition": 2,
      "gribLength": 245626,
      "center": 7,
      "centerName": "US National Weather Service - NCEP(WMC)",
      "subcenter": 0,
      "refTime": "2017-12-27T00: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": 3,
      "parameterNumberName": "V-component_of_wind",
      "parameterUnit": "m.s-1",
      "genProcessType": 2,
      "genProcessTypeName": "Forecast",
      "forecastTime": 0,
      "surface1Type": 103,
      "surface1TypeName": "Specified height level above ground",
      "surface1Value": 10,
      "surface2Type": 255,
      "surface2TypeName": "Missing",
      "surface2Value": 0,
      "gridDefinitionTemplate": 0,
      "gridDefinitionTemplateName": "Latitude_Longitude",
      "numberPoints": 259920,
      "shape": 6,
      "shapeName": "Earth spherical with radius of 6,371,229.0 m",
      "gridUnits": "degrees",
      "resolution": 48,
      "winds": "true",
      "scanMode": 0,
      "nx": 720,
      "ny": 361,
      "basicAngle": 0,
      "lo1": 0,
      "la1": 90,
      "lo2": 359.5,
      "la2": -90,
      "dx": 0.5,
      "dy": 0.5
    },
    "data": [
      -0.12500733,
      -0.14500733,
      -0.16500732,
      ......
      -2.9750073,
      -2.9650073
    ]
  }
]
View Code

一、风向数据介绍:

示例风向数据将地球以0.5为步长分为横向720、纵向361个栅格。然后记录了每个栅格中南北方向(U)、东西方向(V)两个方向上的风力值。

示例数据中data中记录了720*361=259920个风力数值。数据中已省略。

二、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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

注意:这些就是前端展示风向数据的主要参数,所以做数据转换时,只要将其配置完成即可。

 

 

钻研不易,转载请注明出处。。。。。。

 

posted @ 2021-08-16 10:38  莫小龙  阅读(4485)  评论(6编辑  收藏  举报