Skip to content

Add new Python functionality to convert MET netcdf observation data to a Pandas DataFrame #2781

@DanielAdriaansen

Description

@DanielAdriaansen

For dtcenter/METplus#2390, users want to use ADPUPA data (radiosondes/soundings). These data are typically available in PREPBUFR format, which can be read by PB2NC. However, the output from PB2NC is not suitable for a user to interact with in a Python embedding script. This work is to add new functionality to the MET Python "module" https://github.com/dtcenter/MET/tree/main_v11.1/scripts/python/met point class to have the ability to receive a MET observation netcdf file (or an Xarray Dataset/DataArray?) and return a Pandas DataFrame object for the user. Functionality already exists to go from the MET 11-column format to the MET observation format (convert_point_data,

def convert_point_data(self):
), this is effectively asking for the reverse except the object returned to the user is a Pandas DataFrame and not the 11-column "list of lists".

Time Estimate

2-3 days

Sub-Issues

Consider breaking the enhancement down into sub-issues.

  • Add a checkbox for each sub-issue here.

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

Primary 7790111 (CLASP), secondary 7750034 (UAlbany-NCAR METplus JTTI)

Define the Metadata

Assignee

  • Select engineer(s) or no engineer required
  • Select scientist(s) or no scientist required

Labels

  • Review default alert labels
  • Select component(s)
  • Select priority
  • Select requestor(s)

Milestone and Projects

  • Select Milestone as the next official version or Backlog of Development Ideas
  • For the next official version, select the MET-X.Y.Z Development project

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

  • Complete the issue definition above, including the Time Estimate and Funding Source.
  • Fork this repository or create a branch of develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the development and test your changes.
  • Add/update log messages for easier debugging.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into develop.
    Pull request: feature <Issue Number> <Description>
  • Define the pull request metadata, as permissions allow.
    Select: Reviewer(s) and Development issue
    Select: Milestone as the next official version
    Select: MET-X.Y.Z Development project for development toward the next official release
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions