[gradsusr] 0 360 data to -180 180

James T. Potemra jimp at hawaii.edu
Wed Jan 18 14:00:54 EST 2012


Sebastian:

I'm not sure if you've solved this yet?  I think if your longitudes can 
be made continuous around the globe, you should be able to plot either 
as 0 to 360 or -180 to 180 (or any range for that matter).  As an 
example, if you have "imax" number of longitudes extending over the 
whole globe, you need longitude(imax+1)=longitude(1).  Again, as an 
example, if you have 360 longitudes at 1-degree spacing, and lon(1)=0.5, 
lon(360)=359.5, you should be able to plot (and fill) the whole map with 
"set lon -180 180", "set lon 0 360", etc.  You could even "set lon 0 
720" and get twice the globe.  Of course, you want to remain true to the 
actual data locations (i.e., not advisable to edit the control file in a 
way to misrepresent the data).

Jim

On 1/17/12 10:03 AM, Sebastian Steinig wrote:
> Hi,
>
> I have a data set with lon 0 360 and want to use a robinson projection with lon -180 180. If I set lon to -180 180 it will only display the shifted half of the data. How can I change the data, like subtracting 180 from the lon-values?
>
> Best Regards
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr



More information about the gradsusr mailing list