eggshell.eo.gdal_merge

Module Contents

eggshell.eo.gdal_merge.progress[source]
eggshell.eo.gdal_merge.__version__[source]
eggshell.eo.gdal_merge.verbose = 0[source]
eggshell.eo.gdal_merge.quiet = 0[source]
eggshell.eo.gdal_merge.DoesDriverHandleExtension(drv, ext)[source]
eggshell.eo.gdal_merge.GetExtension(filename)[source]
eggshell.eo.gdal_merge.GetOutputDriversFor(filename)[source]
eggshell.eo.gdal_merge.GetOutputDriverFor(filename)[source]
eggshell.eo.gdal_merge.raster_copy(s_fh, s_xoff, s_yoff, s_xsize, s_ysize, s_band_n, t_fh, t_xoff, t_yoff, t_xsize, t_ysize, t_band_n, nodata=None)[source]
eggshell.eo.gdal_merge.raster_copy_with_nodata(s_fh, s_xoff, s_yoff, s_xsize, s_ysize, s_band_n, t_fh, t_xoff, t_yoff, t_xsize, t_ysize, t_band_n, nodata)[source]
eggshell.eo.gdal_merge.raster_copy_with_mask(s_fh, s_xoff, s_yoff, s_xsize, s_ysize, s_band_n, t_fh, t_xoff, t_yoff, t_xsize, t_ysize, t_band_n, m_band)[source]
eggshell.eo.gdal_merge.names_to_fileinfos(names)[source]

Translate a list of GDAL filenames, into file_info objects.

names – list of valid GDAL dataset names.

Returns a list of file_info objects. There may be less file_info objects than names if some of the names could not be opened as GDAL files.

class eggshell.eo.gdal_merge.file_info[source]

A class holding information about a GDAL file.

init_from_name(self, filename)[source]

Initialize file_info from filename

filename – Name of file to read.

Returns 1 on success or 0 if the file can’t be opened.

report(self)[source]
copy_into(self, t_fh, s_band=1, t_band=1, nodata_arg=None)[source]

Copy this files image into target file.

This method will compute the overlap area of the file_info objects file, and the target gdal.Dataset object, and copy the image data for the common window area. It is assumed that the files are in a compatible projection … no checking or warping is done. However, if the destination file is a different resolution, or different image pixel type, the appropriate resampling and conversions will be done (using normal GDAL promotion/demotion rules).

t_fh – gdal.Dataset object for the file into which some or all of this file may be copied.

Returns 1 on success (or if nothing needs to be copied), and zero one failure.

eggshell.eo.gdal_merge.Usage()[source]
eggshell.eo.gdal_merge.main(argv=None)[source]