salem.GoogleVisibleMap

class salem.GoogleVisibleMap(x, y, crs=<pyproj.Proj object>, size_x=640, size_y=640, maptype='satellite', use_cache=True, **kwargs)[source]

Google static map automatically sized and zoomed to a selected region.

It’s usually more practical to use than GoogleCenterMap.

__init__(x, y, crs=<pyproj.Proj object>, size_x=640, size_y=640, maptype='satellite', use_cache=True, **kwargs)[source]

Initialize

Parameters:

x : array

x coordinates of the points to include on the map

y : array

y coordinates of the points to include on the map

crs : proj or Grid

coordinate reference system of x, y

size_x : int

image size

size_y : int

image size

maptype : str, default: ‘satellite’

‘roadmap’, ‘satellite’, ‘hybrid’, ‘terrain’

use_cache : bool, default: True

store the downloaded image in the cache to avoid future downloads

kwargs : **

any keyword accepted by motionless.CenterMap (e.g. key for the API)

Methods

__init__(x, y[, crs, size_x, size_y, ...]) Initialize
get_vardata([var_id]) Return and subset the image.
set_period([t0, t1]) Set a period of interest for the dataset.
set_roi([shape, geometry, crs, grid, ...]) Set a region of interest for the dataset.
set_subset([corners, crs, toroi, margin]) Set a subset for the dataset.

Attributes

roi Mask of the ROI (same size as subset).
time Time array