This tool wraps the functionality of shift-lon.py.
The wrapper aims at providing a simple utility to shift longitudes ranging from 0. and 360 degrees to -180. and 180. degrees. The input file must be in netCDF format with geographical coordinates (latitudes, longitudes) given in degrees.
This tools creates a netCDF file with the same variables as the original file but where longitudes range from -180. to 180.
Usage
usage: shift-lon.py [-h] [-v] input output
-h, --help show this help message and exit -v, --verbose switch on verbose mode
It uses xarray python package to generate plots. More information about xarray can be found at http://xarray.pydata.org/en/stable/