Skip to content

Commit

Permalink
Satwnd and variable name-convention updates for jcb implementation in…
Browse files Browse the repository at this point in the history
… GDASApp (#1119)

Updates to file- and variable-name conventions in satellite wind
assimilation for GDASApp end-to-end validation. The following name
conventions have been changed:

1) `satwind` --> `satwnd`, this affects file-names and keeps the use of
satwnd consistent across the entire GDASApp end-to-end validation system
2) `qualityInformationWithoutForecast` --> `qiWithoutForecast`,
variable-name change to make QI variable compliant with JCSDA/ioda
ObsSpace.yaml

This PR is dependent on NOAA-EMC/jcb-gdas#7 for
name-convention updates to QC YAMLs. No changes to UFO/GSI acceptance
are detected in testing with the exception of a single-ob differences
from (relatively old) prior tests.

---------

Co-authored-by: Brett Hoover <bhoover@Orion-login-1.HPC.MsState.Edu>
  • Loading branch information
BrettHoover-NOAA and Brett Hoover authored May 21, 2024
1 parent 41493ad commit ad43694
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,25 +391,15 @@ def bufr_to_ioda(config, logger):
.write_data(ogce2)

# Quality: Percent Confidence - Quality Information Without Forecast
obsspace.create_var('MetaData/qualityInformationWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'Quality Information Without Forecast') \
obsspace.create_var('MetaData/qiWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'QI Without Forecast') \
.write_data(qifn2)

# Wind Computation Method
obsspace.create_var('MetaData/windComputationMethod', dtype=swcm2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Satellite-derived Wind Computation Method') \
.write_data(swcm2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# Pressure
obsspace.create_var('MetaData/pressure', dtype=pressure2.dtype, fillval=pressure2.fill_value) \
.write_attr('units', 'pa') \
Expand All @@ -428,6 +418,16 @@ def bufr_to_ioda(config, logger):
.write_attr('long_name', 'Station Elevation') \
.write_data(stnelev2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# U-Wind Component
obsspace.create_var('ObsValue/windEastward', dtype=uob2.dtype, fillval=wspd2.fill_value) \
.write_attr('units', 'm s-1') \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,25 +386,15 @@ def bufr_to_ioda(config, logger):
.write_data(ogce2)

# Quality: Percent Confidence - Quality Information Without Forecast
obsspace.create_var('MetaData/qualityInformationWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'Quality Information Without Forecast') \
obsspace.create_var('MetaData/qiWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'QI Without Forecast') \
.write_data(qifn2)

# Wind Computation Method
obsspace.create_var('MetaData/windComputationMethod', dtype=swcm2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Satellite-derived Wind Computation Method') \
.write_data(swcm2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# Pressure
obsspace.create_var('MetaData/pressure', dtype=pressure2.dtype, fillval=pressure2.fill_value) \
.write_attr('units', 'pa') \
Expand All @@ -423,6 +413,16 @@ def bufr_to_ioda(config, logger):
.write_attr('long_name', 'Station Elevation') \
.write_data(stnelev2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# U-Wind Component
obsspace.create_var('ObsValue/windEastward', dtype=uob2.dtype, fillval=uob2.fill_value) \
.write_attr('units', 'm s-1') \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ def bufr_to_ioda(config, logger):
.write_data(ogce2)

# Quality: Percent Confidence - Quality Information Without Forecast
obsspace.create_var('MetaData/qualityInformationWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'Quality Information Without Forecast') \
obsspace.create_var('MetaData/qiWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'QI Without Forecast') \
.write_data(qifn2)

# Quality: Percent Confidence - Expected Error
Expand All @@ -408,16 +408,6 @@ def bufr_to_ioda(config, logger):
.write_attr('long_name', 'Wind Height Assignment Method') \
.write_data(eham2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# Pressure
obsspace.create_var('MetaData/pressure', dtype=pressure2.dtype, fillval=pressure2.fill_value) \
.write_attr('units', 'pa') \
Expand All @@ -436,6 +426,16 @@ def bufr_to_ioda(config, logger):
.write_attr('long_name', 'Station Elevation') \
.write_data(stnelev2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# U-Wind Component
obsspace.create_var('ObsValue/windEastward', dtype=uob2.dtype, fillval=wspd2.fill_value) \
.write_attr('units', 'm s-1') \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def bufr_to_ioda(config, logger):
.write_data(ogce2)

# Quality: Percent Confidence - Quality Information Without Forecast
obsspace.create_var('MetaData/qualityInformationWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
obsspace.create_var('MetaData/qiWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'Quality Information Without Forecast') \
.write_data(qifn2)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ def bufr_to_ioda(config, logger):
.write_data(ogce2)

# Quality: Percent Confidence - Quality Information Without Forecast
obsspace.create_var('MetaData/qualityInformationWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'Quality Information Without Forecast') \
obsspace.create_var('MetaData/qiWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'QI Without Forecast') \
.write_data(qifn2)

# Wind Computation Method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,25 +364,15 @@ def bufr_to_ioda(config, logger):
.write_data(ogce2)

# Quality: Percent Confidence - Quality Information Without Forecast
obsspace.create_var('MetaData/qualityInformationWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'Quality Information Without Forecast') \
obsspace.create_var('MetaData/qiWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'QI Without Forecast') \
.write_data(qifn2)

# Wind Computation Method
obsspace.create_var('MetaData/windComputationMethod', dtype=swcm2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Satellite-derived Wind Computation Method') \
.write_data(swcm2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# Pressure
obsspace.create_var('MetaData/pressure', dtype=pressure2.dtype, fillval=pressure2.fill_value) \
.write_attr('units', 'pa') \
Expand All @@ -401,6 +391,16 @@ def bufr_to_ioda(config, logger):
.write_attr('long_name', 'Station Elevation') \
.write_data(stnelev2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windEastward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# ObsType based on computation method/spectral band
obsspace.create_var('ObsType/windNorthward', dtype=obstype2.dtype, fillval=swcm2.fill_value) \
.write_attr('long_name', 'Observation Type based on Satellite-derived Wind Computation Method and Spectral Band') \
.write_data(obstype2)

# U-Wind Component
obsspace.create_var('ObsValue/windEastward', dtype=uob2.dtype, fillval=wspd2.fill_value) \
.write_attr('units', 'm s-1') \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ def bufr_to_ioda(config, logger):
.write_data(ogce2)

# Quality: Percent Confidence - Quality Information Without Forecast
obsspace.create_var('MetaData/qualityInformationWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'Quality Information Without Forecast') \
obsspace.create_var('MetaData/qiWithoutForecast', dtype=qifn2.dtype, fillval=qifn2.fill_value) \
.write_attr('long_name', 'QI Without Forecast') \
.write_data(qifn2)

# Wind Computation Method
Expand Down

0 comments on commit ad43694

Please sign in to comment.