cartopy.io.srtm.read_SRTM3#

cartopy.io.srtm.read_SRTM3(fh)#

Read the array of (y, x) elevation data from the given named file-handle.

Parameters:

fh – A named file-like as passed through to cartopy.io.fh_getter(). The filename is used to determine the extent of the resulting array.

Returns:

  • elevation – The elevation values from the SRTM file. Data is flipped vertically such that the higher the y-index, the further north the data. Data shape is automatically determined by the size of data read from file, and is either (1201, 1201) for 3 arc-second data or (3601, 3601) for 1 arc-second data.

  • crs (cartopy.crs.CRS) – The coordinate reference system of the extents.

  • extents (4-tuple (x0, x1, y0, y1)) – The boundaries of the returned elevation array.