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

Filtering by values #32

Open
dafekt1ve opened this issue Nov 25, 2018 · 0 comments
Open

Filtering by values #32

dafekt1ve opened this issue Nov 25, 2018 · 0 comments

Comments

@dafekt1ve
Copy link

When trying to filter a grib file by numeric value, if the value is a negative number, the grib2json command fires off "Unexpected options" errors.

As an example, the "Potential Vorticity" surface is positive in the Northern Hemisphere and negative in the Southern Hemisphere. This means that if you want to filter by value, you would do the following for the northern hemisphere:
grib2json -n --fp 5 -fs 109 --fv 2.0000000000000003E-6 2018112500.gfs.t00z.pgrb2.1p00.f000

and the following for the southern hemisphere:
grib2json -n --fp 5 -fs 109 --fv -2.0000000000000003E-6 2018112500.gfs.t00z.pgrb2.1p00.f000

but this second command fails after the minus sign. I have tried wrapping the value in "", '', and escaping the - with a . None of these worked.

Do you have an option in grib2json that makes this work for negative numbers?

Thanks for any response.

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