-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gdalwarp producing odd results around 0 degree longitude #1182
Comments
Can you point to a source dataset that can be used to reproduce the issue ? |
Apologies for the delayed reply. You can find an example dataset here: I tested this with: I also tried several other CENTER_LONG values, and omitting the parameter entirely. |
Is there any update on this? |
I managed to reproduce the issue. The fundamental problem is that the resampling kernel is not geography aware, so when interpolating around longitude = 0 or 360 in your source raster, it is has the edge of the raster and fallback to nearest resampling.
|
Hello,
I am warping ECMWF grib data (full globe, 0.25 degree resolution) to
match the SEVIRI geostationary satellite projection. I use this command:
gdalwarp -overwrite -ot Float32 -t_srs "+proj=geos +a=6378169
+b=6356583.8 +lon_0=0.0 +h=35785831" -te -5570248.832537 5570244.832537
5567248.429179 -5567252.429179 -ts 3712 3712 -wo NUM_THREADS=6 -wo
SOURCE_EXTRA=1000 -q -r cubicspline --config CENTER_LONG 180
/data/ECMWF_T2_20181223T00_000.grib /data/cubicspline.tiff
The output projection looks good, and if I try this with the ECMWF
land-sea mask then I can see that it is correct for most of the view.
However, along a vertical centred on zero degrees longitude I see this
artefact: https://i.stack.imgur.com/tQn5F.png
Any ideas what is causing that, and how to resolve this bug? The artefact
appears for all resampling methods except nearest neighbour.
Thanks,
Simon
The text was updated successfully, but these errors were encountered: