Next: K.4.1 The crude resolution Up: K. The GMT High-Resolution Previous: K.3 The long and Contents Index

# K.4 The Five Resolutions

We will demonstrate the power of the new database by starting with a regional hemisphere map centered near Papua New Guinea and zoom in on a specified point. The map regions will be specified in projected km from the projection center, e.g., we may want the map to go from -2000 km to +2000 km in the longitudinal direction and -1500 km to +1500 km in the latitudinal direction. However, GMT programs expects degrees in the -R option that specifies the desired region. Given the chosen map projection we can automate this process by using a simple cshell script that we call getbox.sh:

    range=`(echo $2 $4; echo $3 $5) | mapproject $1 -R0/360/-90/90 -I -Fk -C`
    echo $range | awk '{printf "-R%f/%f/%f/%fr\n",$1,$2,$3,$4}'

Also, as we zoom in on the projection center we want to draw the outline of the next map region on the plot. To do that we need the geographical coordinates of the four corners of the region rectangle. Again, we automate this task by adding the simple script getrect.sh:

    (echo $2 $4; echo $3 $4; echo $3 $5; echo $2 $5) | mapproject $1 -R0/360/-90/90 -I -Fk -C

Subsections

- K.4.1 The crude resolution (-Dc)
- K.4.2 The low resolution (-Dl)
- K.4.3 The intermediate resolution (-Di)
- K.4.4 The high resolution (-Dh)
- K.4.5 The full resolution (-Df)

Next: K.4.1 The crude resolution Up: K. The GMT High-Resolution Previous: K.3 The long and Contents Index