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 and 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 shell script that we call getbox.sh:

    range=`(echo -$2 -$2; echo $2 $2) | 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 -$1 -$1; echo -$1 $1; echo $1 $1; echo $1 -$1) | mapproject -R -J -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