8000 Quick fixes for DWD data (file not found & model level) by bjoern-reetz · Pull Request #55 · ecmwf/skinnywms · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Quick fixes for DWD data (file not found & model level) #55

New issue
8000

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 1 commit into from
Jun 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion skinnywms/fields/GRIBField.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def get_fields(self):
# and will be diplayed together with their companion
companionfields = {item.companion for item in fields if not item.companion is None}
for gribfield in companionfields:
fields.remove(gribfield)
if gribfield in fields:
fields.remove(gribfield)

if not fields:
raise Exception("GRIBReader no 2D fields found in %s", self.path)
Expand Down
1 change: 1 addition & 0 deletions skinnywms/grib_bindings/GribField.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def coordinates(self, grib, coords, combine_order, attributes, dims):
103: SingleLevel(), # 103 sfc Specified height level above ground (m)
106: SingleLevel(), # 106 sfc Depth below land surface (m)
111: ModelLevel(), # 111 ml Eta level
150: ModelLevel(), # 150 dwd model level
}

LEVEL_TYPES = {"pl": PressureLevel(), "sfc": SingleLevel(), "ml": ModelLevel()}
Expand Down
0