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

nyint

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

nxint

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

originstr

‘lower-left’ or ‘upper-left’

transversebool

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