Getting and loading rasters
In this recipe, we load most of the rasters used in this chapter. These rasters are examples of satellite imagery and model-generated surfaces, two of the most common raster sources.
Getting ready
If you have not done so already, create a directory and copy the chapter's datasets; for Windows, use the following commands:
> mkdir C:\postgis_cookbook\data\chap05> cp -r /path/to/book_dataset/chap05 C:\postgis_cookbook\data\chap05
For Linux or macOS, go into the folder you wish to use and run the following commands, where /path/to/book_dataset/chap05
is the path where you originally stored the book source code:
> mkdir -p data/chap05> cd data/chap05> cp -r /path/to/book_dataset/chap05
You should also create a new schema for this chapter in the database:
> psql -d postgis_cookbook -c "CREATE SCHEMA chp05"
How to do it...
We will start with the PRISM average monthly minimum-temperature raster dataset for 2016 with coverage for the continental United States...