I have a georeferenced image of Earth above the Pacific Ocean. Gdalinfo give me this :
NC_GLOBAL#geospatial_lat_max=81.328201
NC_GLOBAL#geospatial_lat_min=-81.328201
NC_GLOBAL#geospatial_lon_max=-55.7005
NC_GLOBAL#geospatial_lon_min=141.7005
Problem is lon_min > lon_max so I don't know how I can use the -te gdalwarp's option on an area with for example lon_min = 160 and lon_max = -120. I tried to exchange position in command line and I also tried to transform the 160° in -200° but it doesn't work.
gdalwarp -t_srs EPSG:4326 -te 160 -10 -120 10 sphere.tiff plani.tiff
Creating output file that is -5491P x 392L.
ERROR 1: Attempt to create -5491x392 dataset is illegal,sizes must be larger than zero.
I tried to transform my 160°E in 200°W and I get a picture cut at 180°W.
gdalwarp -t_srs EPSG:4326 -te -200 -10 -120 10 sphere.tiff plani.tiff
Finally I simply tried to exchange the -120 and 160 in command line but I obtain a weird image.
gdalwarp -t_srs EPSG:4326 -te -120 -10 160 10 sphere.tiff plani.tiff
Does anyone know how to get an image with these coordinates ?
--config CENTER_LONG 180
doesn't work for me and I also tried to add+over
and+lon_wrap=-180
to proj definition but it still doesn't work.+over
or--config
in your question