gdalwarp
gdaltranslate(indata, options=String[]; dest=“/vsimem/tmp”, kwargs…)
Convert raster data between different formats.
Operations provided by the GDAL ‘gdal_translate’ tool. Namely sub-region extraction and resampling. The kwargs options accept the GMT region (-R), increment (-I), target SRS (-J). Any of the keywords outgrid, outfile or save = outputname options to make this function save the result on a file designated by ‘outputname’. The file format is picked from the ‘outputname’ file extension. When no output file name is provided it returns a GMT object (either a grid or an image, depending on the input type). To force the return of a GDAL dataset use the option gdataset=true.
Args
Kwargs
meta=metadata, wheremetadatais a string vector with the form “NAME=….” for each of its elements. This data will be recognized by GDAL as Metadata. Thekwargsmay also contain the GMT region (-R), proj (-J), inc (-I) andsave=fnameoptions. And it may also contain aoptions=...argument that is equivalent to theoptionspositional argument, with the exception that the value may also be a Tuple.
Returns
A GMT grid or Image, or a GDAL dataset (or nothing if file was writen on disk). ““” function gdaltranslate(indata, opts=String[]; dest=“/vsimem/tmp”, kwargs…) helper_run_GDAL_fun(gdaltranslate, indata, dest, opts, ““, kwargs…) end # —————————————————————————————————