NumPy
NumPy is an extremely fast, multidimensional Python array processor designed specifically for Python and scientific computing but written in C. It is available via PyPI and installs easily. In addition to its amazing speed, the magic of NumPy includes its interaction with other libraries. NumPy can exchange data with GDAL, Shapely, the Python Imaging Library (PIL), and many other scientific computing Python libraries in other fields.
As a quick example of NumPy's ability, we'll combine it with GDAL to read in our sample satellite image and create a histogram of it. The interface between GDAL and NumPy is a GDAL module called gdalnumeric which has NumPy as a dependency. Numeric is the legacy name of the NumPy module. The gdalnumeric module ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access