氣象數據之風向數據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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

注意:這些就是前端展示風向數據的主要參數,所以做數據轉換時,只要將其配置完成即可。

 

 

鑽研不易,轉載請注明出處。。。。。。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM