http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}
- Subdomains: mt0, mt1, mt2, mt3.
- Examples:
- https://mts1.google.com/vt/x=1325&y=3143&z=13
- https://mt1.google.com/vt/lyrs=m&x=1325&y=3143&z=13
- Additional info:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| max_processes = 10 | |
| template = 'bash' | |
| # Run commands in parallel | |
| processes = set() | |
| for run_file in run_files: | |
| command = 'bash ' + str(run_file) | |
| process = subprocess.Popen(command.split(' ')) | |
| processes.add(process) | |
| if len(processes) >= max_processes: | |
| os.wait() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from numpy import linalg as la | |
| import numpy as np | |
| def nearestPD(A): | |
| """Find the nearest positive-definite matrix to input | |
| A Python/Numpy port of John D'Errico's `nearestSPD` MATLAB code [1], which | |
| credits [2]. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # GoogleMapDownloader.py | |
| # Created by Hayden Eskriett [http://eskriett.com] | |
| # Edited by Nima Farhadi | |
| # | |
| # A script which when given a longitude, latitude and zoom level downloads a | |
| # high resolution google map | |
| # Find the associated blog post at: http://blog.eskriett.com/2013/07/19/downloading-google-maps/ | |
| from PIL import Image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import rasterio.merge | |
| bounds=None | |
| res=None | |
| nodata=None | |
| precision=7 | |
| def merge(input1,bounds, res, nodata, precision): | |
| import warnings | |
| warnings.warn("Deprecated; Use rasterio.merge instead", DeprecationWarning) |