Skip to content

Enhance to use variable name instead of grib code for point2grid #1408

@hsoh-u

Description

@hsoh-u

Describe the Enhancement

ascii2nc generates the output with grib code for some data set (like little_r input). It would be nice to convert the grid code the variable name by using the configuration file like point2grid does

point2grid ascii2nc_output_from_little_r G212 -field 'name="TMP"; level="(*)";'

point2grid does not find "TMP" values because the temperature data saved with the grib code "11". The point2grid has a mapping between the grib code and the variable name. If there is no data from the variable name, point2grid can collect the obs data by using the grib code the var_name_map.

For above case:

  • Collect data by using variable name
  • If no data and the input data uses the GRIB code, find the matching GRIB code from var_name_map.
  • If the matching GRIB code exists, collect data by using the GRIB code.

default configuration for point2grid:
var_name_map = [
{ key = "1"; val = "PRES"; }, // GRIB: Pressure
{ key = "2"; val = "PRMSL"; }, // GRIB: Pressure reduced to MSL
{ key = "7"; val = "HGT"; }, // GRIB: Geopotential height
{ key = "11"; val = "TMP"; }, // GRIB: Temperature
...
]

Time Estimate

1 or 2 days

Sub-Issues

Consider breaking the enhancement down into sub-issues.

  • Add a checkbox for each sub-issue here.

Relevant Deadlines

NONE.

Funding Source

NONE.

Define the Metadata

Assignee

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

Labels

  • Select component(s)
  • Select priority
  • Select requestor(s)

Projects and Milestone

  • Review projects and select relevant Repository and Organization ones
  • Select milestone

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.
  • Fork this repository or create a branch of develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the development and test your changes.
  • 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>
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions