fillnodata!
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 # —————————————————————————————————
““” gdalwarp(indata, options=String[]; dest=“/vsimem/tmp”, kwargs…)
Image/Grid reprojection and warping function.
Args
indata: Input data. It can be a file name, a GMTgrid or GMTimage object or a GDAL datasetoptions: List of options. The accepted options are the ones of the gdal_translate utility. This list can be in the form of a vector of strings, or joined in a single string. The accepted options are the ones of the gdalwarp utility.kwargs: Besides what was mentioned above one can also usemeta=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.
Returns
A GMT grid or Image, or a GDAL dataset (or nothing if file was writen on disk). ““” function gdalwarp(indata, opts=String[]; dest=“/vsimem/tmp”, kwargs…) helper_run_GDAL_fun(gdalwarp, indata, dest, opts, ““, kwargs…) end