Closed vincentsarago closed 5 years ago
You probably need to define manually the target extent with -te. Geostationnary projection is hard to deal with since generally the corners of the image point to space...
adding -te
to gdalwarp didn't work
$ gdalwarp -t_srs EPSG:4326 NETCDF:OR_ABI-L1b-RadF-M6C01_G16_s20192951400357_e20192951410065_c20192951410137.nc:Rad out.vrt -of VRT -te -156.2813002427007 -76.40208979748526 6.118050388262418 76.40417290575606
$ gdal_translate out.vrt out.tif
Input file size is 11173, 10513
0ERROR 1: Too many points (529 out of 529) failed to transform, unable to compute output bounds.
ERROR 1: out.vrt, band 1: IReadBlock failed at X offset 0, Y offset 0: Too many points (529 out of 529) failed to transform, unable to compute output bounds.
Backported to 3.0 and 2.4 branches
Expected behavior and actual behavior.
I'm trying to use VRT to warp some GOES-16 files stored in GEOS projection
Direct warping of the data (
gdalwarp -t_srs EPSG:4326 NETCDF:OR_ABI-L1b-RadF-M6C01_G16_s20192951400357_e20192951410065_c20192951410137.nc:Rad out.tif
) works fine but when trying to use VRT as temporary step I getIReadBlock failed at X offset 0, Y offset 0: Too many points (529 out of 529) failed to transform, unable to compute output bounds
Note: My real use case is for using rasterio's WarpedVRT but I figured I was getting the same error with GDAL directly.
Steps to reproduce the problem.
For example (please modify !!!): "gdalinfo myfile"
Operating system
Mac/Linux
GDAL version and provenance
gdal3.0.1 (sources) gdal2.4 (homebrew)