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

Bug with binstats -Cn and binary input. #8558

Open
Esteban82 opened this issue Jul 30, 2024 · 0 comments
Open

Bug with binstats -Cn and binary input. #8558

Esteban82 opened this issue Jul 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Esteban82
Copy link
Member

gmt binstats -Cn needs a table with 2 columns. This works fine with ascii data. But it failts when I use binary data.
If I use -bic it creates a grid but it is wrong. If I use -bi2c then I got this error:

gmtbinstats [ERROR]: Binary input data (-bi) provides 2 but must have at least 3 columns

Full script

cat << 'EOF' > data.txt
1 1
2 2
3 3
EOF

gmt convert data.txt -boc > data.bin

gmt binstats data.txt     -fg -R0/3/0/3 -Gtxt.nc -S2 -I1 -Cn -Vi
gmt binstats data.bin -bic -fg -R0/3/0/3 -Gbin.nc -S2 -I1 -Cn -Vi
gmt binstats data.bin -bi2c -fg -R0/3/0/3 -Gbin.nc -S2 -I1 -Cn -Vi
@Esteban82 Esteban82 added the bug Something isn't working label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant