cartopy.io.img_nest.Img

class cartopy.io.img_nest.Img(*args, **kwargs)[source]
__init__(*args, **kwargs)[source]

Represents a simple geo-located image.

Parameters
  • filename – Filename of the image tile.

  • extent – The (x_lower, x_upper, y_lower, y_upper) extent of the image in units of the native projection.

  • origin – Name of the origin.

  • pixel_size – The (x_scale, y_scale) pixel width, in units of the native projection per pixel.

Note

API is likely to change in the future to include a CRS.

Methods

__init__(*args, **kwargs)

Represents a simple geo-located image.

bbox()

Return a Polygon instance for this image's extents.

count(value, /)

Return number of occurrences of value.

from_world_file(img_fname, world_fname)

Return an Img instance from the given image filename and worldfile filename.

index(value[, start, stop])

Return first index of value.

world_file_extent(worldfile_handle, im_shape)

Return the extent (x0, x1, y0, y1) and pixel size (x_width, y_width) as defined in the given worldfile file handle and associated image shape (x, y).

world_files(fname)

Determine potential world filename combinations, without checking their existence.

Attributes

extent

Alias for field number 1

filename

Alias for field number 0

origin

Alias for field number 2

pixel_size

Alias for field number 3