O'Reilly logo

PostGIS Cookbook by Bborie Park, Stephen Vincent Mather, Thomas J. Kraft, Paolo Corti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Importing netCDF datasets with Python and GDAL

In this recipe, you will write a Python script to import data from the netCDF format to PostGIS.

netCDF is an open standard format, widely used for scientific applications, that can contain multiple raster datasets, each composed of a spectrum of bands. For this purpose, you will use the GDAL Python bindings and the popular Numpy scientific library.

Getting ready

  1. If you are using Windows, be sure to install OSGeo4W, as suggested in the initial instructions of this chapter, that will include Python and GDAL Python bindings with Numpy support.

    For Linux users, if you did not do it, follow the initial instructions of this chapter and create a Python virtual environment, in order to keep a Python-isolated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required