-
Notifications
You must be signed in to change notification settings - Fork 164
Initial IODA to obs_seq.out file converter #936
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c81621e
Initial python framework for pyjedi utilities. Initial ioda2df functi…
srherbener 2caeeb4
Added buildObsSeqFromObsqDF function to the pyjedi package. This cons…
srherbener 0f241d9
Merge remote-tracking branch 'ncar/python-packages' into feature/py-i…
srherbener 7a990e2
WIP: ioda dateTime to obs_seq (seconds, days, time) conversion is wor…
srherbener e64d0d8
Merge remote-tracking branch 'ncar/python-packages' into feature/py-i…
srherbener ea95453
WIP: simple radiosonde example is working! Need to make the code more…
srherbener d5f4280
WIP: Simple radiosonde example is producing a file. First step is to …
srherbener 30da652
Merge remote-tracking branch 'ncar/main' into feature/py-ioda-reader
srherbener 4726f7a
Added YAML configuration, made ioda dataframe processing code more ge…
srherbener a9346cc
Put in dataframe filter that removes rows where the observation value…
srherbener 4225e59
Added a simple test for the ioda2obsq converter
srherbener 72a7afb
Updated documentation (README.md file) and added timestamp columns to…
srherbener e092cfd
Merge remote-tracking branch 'ncar/main' into feature/py-ioda-reader
srherbener c26c4cf
Repaired python packaging according to review comments.
srherbener 1b935c5
Changed the YAML control "assim variables" to "observation variables".
srherbener e995ee3
Removed partial python unit test. (will add back in later)
srherbener 817be57
Added documentation for ioda2obsq in the RTD guide.
srherbener 6ba8a95
bump version and changelog for release
hkershaw-brown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| -e ./pyqceff | ||
| -e ./pyjedi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # pyjedi | ||
|
|
||
| Python package for JEDI utilities. | ||
|
|
||
| ## Installation | ||
|
|
||
| To install `pyjedi` in editable/development mode using pip: | ||
|
|
||
| ```sh | ||
| pip install -e DART/pytools/pyjedi | ||
| ``` | ||
|
|
||
| where DART is the path to DART. | ||
|
|
||
| > **Note:** If you update DART with `git pull`, using the editable install (`pip install -e DART/pytools/pyjedi`) ensures your installed package always matches the latest source code. | ||
|
|
||
|
|
||
| ## Usage | ||
|
|
||
| After installation, you can use the `ioda2obsq` script to convert a IODA observation file into a DART obs_seq.out file: | ||
|
|
||
| ```sh | ||
| ioda2obsq yamlConfigFile inputIodaFile outputObsqFile | ||
| ``` | ||
|
|
||
| To view the help | ||
| ```sh | ||
| ioda2obsq -h | ||
| ``` | ||
|
|
||
| The yamConfigFile is used to tell ioda2obsq which variables, and their type, from the input IODA file to convert, as well as define the vertical coordinate. | ||
| Here is a sample from the radiosonde test case: | ||
| ```yaml | ||
| --- | ||
|
|
||
| ioda to obsq converter: | ||
| observation variables: | ||
| - name: airTemperature | ||
| type: RADIOSONDE_TEMPERATURE | ||
| - name: specificHumidity | ||
| type: RADIOSONDE_SPECIFIC_HUMIDITY | ||
| - name: windEastward | ||
| type: RADIOSONDE_U_WIND_COMPONENT | ||
| - name: windNorthward | ||
| type: RADIOSONDE_V_WIND_COMPONENT | ||
|
|
||
| vertical coordinate: | ||
| name: MetaData/height | ||
| units: "height (m)" | ||
| ``` | ||
|
|
||
| Note "observation variables" is the list of variables you intend to assimilate in the DA job. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=61.0"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "pyjedi" | ||
| version = "0.1.0" | ||
| description = "Python package for JEDI utilities." | ||
| authors = [ | ||
| { name = "DART", email = "[email protected]" } | ||
| ] | ||
| readme = "README.md" | ||
| requires-python = ">=3.8" | ||
| license = { text = "Apache-2.0" } | ||
| classifiers = [ | ||
| "Programming Language :: Python :: 3", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "Operating System :: OS Independent", | ||
| ] | ||
| dependencies = [ | ||
| "numpy", | ||
| "pandas>=2.2.0", | ||
| "PyYAML", | ||
| "netCDF4", | ||
| "pydartdiags>=0.6.1", | ||
| ] | ||
|
|
||
| [project.scripts] | ||
| ioda2obsq = "pyjedi.ioda2obsq:main" | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/NCAR/DART" | ||
| Repository = "https://github.com/NCAR/DART" | ||
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.