When attempting to use the wgrib2 wrapper to create a regional subset, error 127 with wgrib2 #413
Unanswered
froggyman0010
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am attempting to follow the tutorial for the wgrib2 wrapper and am running into issues, even with the same search string and parameters set in the tutorial. I am using google collab and wondering if this is a dependency issue on my end? I am an undergraduate student and new to programming as of this year so I would appreciate any advice and I apologize for the inconvenience. the code output is shown below `✅ Found ┊ model=hrrr ┊ product=sfc ┊ 2023-Feb-01 00:00 UTC F00 ┊ GRIB2 @ aws ┊ IDX @ aws
👨🏻🏭 Created directory: [/root/data/hrrr/20230201]
CalledProcessError Traceback (most recent call last)
in <cell line: 0>()
9
10 # Retrieve and print the inventory of the GRIB2 file
---> 11 inventory = wgrib2.inventory(grib2_file)
12 print(inventory)
13
2 frames
/usr/local/lib/python3.11/dist-packages/herbie/wgrib2.py in inventory(self, FILE)
53 """Return wgrib2-style inventory of GRIB2 file."""
54 cmd = f"{self.wgrib2} -s {Path(FILE).expand()}"
---> 55 return run_command(cmd)
56
57 def create_inventory_file(self, path, suffix=".grib2"):
/usr/local/lib/python3.11/dist-packages/herbie/wgrib2.py in run_command(cmd)
34
35 def run_command(cmd):
---> 36 p = subprocess.run(
37 cmd,
38 shell=True,
/usr/lib/python3.11/subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
569 retcode = process.poll()
570 if check and retcode:
--> 571 raise CalledProcessError(retcode, process.args,
572 output=stdout, stderr=stderr)
573 return CompletedProcess(process.args, retcode, stdout, stderr)
CalledProcessError: Command 'None -s /root/data/hrrr/20230201/subset_d7ef391b__hrrr.t00z.wrfsfcf00.grib2' returned non-zero exit status 127.
`
Beta Was this translation helpful? Give feedback.
All reactions