GeoTIFF 转换

GeoTIFF Conversion

我已经看到几个这样的请求,但我仍然有一个紧迫的问题...

GDAL 通常被认为是将 GeoTIFF 文件转换为不同格式的最简单方法。我从 FAA 网站下载了几个 GeoTIFF 文件。下载的栅格地图是压缩的 zip 文件,解压后包含 3 个文件:一个 .TIF、一个地理空间 .tfw 和 .htm 元数据文件。

将 input.tif 转换为 NetCDF output.nc 的 GDAL 命令是: gdal_translate -of NetCDF <input filename> <output filename>

仅当地理空间数据位于不同的 .tfw 文件中时,GDAL 如何从 .t​​if 输入文件创建地理参考 NetCDF 文件?

If no georeferencing information is available in the TIFF file itself, GDAL will also check for, and use an ESRI world file with the extension .tfw, .tifw/.tiffw or .wld, as well as a MapInfo .tab file.

https://gdal.org/drivers/raster/gtiff.html

我可以推荐在 python 中与 xarray and/or rasterio 一起工作。将 GeoTiff 安全作为 netcdf 文件的非常简单的方法。

xarray.open_rasterio