gmt info data.txt -I0.5+R1 -C does not output the extended region as expected, as if the -C flag grabs the extent before it is extended. I created a new issue on GitHub: #8412
Expanding the test case from PR #7460:
cat << EOF > data.txt
-125 37.6
-111.1 49.2
-121.49 42.5
EOF
# 0. Exact extent
gmt info data.txt -Ie > result.txt
gmt info data.txt -Ie -C >> result.txt
# 1. Round to nearest 0.5
gmt info data.txt -I0.5 >> result.txt
gmt info data.txt -I0.5 -C >> result.txt
# 2. Extend outward by 1, then round to nearest 0.5
gmt info data.txt -I0.5+R1 >> result.txt
gmt info data.txt -I0.5+R1 -C >> result.txt
# 3. Round to nearest 0.5, then round to nearest 1
gmt info data.txt -I0.5+r1 >> result.txt
gmt info data.txt -I0.5+r1 -C >> result.txt
# 4. Round to nearest 0.5, then extend by 1
gmt info data.txt -I0.5+e1 >> result.txt
gmt info data.txt -I0.5+e1 -C >> result.txt
On macOS 13.6.5 with GMT v. 6.5.0 I get the following result.txt:
-R-125/-111.1/37.6/49.2
-125 -111.1 37.6 49.2 # <-- match
-R-125/-111/37.5/49.5
-125 -111 37.5 49.5 # <-- match
-R-126/-110/36.5/50.5
-125 -111 37.5 49.5 # <-- mismatch: -I0.5+R1 -C
-R-125/-111/37/50
-125 -111 37.5 49.5 # <-- mismatch: -I0.5+r1 -C
-R-126/-110/37/50
-125 -111 37.5 49.5 # <-- mismatch: -I0.5+e1 -C
Thank you