Re: [gdal-dev] gdalwarp different behavior for tif and netCDF files

2024-03-07 Thread B H via gdal-dev
I should also have added that original nc has data in Lat Lon, but is not actually stamped with EPSG:4326 SRS. Here is what I get from gdalinfo. (I used a tool called grdcut to create the sample, but the behaviour is same This is what gdalinfo shows on original nc file from which I created a sampl

[gdal-dev] gdalwarp different behavior for tif and netCDF files

2024-03-07 Thread B H via gdal-dev
I am trying to reproject a netCDF file which is in Lat Lon (EPSG:4326) projection to EPSG:3857 (Google mercator) (on GDAL 3.4.3, released 2022/04/22). If I reproject to a tif file, it is reprojected correctly. If I reproject to a nc file it reproject incorrectly/different location that tif file. I

[gdal-dev] gdal_translate -expand rgba behaving incorrectly, pct2rgb.py working correctly on a tif

2024-03-06 Thread B H via gdal-dev
Hi, I am processing a bunch of tifs where the gdal_translate and pct2rgb.py seem to be behaving differently. Is it a bug in gdal_translate, or I need to pass some options to get correct behavior. gdal_translate -expand rgba a.tif gdalbad.tif # This produces a tif file with _incorrect_ colors. p