Skip to content
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
6 changes: 5 additions & 1 deletion src/grdcontour.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,13 @@ EXTERN_MSC int GMT_grdcontour (void *V_API, int mode, void *args) {

/* Read data */

if (GMT_Read_Data (API, GMT_IS_GRID, GMT_IS_FILE, GMT_IS_SURFACE, GMT_DATA_ONLY, wesn, Ctrl->In.file, G) == NULL) {
if (GMT_Read_Data(API, GMT_IS_GRID, GMT_IS_FILE, GMT_IS_SURFACE, GMT_DATA_ONLY, wesn, Ctrl->In.file, G) == NULL) {
Return (API->error);
}
if (G->header->n_rows == 1 || G->header->n_columns == 1) {
GMT_Report(API, GMT_MSG_WARNING, "Contouring grid has only 1 row or 1 column. Cannot do contours for such cases.\n");
Return(API->error);
}

if (gmt_M_type (GMT, GMT_IN, GMT_Z) == GMT_IS_ABSTIME) { /* Grid data is time */
/* To properly label contours using GMT time formatting we will rely on the machinery
Expand Down
Loading