GDAL ver : GDAL 3.1.1, released 2020/06/22
Python : 3.8.0
OS: : windows 10
Input file : 7200 x 3600 GeoTIF in epsg:4326
File link : [https://www.dropbox.com/s/z9th2kbp6n3zvbu/sst_bw.tif?dl=0] (~100mb; Sea Surface Temperature data)
Req output : in epsg:3413 SRS
in WKT: "+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
Console command:
gdalwarp -s_srs "EPSG:4326" -t_srs "+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" sst_bw.tif sst_bw_3413.tif
Error:
Creating output file that is 5692P x 5692L.
Processing sst_bw.tif [1/1] : 0Using internal nodata values (e.g. -32768) for image sst_bw.tif.
Copying nodata values from source out_data\sst_bw.tif to destination sst_bw_3413.tif.
ERROR 1: Too many points (529 out of 529) failed to transform, unable to compute output bounds.
Warning 1: Unable to compute source region for output window 0,0,5692,5692, skipping.
...10...20...30...40...50...60...70...80...90...100 - done.
Can someone suggest how to get it working and output correctly. Currently, it creates a file with no data with the primary error:
'ERROR 1: Too many points (529 out of 529) failed to transform, unable to compute output bounds.'
My apologies if the question seems trivial, as I'm very new to GDAL. I searched through similar questions but they have either not been answered or do not have test data. So, I thought of making a complete post with test data.
Background: Original files are correct (no issues). In stereographic projection, data in one of the poles is not viewable from the other pole. GDAL does not automatically check for this and throws an error; so the trick is to first subset valid data.
Steps:
Let me know if of further interest.Cheers
– PDash Jul 12 '20 at 20:41