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

image data index deprecation error #197

Open
scotthavens opened this issue Nov 17, 2020 · 0 comments
Open

image data index deprecation error #197

scotthavens opened this issue Nov 17, 2020 · 0 comments

Comments

@scotthavens
Copy link
Contributor

When running with HRRR data, getting an error from pandas.

  File "smrf/distribute/image_data.py", line 227, in _distribute
    data = data[self.stations]
<more traceback>
    "Passing list-likes to .loc or [] with any missing labels "
KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported. The following labels were missing: Index(['grid_96000_27000', 'grid_99000_15000'], dtype='object'). See https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike"

Appears that the way image_data is selecting with missing columns.

scotthavens pushed a commit that referenced this issue Nov 18, 2020
…om the cropping. Check for those values and remove prior to interpolation, fix #197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant