Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ctest to convert bufr to ioda for adpsfc snow. #533

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ list(APPEND test_input
${PROJECT_SOURCE_DIR}/test/testinput/check_yaml_keys_ref.yaml
${PROJECT_SOURCE_DIR}/test/testinput/check_yaml_keys_test.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_adpsfc.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_adpsfc_snow.yaml
${PROJECT_SOURCE_DIR}/test/testinput/amsua_n19_ewok.yaml
${PROJECT_SOURCE_DIR}/test/testinput/temp_bufr_dbuoyprof.yaml
${PROJECT_SOURCE_DIR}/test/testinput/salt_bufr_dbuoyprof.yaml
Expand Down
5 changes: 5 additions & 0 deletions test/land/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ set_tests_properties(test_gdasapp_land_letkfoi_snowda
PROPERTIES
ENVIRONMENT "GDASAPP_TESTDATA=$ENV{GDASAPP_TESTDATA}")

# Test convert BUFR to IODA
add_test(NAME test_gdasapp_convert_bufr_adpsfc_snow
COMMAND ${PROJECT_SOURCE_DIR}/test/soca/test_bufr2ioda.sh ${PROJECT_BINARY_DIR} bufr_adpsfc_snow
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/)

85 changes: 85 additions & 0 deletions test/testinput/bufr_adpsfc_snow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# (C) Copyright 2021-2022 NOAA/NWS/NCEP/EMC
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.

observations:
- obs space:
name: bufr

obsdatain: "./testdata/gdas.t06z.adpsfc.tm00.bufr_d"

exports:
variables:
# MetaData
timestamp:
datetime:
year: "*/YEAR[1]"
month: "*/MNTH[1]"
day: "*/DAYS[1]"
hour: "*/HOUR[1]"
minute: "*/MINU[1]"
latitude:
query: "[*/CLAT, */CLATH]"
longitude:
query: "[*/CLON, */CLONH]"
stationIdentification:
query: "*/RPID"

height:
query: "[*/SELV, */HSMSL]"

# ObsValue
totalSnowDepth:
query: "[*/SNWSQ1/TOSD, */MTRMSC/TOSD, */STGDSNDM/TOSD]"
transforms:
- scale: 1000.0
filters:
- bounding:
variable: totalSnowDepth
upperBound: 10000000

ioda:
backend: netcdf
obsdataout: "./testoutput/gdas.t06z.adpsfc_snow.nc"

variables:

# MetaData
- name: "MetaData/dateTime"
coordinates: "longitude latitude"
source: variables/timestamp
longName: "Datetime"
units: "seconds since 1970-01-01T00:00:00Z"

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

- name: "MetaData/longitude"
coordinates: "longitude latitude"
source: variables/longitude
longName: "Longitude"
units: "degree_east"
range: [-180, 180]

- name: "MetaData/height"
coordinates: "longitude latitude"
source: variables/height
longName: "Height of Station"

- name: "MetaData/stationIdentification"
coordinates: "longitude latitude"
source: variables/stationIdentification
longName: "Identification of Observing Location"
units: "m"

# ObsValue
- name: "ObsValue/totalSnowDepth"
coordinates: "longitude latitude"
source: variables/totalSnowDepth
longName: "Total Snow Depth"
units: "mm"
Loading