Problems with WrapTo180 map

Hello,
I have a 288(lon) x 192(lat) dataset The longitude is from 0 to 360 but I would like to wrap it so that it is -180 to 180 instead. However, when I use wrapTo180, I seem to get lines all across my map, data where it should not be. I really don't know what I'm doing wrong. Has anyone else had this problem?
I don't seem to get the same outcome when I create my own randomized dataset, so maybe it is just this specific one. In any case, I have attached it below.
Any help would be appreciated.
Thank you,
Melissa

1 Comment

Duplicated by later http://uk.mathworks.com/matlabcentral/answers/216485-problem-when-wrapping-longitude-dataset but I will close this one as the newer one has the data attached and this one does not.

Answers (0)

This question is closed.

Asked:

on 11 May 2015

Closed:

on 13 May 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!