I have two datasets that represent longitude in different ways. The first represents longitude as degrees from east to 180, but then as negative east so that I have a series which looks like:
I then have another dataset that represents longitude as degrees east but with a range of 0 to 360, i.e.:
In order to convert these to the same format, can I simply use this?
lon2(lon2 > 180) = lon2(lon2 > 180)-360;
Note my example here is written in MATLAB. This basically shows that I can change the second longitude coordinates by simply subtracting 360 from those longitude values that are greater than 180. Does this make sense?