Skip to content

Commit

Permalink
Updates to match IODA conventions. Changed units for timeOffset to s …
Browse files Browse the repository at this point in the history
…and added the conversion from hours, changed mesonetProvider to dataProviderOrigin, added dataProviderSubOrigin for mesonet as well, made various updates to unit labels to match the IODA convention.
  • Loading branch information
delippi committed Oct 23, 2024
1 parent 1ca44e8 commit 237b6ad
Show file tree
Hide file tree
Showing 12 changed files with 262 additions and 209 deletions.
50 changes: 27 additions & 23 deletions rrfs-test/IODA/yaml/prepbufr_adpsfc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
observations:
- obs space:
name: bufr
obsdatain: "./bufr/2024052700.rap.t00z.prepbufr.tm00"
obsdatain: "./bufr/prepbufr"

exports:
#group_by_variable: prepbufrDataLvlCat
Expand All @@ -20,9 +20,11 @@ observations:
timeOffset: "*/DHR"
transforms:
- scale: 3600
referenceTime: "2024-05-27T00:00:00Z"
referenceTime: "2022-05-26T19:00:00Z"
timeOffset:
query: "*/DHR"
transforms:
- scale: 3600
longitude:
query: "*/XOB"
latitude:
Expand All @@ -31,6 +33,7 @@ observations:
query: "*/SID"
stationElevation:
query: "*/ELV"
#type: float
prepbufrReportType:
query: "*/TYP"
dumpReportType:
Expand Down Expand Up @@ -59,6 +62,7 @@ observations:

heightOfObservation:
query: "*/Z___INFO/Z__EVENT{1}/ZOB"
#type: float
heightOfObservationQualityMark:
query: "*/Z___INFO/Z__EVENT{1}/ZQM"

Expand Down Expand Up @@ -180,7 +184,7 @@ observations:
coordinates: "longitude latitude"
source: variables/timeOffset
longName: "Observation Time Minus Reference Time"
units: "Hours"
units: "s"

- name: "MetaData/stationIdentification"
coordinates: "longitude latitude"
Expand All @@ -192,21 +196,21 @@ observations:
coordinates: "longitude latitude"
source: variables/longitude
longName: "Longitude"
units: "degrees_east"
units: "degree_east"
range: [0, 360]

- name: "MetaData/latitude"
coordinates: "longitude latitude"
source: variables/latitude
longName: "Latitude"
units: "degrees_north"
units: "degree_north"
range: [-90, 90]

- name: "MetaData/stationElevation"
coordinates: "longitude latitude"
source: variables/stationElevation
longName: "Elevation of Station"
units: "Meter"
units: "m"

- name: "MetaData/prepbufrReportType"
coordinates: "longitude latitude"
Expand Down Expand Up @@ -236,7 +240,7 @@ observations:
coordinates: "longitude latitude"
source: variables/heightOfObservation
longName: "Height"
units: "Meter"
units: "m"

- name: "MetaData/pressure"
coordinates: "longitude latitude"
Expand Down Expand Up @@ -286,25 +290,25 @@ observations:
coordinates: "longitude latitude"
source: variables/airTemperature
longName: "Temperature"
units: "Kelvin"
units: "K"

- name: "ObsValue/dewpointTemperature"
coordinates: "longitude latitude"
source: variables/dewpointTemperature
longName: "Dewpoint Temperature"
units: "Kelvin"
units: "K"

- name: "ObsValue/windEastward"
coordinates: "longitude latitude"
source: variables/windEastward
longName: "Eastward Wind"
units: "Meter Second-1"
units: "m s-1"

- name: "ObsValue/windNorthward"
coordinates: "longitude latitude"
source: variables/windNorthward
longName: "Northward Wind"
units: "Meter Second-1"
units: "m s-1"

- name: "ObsValue/stationPressure"
coordinates: "longitude latitude"
Expand All @@ -322,19 +326,19 @@ observations:
coordinates: "longitude latitude"
source: variables/seaTemperature
longName: "Sea Temperature"
units: "Kelvin"
units: "K"

- name: "ObsValue/depthBelowSeaSurface"
coordinates: "longitude latitude"
source: variables/depthBelowSeaSurface
longName: "Depth Below Sea Surface"
units: "Meter"
units: "m"

- name: "ObsValue/heightOfWaves"
coordinates: "longitude latitude"
source: variables/heightOfWaves
longName: "Height of Waves"
units: "Meter"
units: "m"

- name: "ObsValue/presentWeather"
coordinates: "longitude latitude"
Expand All @@ -345,7 +349,7 @@ observations:
coordinates: "longitude latitude"
source: variables/maximumWindGustSpeed
longName: "Maximum Wind Gust Speed"
units: "Meter Second-1"
units: "m s-1"

- name: "ObsValue/verticalSignificance"
coordinates: "longitude latitude"
Expand All @@ -361,7 +365,7 @@ observations:
coordinates: "longitude latitude"
source: variables/heightOfBaseOfCloud
longName: "Height of Base of Cloud"
units: "Meter"
units: "m"

- name: "ObsValue/cloudCoverTotal"
coordinates: "longitude latitude"
Expand Down Expand Up @@ -432,25 +436,25 @@ observations:
coordinates: "longitude latitude"
source: variables/airTemperatureError
longName: "Temperature Error"
units: "Kelvin"
units: "K"

- name: "ObsError/windEastward"
coordinates: "longitude latitude"
source: variables/windError
longName: "Eastward wind error"
units: "Meter Second-1"
units: "m s-1"

- name: "ObsError/windNorthward"
coordinates: "longitude latitude"
source: variables/windError
longName: "Northward wind error"
units: "Meter Second-1"
units: "m s-1"

- name: "ObsError/seaTemperature"
coordinates: "longitude latitude"
source: variables/seaTemperatureError
longName: "Sea Temperature Observation Error"
units: "Kelvin"
units: "K"

# # Tuned ObsError
# - name: "TunedObsError/stationPressure"
Expand All @@ -469,16 +473,16 @@ observations:
# coordinates: "longitude latitude"
# source: variables/airTemperatureTunedError
# longName: "Analysis-Tuned Temperature Error"
# units: "Kelvin"
# units: "K"
#
# - name: "TunedObsError/windEastward"
# coordinates: "longitude latitude"
# source: variables/windTunedError
# longName: "Analysis-Tuned Eastward wind error"
# units: "Meter Second-1"
# units: "m s-1"
#
# - name: "TunedObsError/windNorthward"
# coordinates: "longitude latitude"
# source: variables/windTunedError
# longName: "Analysis-Tuned Northward wind error"
# units: "Meter Second-1"
# units: "m s-1"
38 changes: 21 additions & 17 deletions rrfs-test/IODA/yaml/prepbufr_adpupa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
observations:
- obs space:
name: bufr
obsdatain: "./bufr/2024052700.rap.t00z.prepbufr.tm00"
obsdatain: "./bufr/prepbufr"

exports:
group_by_variable: prepbufrDataLvlCat
Expand Down Expand Up @@ -38,9 +38,11 @@ observations:
timeOffset: "*/PRSLEVEL/DRFTINFO/HRDR"
transforms:
- scale: 3600
referenceTime: "2024-05-27T00:00:00Z"
referenceTime: "2022-05-26T19:00:00Z"
timeOffset:
query: "*/PRSLEVEL/DRFTINFO/HRDR"
transforms:
- scale: 3600
longitude:
query: "*/PRSLEVEL/DRFTINFO/XDR"
latitude:
Expand All @@ -49,6 +51,7 @@ observations:
query: "*/SID"
stationElevation:
query: "*/ELV"
#type: float
prepbufrReportType:
query: "*/TYP"
dumpReportType:
Expand All @@ -73,6 +76,7 @@ observations:

heightOfObservation:
query: "*/PRSLEVEL/Z___INFO/Z__EVENT{1}/ZOB"
#type: float
heightOfObservationQualityMark:
query: "*/PRSLEVEL/Z___INFO/Z__EVENT{1}/ZQM"

Expand Down Expand Up @@ -155,7 +159,7 @@ observations:
coordinates: "longitude latitude"
source: variables/timeOffset
longName: "Observation Time Minus Reference Time"
units: "Hours"
units: "s"

- name: "MetaData/stationIdentification"
coordinates: "longitude latitude"
Expand All @@ -167,21 +171,21 @@ observations:
coordinates: "longitude latitude"
source: variables/longitude
longName: "Longitude"
units: "degrees_east"
units: "degree_east"
range: [0, 360]

- name: "MetaData/latitude"
coordinates: "longitude latitude"
source: variables/latitude
longName: "Latitude"
units: "degrees_north"
units: "degree_north"
range: [-90, 90]

- name: "MetaData/stationElevation"
coordinates: "longitude latitude"
source: variables/stationElevation
longName: "Elevation of Station"
units: "Meter"
units: "m"

- name: "MetaData/prepbufrReportType"
coordinates: "longitude latitude"
Expand All @@ -206,7 +210,7 @@ observations:
coordinates: "longitude latitude"
source: variables/heightOfObservation
longName: "Height"
units: "Meter"
units: "m"

- name: "MetaData/pressure"
coordinates: "longitude latitude"
Expand Down Expand Up @@ -250,25 +254,25 @@ observations:
coordinates: "longitude latitude"
source: variables/airTemperature
longName: "Temperature"
units: "Kelvin"
units: "K"

- name: "ObsValue/dewpointTemperature"
coordinates: "longitude latitude"
source: variables/dewpointTemperature
longName: "Dewpoint Temperature"
units: "Kelvin"
units: "K"

- name: "ObsValue/windEastward"
coordinates: "longitude latitude"
source: variables/windEastward
longName: "Eastward Wind"
units: "Meter Second-1"
units: "m s-1"

- name: "ObsValue/windNorthward"
coordinates: "longitude latitude"
source: variables/windNorthward
longName: "Northward Wind"
units: "Meter Second-1"
units: "m s-1"

# Quality Marker
- name: "QualityMarker/pressure"
Expand Down Expand Up @@ -318,19 +322,19 @@ observations:
coordinates: "longitude latitude"
source: variables/airTemperatureError
longName: "Temperature Error"
units: "Kelvin"
units: "K"

- name: "ObsError/windEastward"
coordinates: "longitude latitude"
source: variables/windError
longName: "Eastward wind error"
units: "Meter Second-1"
units: "m s-1"

- name: "ObsError/windNorthward"
coordinates: "longitude latitude"
source: variables/windError
longName: "Northward wind error"
units: "Meter Second-1"
units: "m s-1"

# # Tuned ObsError
# - name: "TunedObsError/pressure"
Expand All @@ -349,16 +353,16 @@ observations:
# coordinates: "longitude latitude"
# source: variables/airTemperatureTunedError
# longName: "Analysis-Tuned Temperature Error"
# units: "Kelvin"
# units: "K"
#
# - name: "TunedObsError/windEastward"
# coordinates: "longitude latitude"
# source: variables/windTunedError
# longName: "Analysis-Tuned Eastward wind error"
# units: "Meter Second-1"
# units: "m s-1"
#
# - name: "TunedObsError/windNorthward"
# coordinates: "longitude latitude"
# source: variables/windTunedError
# longName: "Analysis-Tuned Northward wind error"
# units: "Meter Second-1"
# units: "m s-1"
Loading

0 comments on commit 237b6ad

Please sign in to comment.