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 BUFR file creation script and fix unit test bug in test_get_bufr.py #263

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Commits on Jul 8, 2024

  1. Fixed bug in get_bufr

    Configuration variables were to strictly validated.
    * Made bufr_integration_test explicit
    ladsmund committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    6057f0f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    240e3f0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ad2cb26 View commit details
    Browse the repository at this point in the history
  4. Made bufr_to_csv as cli script in setup.py

    * Updated read_bufr_file to use wmo_id as index
    ladsmund committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    8583592 View commit details
    Browse the repository at this point in the history
  5. Added script to recreate bufr files

    * Added corresponding unit tests
    * Added flag to raise exceptions on errors
    * Added create_bufr_files.py to setup
    ladsmund committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    48574ea View commit details
    Browse the repository at this point in the history
  6. Updated get_bufr to use constant values for sensor heights

    The sonic ranger based heights are very unstable. DMI are using constant values for their weather stations in Greenland without considering snow cover.
    
    Updated unittests to align with the new output dimensions
    Updated test_get_bufr_integration.py
    ladsmund committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    776d66b View commit details
    Browse the repository at this point in the history
  7. Added test for missing data in get_bufr

    - Ensure get_bufr_variables raises AttributeError when station dimensions are missing
    ladsmund committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    116af04 View commit details
    Browse the repository at this point in the history
  8. Updated get_bufr to support static GPS heights.

    * Bedrock stations shouldn’t depend on the noisy GPS signal for elevation.
    * Added station dimension values for WEG_B
    * Added corresponding unittest
    ladsmund committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    0f97a28 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Updated github/workflow to run unittests

    Added eccodes installation
    ladsmund committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9596b82 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a56d0b1 View commit details
    Browse the repository at this point in the history
  3. Extracted StationConfiguration utils from get_bufr

    * Added support for loading multiple station configuration files
    
    Other
    * Made ArgumentParser instantiation inline
    ladsmund committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    7bb0ef6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b31f772 View commit details
    Browse the repository at this point in the history
  5. Fixed test utility function get_station_configuration to create valid…

    … wmo_id
    
    Updated bufr_utilities.set_station to validate wmo id
    ladsmund committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    9979847 View commit details
    Browse the repository at this point in the history
  6. Updated BUFRVariables with scales and descriptions

    * Added detailed descriptions with references to the attributes in BUFRVariables
    * Change the attribute order to align with the exported schema
    * Changed variable roundings to align with the scales defined in the BUFR schemas:
      * Latitude and longitude is set to 5. Was 6
      * heightOfStationGroundAboveMeanSeaLevel is set to 1. Was 2
      * heightOfBarometerAboveMeanSeaLevel is set to to 1. Was 2
      * pressure is set to -1. Was 1. Note: The BUFRVariable unit is Pa and not hPA
      * airTemperature is set to 2. Was 1.
      * heightOfSensorAboveLocalGroundOrDeckOfMarinePlatformTempRH is set to 2. Was 4
      * heightOfSensorAboveLocalGroundOrDeckOfMarinePlatformWSPD is set to 2. Was 4
     * Added unit tests to test the roundings
    * Updated existing unit tests to align with corrected precision
    ladsmund committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    5fad06b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0c3fcd5 View commit details
    Browse the repository at this point in the history