Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 28, 2023
1 parent 6921314 commit cf7e43f
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
78 changes: 78 additions & 0 deletions csv2bufr/resources/mappings/gbon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"inputShortDelayedDescriptorReplicationFactor": [],
"inputDelayedDescriptorReplicationFactor": [0,0],
"inputExtendedDelayedDescriptorReplicationFactor": [],
"wigos_station_identifier": "data:Station_ID",
"number_header_rows": 4,
"column_names_row": 2,
"header":[
{"eccodes_key": "edition", "value": "const:4"},
{"eccodes_key": "masterTableNumber", "value": "const:0"},
{"eccodes_key": "bufrHeaderCentre", "value": "const:0"},
{"eccodes_key": "bufrHeaderSubCentre", "value": "const:0"},
{"eccodes_key": "updateSequenceNumber", "value": "const:0"},
{"eccodes_key": "dataCategory", "value": "const:0"},
{"eccodes_key": "internationalDataSubCategory", "value": "const:6"},
{"eccodes_key": "masterTablesVersionNumber", "value": "const:30"},
{"eccodes_key": "numberOfSubsets", "value": "const:1"},
{"eccodes_key": "observedData", "value": "const:1"},
{"eccodes_key": "compressedData", "value": "const:0"},
{"eccodes_key": "typicalYear", "value":"data:M_Year"},
{"eccodes_key": "typicalMonth", "value":"data:M_Month"},
{"eccodes_key": "typicalDay", "value":"data:M_DayOfMonth"},
{"eccodes_key": "typicalHour", "value":"data:M_HourOfDay"},
{"eccodes_key": "typicalMinute", "value":"data:M_Minutes"},
{"eccodes_key": "unexpandedDescriptors", "value": "array:301150,307096"}
],
"data": [
{"eccodes_key": "#1#wigosIdentifierSeries", "value":"data:_wsi_series"},
{"eccodes_key": "#1#wigosIssuerOfIdentifier", "value":"data:_wsi_issuer"},
{"eccodes_key": "#1#wigosIssueNumber", "value":"data:_wsi_issue_number"},
{"eccodes_key": "#1#wigosLocalIdentifierCharacter", "value":"data:_wsi_local"},
{"eccodes_key": "#1#stationOrSiteName", "value":"data:Station_Name"},
{"eccodes_key": "#1#stationType", "value":"data:WMO_Station_Type"},
{"eccodes_key": "#1#year", "value":"data:M_Year", "valid_min": "const:2000", "valid_max": "const:2100"},
{"eccodes_key": "#1#month", "value":"data:M_Month", "valid_min": "const:1", "valid_max": "const:12"},
{"eccodes_key": "#1#day", "value":"data:M_DayOfMonth", "valid_min": "const:1", "valid_max": "const:31"},
{"eccodes_key": "#1#hour", "value":"data:M_HourOfDay", "valid_min": "const:0", "valid_max": "const:23"},
{"eccodes_key": "#1#minute", "value":"data:M_Minutes", "valid_min": "const:0", "valid_max": "const:59"},
{"eccodes_key": "#1#latitude", "value":"data:Latitude", "valid_min": "const:-90", "valid_max": "const:90"},
{"eccodes_key": "#1#longitude", "value":"data:Longitude", "valid_min": "const:-180", "valid_max": "const:180"},
{"eccodes_key": "#1#heightOfStationGroundAboveMeanSeaLevel", "value":"data:Elevation"},
{"eccodes_key": "#1#heightOfBarometerAboveMeanSeaLevel", "value":"data:BP_Elevation"},
{"eccodes_key": "#1#nonCoordinatePressure", "value":"data:BP"},
{"eccodes_key": "#1#pressureReducedToMeanSeaLevel", "value":"data:QNH"},
{"eccodes_key": "#1#3HourPressureChange", "value":"data:BP_Change", "valid_min": "const:-5000", "valid_max": "const:5230"},
{"eccodes_key": "#1#characteristicOfPressureTendency", "value":"data:BP_Tendency"},
{"eccodes_key": "#1#heightOfSensorAboveLocalGroundOrDeckOfMarinePlatform", "value":"data:Temp_H"},
{"eccodes_key": "#1#airTemperature", "value":"data:AirTempK"},
{"eccodes_key": "#1#dewpointTemperature", "value":"data:DewPointTempK"},
{"eccodes_key": "#1#relativeHumidity", "value":"data:RH"},
{"eccodes_key": "#2#timePeriod", "value":"data:Sun_hr"},
{"eccodes_key": "#1#totalSunshine", "value":"data:SunHrs"},
{"eccodes_key": "#3#timePeriod", "value":"data:Sun_hr24"},
{"eccodes_key": "#2#totalSunshine", "value":"data:SunHrs24"},
{"eccodes_key": "#5#heightOfSensorAboveLocalGroundOrDeckOfMarinePlatform", "value":"data:Rain_H"},
{"eccodes_key": "#4#timePeriod", "value":"data:Rain_hr"},
{"eccodes_key": "#1#totalPrecipitationOrTotalWaterEquivalent", "value":"data:Rain_mm_Tot"},
{"eccodes_key": "#6#heightOfSensorAboveLocalGroundOrDeckOfMarinePlatform", "value":"data:Temp_H"},
{"eccodes_key": "#6#timePeriod", "value":"data:Temp_hr24"},
{"eccodes_key": "#7#timePeriod", "value":"data:Temp24T"},
{"eccodes_key": "#1#maximumTemperatureAtHeightAndOverPeriodSpecified", "value":"data:AirTempMaxK"},
{"eccodes_key": "#8#timePeriod", "value":"data:Temp_hr24"},
{"eccodes_key": "#9#timePeriod", "value":"data:Temp24T"},
{"eccodes_key": "#1#minimumTemperatureAtHeightAndOverPeriodSpecified", "value":"data:AirTempMinK"},
{"eccodes_key": "#7#heightOfSensorAboveLocalGroundOrDeckOfMarinePlatform", "value":"data:WSpeed_height"},
{"eccodes_key": "#1#instrumentationForWindMeasurement", "value":"data:Wind_Type"},
{"eccodes_key": "#1#timeSignificance", "value":"data:Wind_Sig"},
{"eccodes_key": "#10#timePeriod", "value":"data:Wind_T"},
{"eccodes_key": "#1#windDirection", "value":"data:WindDir"},
{"eccodes_key": "#1#windSpeed", "value":"data:WSpeed10M_Avg"},
{"eccodes_key": "#2#timeSignificance", "value":"data:WindG_Sig"},
{"eccodes_key": "#1#maximumWindGustSpeed", "value":"data:WindGust"},
{"eccodes_key": "#26#timePeriod", "value":"data:Solar_hr"},
{"eccodes_key": "#1#globalSolarRadiationIntegratedOverPeriodSpecified", "value":"data:SlrJ"},
{"eccodes_key": "#27#timePeriod", "value":"data:Solar_hr24"},
{"eccodes_key": "#2#globalSolarRadiationIntegratedOverPeriodSpecified", "value":"data:SlrJ24"}
]
}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
click
numpy==1.21.6
eccodes
jsonschema

0 comments on commit cf7e43f

Please sign in to comment.