question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Code Table

See original GitHub issue

Hello,

Is it possible to load a custom code table for use when opening a Grib dataset with Xarray? I can’t seem to find an example of how that would be done. I’d imagine something like this:

ds = xr.open_dataset(
    "/path/to/grb",
     engine="cfgrib", 
    backend_kwargs={"code_table": "/path/to/codetab"}
) 

Thanks! Paul

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pgierzcommented, May 19, 2022

@aaronspring, in general I agree: how we actually do it isn’t so important. It would IMO be nice to be able to provide the community with some sort of easy-to-use solution (and more importantly, easy-to-discover!); but I believe the topic we have specifically in mind (e.g. GRB, CDO, and related code tables) is out of scope here. To work on the xarray extension idea, I started https://github.com/pydata/xarray/discussions/6622. Also, if there any “let’s make climate model output more friendly” meetings you are involved in, please let me know! pgierz@awi.de

So, if no one minds, I will close this issue. There is enough posted info I believe for other people who might stumble across this to get started.

0reactions
aaronspringcommented, May 19, 2022

Whether using a function or wrapping it with the internals, I don’t mind. The function needs an xr.Dataset and the path to the codes file as input IMO.

Recently had chat with @moritz-g about this topic and we decided it’s not a priority for us, but would contribute.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a custom table using code - Dataverse - Microsoft Learn
This topic shows how to programmatically create a custom user-owned table (entity) called Bank Account and add four different types of columns ( ......
Read more >
SAP Custom Code Tables: Your One-Stop Reference List
# TABLE Functional Area Table Type 1 MARA Logistics ‑ Material Master Transparent Table 2 VBAK SD ‑ Sales Transparent Table 3 VBAP SD ‑ Sales...
Read more >
HTML Tables: When to Use Them and How to Make & Edit Them
Learn how to make and edit a table in HTML so you can present data that's too detailed or complicated for text on...
Read more >
HTML Tables - W3Schools
HTML tables allow web developers to arrange data into rows and columns. ... A table in HTML consists of table cells inside rows...
Read more >
Transaction code for custom table - SAP Community
I have to create transaction code for this table so that user can directly open this custom table in SM30. Can anybody suggest...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found