You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (header->registration==GMT_GRID_NODE_REG) /* No, somehow messed up now */
827
-
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y, using %s\n", regtype[header->registration]);
827
+
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y (likely bad x_inc or y_inc steps), using %s\n", regtype[header->registration]);
GMT_Report (GMT->parent, GMT_MSG_WARNING, "The y-coordinates and range attribute are in conflict but range is exactly 180; we rely on this range\n");
850
850
if ((header->n_rows%2) ==1&&header->registration==GMT_GRID_NODE_REG) /* Pixel registration? */
851
-
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y, using %s\n", regtype[header->registration]);
851
+
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y (likely bad x_inc or y_inc steps), using %s\n", regtype[header->registration]);
852
852
else
853
853
registration=header->registration;
854
854
}
855
855
}
856
856
else { /* Data seems OK; determine registration and set dummy from data coordinates */
857
857
dummy[0] =xy[0], dummy[1] =xy[header->n_rows-1];
858
858
if ((fabs(dummy[1] -dummy[0]) / fabs(xy[header->n_rows-1] -xy[0]) -1.0>0.5 / (header->n_rows-1)) &&header->registration==GMT_GRID_NODE_REG)
859
-
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y, using %s\n", regtype[header->registration]);
859
+
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y (likely bad x_inc or y_inc steps), using %s\n", regtype[header->registration]);
860
860
}
861
861
}
862
862
elseif (has_vector) { /* No attribute for range, use coordinates */
863
863
threshold= (0.5-GMT_CONV5_LIMIT) *dy;
864
864
dummy[0] =xy[0], dummy[1] =xy[header->n_rows-1];
865
865
if (fabs (fmod (dummy[0], dy)) >threshold) { /* Most likely pixel registration since off by dy/2 */
866
866
if (header->registration==GMT_GRID_NODE_REG) /* No, somehow messed up now */
867
-
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y, using %s\n", regtype[header->registration]);
867
+
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y (likely bad x_inc or y_inc steps), using %s\n", regtype[header->registration]);
868
868
else { /* Pixel registration confirmed */
869
869
if (dummy[0] >dummy[1]) { /* Check for reverse order of y-coordinate */
else { /* Only has the valid_range settings. If no registration set, and no dy available, guess based on ny */
881
881
if ((header->n_rows%2) ==1&&header->registration==GMT_GRID_NODE_REG) /* Pixel registration? */
882
-
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y, using %s\n", regtype[header->registration]);
882
+
GMT_Report (GMT->parent, GMT_MSG_WARNING, "Guessing of registration in conflict between x and y (likely bad x_inc or y_inc steps), using %s\n", regtype[header->registration]);
0 commit comments