salem.GoogleCenterMap¶
-
class
salem.
GoogleCenterMap
(center_ll=(11.38, 47.26), size_x=640, size_y=640, zoom=12, maptype='satellite', use_cache=True, **kwargs)[source]¶ Google static map centered on a point.
Needs motionless.
-
__init__
(center_ll=(11.38, 47.26), size_x=640, size_y=640, zoom=12, maptype='satellite', use_cache=True, **kwargs)[source]¶ Initialize
Parameters: center_ll : tuple
tuple of lon, lat center of the map
size_x : int
image size
size_y : int
image size
zoom int
google zoom level (https://developers.google.com/maps/documentation/ static-maps/intro#Zoomlevels)
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__
([center_ll, size_x, size_y, zoom, ...])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 -