May 2016
Beginner to intermediate
446 pages
10h 7m
English
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "The dataset, an instance of gdal.Dataset, represents a file containing raster-format data."
A block of code is set as follows:
import pyproj
lat1,long1 = (37.8101274,-122.4104622)
lat2,long2 = (37.80237485,-122.405832766082)
geod = pyproj.Geod(ellps="WGS84")
angle1,angle2,distance = geod.inv(long1, lat1, long2, lat2)
print("Distance is {:0.2f} meters".format(distance))When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
for value in values:
if ...Read now
Unlock full access