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

Move the annoying warning about the sloppy w/e/s/n one level up (GMT_MSG_INFORMATION) #8619

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/gmt_grdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2572,8 +2572,11 @@ GMT_LOCAL int gmtlib_adjust_loose_wesn (struct GMT_CTRL *GMT, double wesn[], str
}

int gmt_adjust_loose_wesn (struct GMT_CTRL *GMT, double wesn[], struct GMT_GRID_HEADER *header) {
/* Most places we wish to warn if w/e/s/n is sloppy except when via DCW that must be rounded */
return gmtlib_adjust_loose_wesn (GMT, wesn, header, GMT->common.R.via_polygon ? GMT_MSG_INFORMATION : GMT_MSG_WARNING);
/* Most places we wish to warn if w/e/s/n is sloppy except when via DCW that must be rounded
JL: Changed to default to GMT_MSG_INFORMATION. This warning is just too annoying and most
users don't understand it. It also results often from computed code inside wrappers.
*/
return gmtlib_adjust_loose_wesn (GMT, wesn, header, GMT_MSG_INFORMATION);
}

void gmt_scale_and_offset_f (struct GMT_CTRL *GMT, gmt_grdfloat *data, size_t length, double scale, double offset) {
Expand Down
Loading