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

Error for Query @[0] > 005002 #37

Open
duyukof opened this issue Aug 14, 2024 · 3 comments
Open

Error for Query @[0] > 005002 #37

duyukof opened this issue Aug 14, 2024 · 3 comments

Comments

@duyukof
Copy link

duyukof commented Aug 14, 2024

Hello,

I have successfully installed the code, and can decode the ECMWF 'tropical_cyclone.bufr' sample file within Windows 'cmd' or powershell. However, when I run the command 'pybufrkit query '@[0] > 005002' tropical_cyclone.bufr', which is for obtaining the lattitudes in 'tropical_cyclone.bufr' section 1, I get the error message as follows:

Error: unexpected char: "'" at position 0

Can anybody help me on this issue?

@ywangd
Copy link
Owner

ywangd commented Aug 14, 2024

If you could share the file in question, I will be able to take a close look at the problem.

@duyukof
Copy link
Author

duyukof commented Aug 14, 2024

Here's the file.
tropical_cyclone.zip
Thank a lot.

@ywangd
Copy link
Owner

ywangd commented Aug 16, 2024

Thanks for providing the file. I tested it locally and it worked fine for me. Are you using the latest version of pybufrkit? Here is the output of my local test

[ywangd@outland pybufrkit]
$ unzip tropical_cyclone.zip
Archive:  tropical_cyclone.zip
  inflating: tropical_cyclone.bufr
[ywangd@outland pybufrkit]
$ ll tropical_cyclone.bufr
-rw-r--r--@ 1 ywangd  staff    40K  3 Aug 21:19 tropical_cyclone.bufr
[ywangd@outland pybufrkit]
$ pybufrkit query '@[0] > 005002' tropical_cyclone.bufr
tropical_cyclone.bufr
###### subset 1 of 52 ######
5.5,5.4,5.7,6.0,6.3,6.3,7.4,6.6,7.4,7.1,7.7,7.7,8.2,8.2,8.8,8.5,9.1,8.8,9.1,8.8,9.4,8.8,9.4,9.1,9.6,9.4,9.9,9.6,10.5,10.2,10.8,10.5,11.3,11.3,11.9,12.2,12.7,13.0,13.6,13.6,14.1,14.1,15.0,15.3,15.8,15.9,16.7,16.4,16.4,17.0,16.7,17.8,18.4,18.6,18.6,19.2,18.9,19.8,19.5,20.3,20.0,20.9,20.3,21.7,21.7,22.3,22.9,23.4,23.1,24.8,24.0,26.2,25.9,27.4,27.1,28.8,28.5,30.2,30.2,32.4,32.1,None,None
[ywangd@outland pybufrkit]
$ pybufrkit -v
pybufrkit: 0.2.22

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

2 participants