Questions tagged [gdal-translate]

Command line utility to convert raster data between different formats.

Filter by
Sorted by
Tagged with
1
vote
0answers
51 views

Why does this HDF4 file converted to .tif with gdal come out at a coarser resolution?

I'm currently working with large-domain MODIS data. These come in multiple separate HDF4 files which I stitch together into a virtual data set (VRT), reproject into EPSG:4326, sub-set to the domain of ...
0
votes
0answers
20 views

How to convert ECW to PNG with gdal_translate while preserving colors

I am trying to convert some ECW files to PNG using the command gdal_translate test.ecw -of png test.png, but the PNG file comes out grayscale. How do I produce a colored PNG from an ECW file using ...
4
votes
1answer
76 views

Converting HDF to TIFF using batch processing with gdal_translate

I have a huge MODIS dataset and I need to translate them to tiff from hdf. My input path is: C:\Users\HP\Desktop\deneme\ham_veri and hopefully, the output path is: C:\Users\HP\Desktop\deneme\yeni This ...
1
vote
1answer
20 views

Using gdal to convert SInt16 DEM to UInt16 DEM, while setting nodata value to 0xFFFF

Can this be done on the command line? I'm working with the Mars MOLA DEM GeoTIFF. Unfortunately, my framework can't deal with signed values, so it gets really confused when it looks at the data. I ...
0
votes
0answers
13 views

Loading GeoTIFF altimetry file created from GDAL or QGIS into a GeoServer failed

GeoServer version : 2.18.2 GDAL version : 3.1.4 QGIS version : 3.16.3 I have a GeoTIFF altimetry file with some missing data which is loaded perfectly in my GeoServer. I just extracted a new GeoTIFF ...
1
vote
1answer
14 views

Calculate the mean of files generated from gdal.Translate

I created several velocity maps from .nc files through gdal.Translate. Each .nc file is organized in several bands, I am only interested in 1: velocities. gdal.Translate allows me to select only the ...
2
votes
1answer
69 views

Modify original ColorTable in VRT & TIFF files

I'm looking to modify the original ColorTable, when georeferencing, PNG => gdal_translate + gdalwarp => TIFF. gdal_translate -of VRT -a_srs EPSG:4326 ' + file_png + ' ' + file_vrt + ' -a_ullr ' +...
0
votes
1answer
47 views

Image is South up while converting NetCDF layer to GTiff with gdal_translate

Issue: I'm trying to extract a NetCDF layer to GeoTIFF. The output GeoTIFF image has the South up. What I need: The output GeoTIFF image with North up. GDAL version: 3.2.2, released 2021/03/05; OS: ...
0
votes
0answers
33 views

Merging TIFF files creates offset / deformation

I have a PNG library (524288 tiles of 256px * 256px) which I georeferenced via GDAL. This first part works correctly. ullr: ulx = (360 * (column / 1024)) - 180 uly = 90 - (180 * (line / 512)) lrx = ...
0
votes
0answers
6 views

How to properly convert HDF5 file with 3K+ GCPs?

I am trying to create a GeoTiff from NOAA's Global RTOFS files for sea surface temperature, which have over 3000 GCPs, and any attempts at conversion using GDAL have resulted in slightly distorted ...
0
votes
0answers
37 views

Resize raster with reference points

I want to modify the size of a raster considering reference points in PyQGIS 2.6. For this, I have the coordinates of four points that I want to be the new coordinates of the corners. I have the ...
0
votes
0answers
18 views

gdal_translate warp image using aux.xml

How do I use gdal_translate to warp a tiff file which is georeferenced with ArcGIS and has a .aux.xml with GCPs in coordinates (lat/lon) not pixels? gdal_translate accepts only source GCPs in pixel,...
0
votes
0answers
11 views

GDAL convert one PDF layer to tif

I tried to convert one PDF layer to tiff using GDAL but the resulting tif still has all layers. This is what I tried. gdal_translate -of GTiff burglesum.pdf burglesumout.tif --config GDAL_PDF_LAYERS &...
0
votes
0answers
30 views

gdal_translate NetCDF subdataset to GeoTIFF for a 1D raster with output as a 2D raster

Test input NetCDF file: dropbox link; file-size: 58mb (Name: cygnss_l2_test.nc) Objective: Convert "wind_speed" subdataset in the NetCDF file to GeoTIFF file wth output as a 2D map ...
1
vote
0answers
22 views

Publish high resolution drone data as gpkg with mapproxy

I am currently sitting in front of the problem of publishing high resolution drone data via mapproxy as wmts service. My approach is the following: Calculation of an orthophoto with OpenDroneMap. ...
0
votes
0answers
15 views

Issues converting TIF to MBTiles

I'm new to the GIS world and am trying to convert a TIF to MBTiles to be used in a tile server. I'm currently running the following commands to convert the TIF, but the resulting tiles just end up as ...
2
votes
1answer
28 views

Getting srcwin from projwin

I have approximate coordinates of a box I need to work with the data, but I want the integer window in order to use the exact edge pixels. Using gdal_translate I get the box using projwin but I want ...
0
votes
1answer
68 views

Converting JP2 to GeoTIFF QGIS 3.16 Win 64

I have hundreds of USGS NAIP imagery GeoTIFFs that are in JP2 format, EPSG:3857. I am using QGIS 3.16 to convert them to GeoTIFFs ("Rendered Images") as EPSG:4326, but I can only process one ...
0
votes
0answers
52 views

Going from degrees to meters in projection conversion using GDAL?

I have raster data in a Lambert-Conformal conic projection created from a NetCDF file by running sub-processes in a Python app that runs the following (Linux) command line argument: gdal_translate -ot ...
0
votes
0answers
20 views

How to gdal_translate a NOAA GFS grib2 file and cut a piece out with -projwin (coordinate system chaos)?

So I'm trying to convert NOAA GFS gribs files to PNGs with gdal_translate. My grib2s have a pretty big area undefined with wgrib, which appears in white on the resulting image. I have been trying for ...
1
vote
1answer
42 views

gdalsrsinfo conflict between command line and python console

I am working on a PyQgis application which loads WRF model output as a raster to overlay on a map which is in the Pseudo-Mercator projection. The WRF data is projected to Lambert-Conformal and am ...
2
votes
0answers
218 views

SRTM HGT to GeoTIFF conversion using GDAL

I have (for example) SRTM-1 file n48e083.hgt with resolution 3601x3601. What is right way to convert it to GeoTIFF? gdal_translate -srcwin 0 0 3600 3600 -a_ullr 83 49 84 48 n48e083.hgt n48e083.tif or ...
0
votes
0answers
31 views

CSV into GeoTIFF (bin bash)

I have bunches of .csv.gz file and want to convert into GeoTIFF format. the csv.gz file contains information as below Line 1: Date/time line 2: latitude line 3: longitude line 4: col line 5: row line ...
0
votes
0answers
24 views

Converting a UTM .bil file to a lat/long TIFF

I have many 3 arcsec (90m) SRTM DEM files in BIL format in UTM projection that I need to convert into 1 arcsec (30m) lat/long TIFFs. I have tried both gdal_translate and gdalwarp to no success. First ...
0
votes
0answers
12 views

Converting .vrt (with many tiles) to a single .tif using gdal_translate creates an empty raster

I can't get gdal_translate to convert a .vrt file with ~1400 100x100 pixel tiles (5 bands) to a single .tif with 5 bands. The results are always an empty raster brick – each band is empty... Here is ...
2
votes
1answer
149 views

Convert all files in a Linux directory from NITF to PNG using gdal_translate

I have a directory called /home/john/WAMI/WPAFB_TRAIN/ with .txt files that have names like: 20091021202517-01000100-VIS.ntf.r0 20091021202517-01000101-VIS.ntf.r0 I know that the code needs to say ...
2
votes
1answer
53 views

Gdal translate HDF5 to GeoTIFF library funtion

Im am trying to convert a radar file provided in HDF5 to a GeoTIFF using gdal.Translate() in my Python script. An example of the HDF5 file can be downloaded here I have already managed to get it ...
3
votes
0answers
147 views

Downloading SoilGrids data from WCS in R

I am trying to download SoilGrids GeoTIFF data in R using WCS. I have followed the tutorial set up by ISRIC (https://git.wur.nl/isric/soilgrids/soilgrids.notebooks/-/blob/master/markdown/wcs_from_R.md)...
2
votes
0answers
78 views

Subdividing a GeoTIFF into 1x1 tiles of longitude and latitude?

I have a big GeoTIFF file of the whole Slovakia territory in 25m resolution. It has around 17700 x 8000 pixels. I need to subdivide it into smaller files and every file must have 1° longitude and 1°...
0
votes
0answers
15 views

How to change the resolution of NetCDF data and start at a specific point in GDAL

I have temperature data which is in NetCDF format and lat=1801 lon=3600 and I want to convert it to a NetCDF file with lat=360 and lon=720. In other words, I want to change the resolution of my data ...
0
votes
0answers
184 views

COG Driver not recognized in GDAL 3.2.0

I want to generate a Cloud Optimized Geotiff (COG) using Python (with Anaconda environment). I wanted to use GDAL 3.2.0 since it has a COG Built in Driver since 3.1. Initially I cannot update GDAL to ...
0
votes
0answers
59 views

gdal_translate GTiff drivers does not support NUM_THREADS creation option

I am using gdal to stitch together google earth engine tiles (35 tiles, roughly 100 gigs altogether). First I build a VRT import os from osgeo import gdal # Build a VRT os.system('gdalbuildvrt /...
1
vote
0answers
55 views

How to convert kmz raster with rotation to GeoTiff?

I have a map that I have georeferenced in Google Earth and I'd like to easily use it in QGIS. The problem is that this map does not have north at the top, so the georeferencing involves rotating the ...
0
votes
1answer
112 views

Calling options/arguments of gdal_translate in Python

I want to port a gdal_translate into Python. It is about translating a GeoTIFF into a Cloud Optimized GeoTIFF (COG). I do not know how to insert the option -of and its input. Here's is the equivalent ...
2
votes
1answer
104 views

Issue creating tiles from GeoTIFF which crosses the 180th Meridian

UPDATE: I've included more information and the scripts that were used to generate the output. Example results can be found here at the links below and are all generated from the same original GeoTIFF. ...
1
vote
0answers
92 views

Decreasing resolution of NetCDF data with GDAL

I have wind speed data which is in NetCDF format and lat=4320 lon=8640 and I want to convert it to a NetCDF file with lat=360 and lon=720. In other words, I want to change the resolution of my data ...
0
votes
1answer
124 views

More efficient processing of many XYZ tiles into a merged response

I've built a mobile mapping device for my Search & Rescue group using a Raspberry Pi (3b+) and its primary purpose is to serve a cache of XYZ tiles via its web server, over its WiFi network. The ...
2
votes
1answer
41 views

Warping a Polar Stereographic image to UKNG projection

I have a North Polar Stereographic image over the UK. The top left and bottom right coordinates are: (-17.644 E, 59.683 N) (9.231 E, 45.25 N). I want to reproject this to UKNG (aka BNG) projection. ...
0
votes
0answers
42 views

Providing GDAL with right encoding

I am using osgeo4w shell to execute gdal_translate command for creating geospatial pdf. My command is: "gdal_translate -of PDF -tr 0.0001 0.0001 -a_srs EPSG:3765 Granice.tif ...
0
votes
0answers
32 views

Convert a NetCDF layer to GeoTIFF image using gdal_translate, applying mask from another layer

My objective is to convert a layer in a NetCDF file to GeoTIFF image with gdal_translate, applying mask from another layer in the same NetCDF file. Sample NetCDF file: sample file on dropbox (~ 6Mb) ...
3
votes
1answer
66 views

Forming a single TIFF image of a Sentinel 2 tile [closed]

I downloaded the data using the following command from Amazon S3 bucket : aws s3 cp s3://sentinel-s2-l2a/tiles/51/H/VC/2020/10/19/0/ aus1 --recursive --request-payer. Then translated the 13 bands ...
0
votes
1answer
49 views

gdal_translate outputs coordinates in metres, but I need degrees

I wish to convert a HDF5 file into NetCDF, with the output NetCDF containing the selected band(s) and the latitudes and longitudes. The data provider gives this info about the original file: Table 2. ...
0
votes
0answers
75 views

SoilGrids Python download WebDAV

I am trying to download global GeoTIFFs following the instructions here: https://git.wur.nl/isric/soilgrids/soilgrids.notebooks/-/blob/master/markdown/webdav_from_Python.md However, I get the error &...
1
vote
1answer
62 views

gdal_translate to JPEG has no EXIF in the output

I am trying to create .jpg files that can be consumed on the web from a .tif image. I would like to rely on EXIF data about the image metadata, however, I fail to read any. What am I doing wrong? $ ...
1
vote
1answer
121 views

How to write gdal_translate output from memory directly to s3

I'm trying to convert a .tif to .mrf format using Python gdal bindings. I'm doing the conversion in memory using /vsimem then attempting to write directly to s3. The problem is only the .mrf file gets ...
1
vote
1answer
99 views

Google Earth Engine error message “Error: Input has missing or invalid affine transform”

Firstly, apologies for repeated question - this question was already asked over at Google Earth Engine error message “Error: Input has missing or invalid affine transform” [duplicate] where the only ...
1
vote
1answer
103 views

gdalwarp DEM with different resolution extents

I'm trying to convert DEM source (LIDAR is original source, in ASC format) to a custom internal format that has specific resolution and alignment values. I also want to generate different output ...
1
vote
0answers
139 views

gdal_translate VRT to TIF has sub-pixel shift [closed]

Problem: While combining 2 tif images using gdalbuildvrt and gdal_translate, the output tif has sub-pixel shift. (GDAL 3.1.1, released 2020/06/22) File names: input files: input1.tif, input2.tif input ...
1
vote
1answer
136 views

GeoTIFF to ENVI GDAL translation causes rotation

I have a GeoTIFF(you can download it here ~16MB) which I want to convert to ENVI raw. I'm using this GDAL command: gdal_translate -ot UInt16 -scale -of ENVI -outsize 1025 1025 dgm1_32372_5680_2_nw.tif ...
2
votes
1answer
109 views

GDAL GeoTIFF to GeoPackage overview building failed error

I have multiple GeoTIFFs in UTM projection. I need to create GPKG SQLite databases. I noticed that some (Example3) conversions are failing with overview error. What is cause for the failure ? How ...

1
2 3 4 5
9