salem.mercator_grid

salem.mercator_grid(center_ll=None, extent=None, ny=600, nx=None, origin='lower-left', transverse=True)[source]

Local (transverse) mercator map centered on a specified point.

Parameters:
center_ll : (float, float)

tuple of lon, lat coordinates where the map will be centered.

extent : (float, float)

tuple of eastings, northings giving the extent (in m) of the map

ny : int

number of y grid points wanted to cover the map (default: 600)

nx : int

number of x grid points wanted to cover the map (mutually exclusive with y)

origin : str

‘lower-left’ or ‘upper-left’

transverse : bool

wether to use a transverse or regular mercator. Default should have been false, but for backwards compatibility reasons we keep it to True