How to fix this error?

image

Hi, welcome to the forum

The answer to your question is written in the 3rd line of your screen capture. And, please, avoid screen-captures of text. Just copy past the text here wrapped under triple back ticks.

Hi @divyanamei,
Creating grids with PyGMT is an art! Basically, you have to think a bit about the distribution of your input data and the resolution you want. As @Joaquim mentioned (back in 2020 ! and beyond…), this message means “that the limits of your grid are not divisible into an integer number of grid increments (plus a small tolerance).” You MUST use grdedit -A, but before that, think a bit about the grid limits and the desired increment.

If you search in the forum, there are a few discussions about this. I think it can help you to fit a solution for your problem.