I am trying to re-project a NetCDF file to a uniform grid EPSG: 4326 and convert it to a TIFF file. However, after the GDAL re-projection the values in the file change, i.e. the values are not retained after the re-projection takes place. The commands that I am using are:
gdal_translate HDF5:"LC08_L1TP_029037_20190611_20190611_01_RT_L2GEN_2.nc"://geophysical_data/Rrs_443 -a_nodata -32767 output.tif
gdalwarp -t_srs EPSG:4326 -srcnodata -32767 output.tif reprojected.tif
The links to the files are:
NetCDF file: https://drive.google.com/open?id=1XKNOqf_-MIcgR-f_qBWP-92ZNP3pEsgj
output.tif file: https://drive.google.com/open?id=1nMcMIRiOVyiwjc8tHegzRyHxn2K9762o
reprojected.tif file: https://drive.google.com/open?id=1Uh_UfWkeiEDuwKvDp4qCTjyBh_Bra6cZ
gdal_translate HDF5:"LC08_L1TP_029037_20190611_20190611_01_RT_L2GEN_2.nc"://geophysical_data/Rrs_443 -r bilinear -a_nodata -32767 bilinear.tif
. The link to bilinear.tif is: (drive.google.com/open?id=1V0yQu6LuAz8lLubKSWokRANs-ZCdQdOP)gdal_translate HDF5:"LC08_L1TP_029037_20190611_20190611_01_RT_L2GEN_2.nc"://geophysical_data/Rrs_443 -r cubic -a_nodata -32767 output1.tif
and the link to output1.tif is: (drive.google.com/open?id=1LrUrUJ5lfHfqH1GpV46BrReCRwpNFfqM)