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

Update PlotObs for time and station dimension naming #1259

Merged
merged 1 commit into from Dec 30, 2019

Conversation

kgoebber
Copy link
Collaborator

@kgoebber kgoebber commented Dec 27, 2019

Description Of Changes

In further testing of reading a data file of METAR with the new parser functionality, the naming convention used in that portion of the code was not captured in the declarative plotting code for the time dimension name and the station dimension name. I've added a few other options and made the loop-up more robust. In addition, I raise an AttributeError if one is not found in the set list. It is relatively easy to remedy if a data frame does not contain the right name by either re-naming a column or creating a new column with one of the names. With the latest additions we cover what I know to be the most common names from the available data sources. This could likely be made more robust in the future, but without a CF convention used for surface observation data, it will be a larger lift.

Added some tests to cover new functionality.

@kgoebber
Copy link
Collaborator Author

Fixed a few lint issues and removed some accidental commits from the METAR PR that was submitted earlier.

Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need a docstring update.

tests/plots/test_declarative.py Outdated Show resolved Hide resolved
@dopplershift dopplershift added this to the 0.12 milestone Dec 30, 2019
@dopplershift dopplershift added Area: Plots Pertains to producing plots Type: Enhancement Enhancement to existing functionality labels Dec 30, 2019
@kgoebber
Copy link
Collaborator Author

Okay, all updated. Note, I found another small comment that I updated in the declarative around reducing the points for plotting. Only took our '300km' since that was from old code and not always reducing by that specific radius.

Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good pending CI.

@dopplershift
Copy link
Member

Ignoring Codacy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Plots Pertains to producing plots Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants