内置CPT

GMT内置了一个分类型CPT和几十个常规型CPT文件。这一节仅展示GMT内置CPT的配色,具体如何使用这些内置CPT文件会在后面做进一步介绍。

下面列出了 GMT 内置的 CPT 文件的具体配色以及 CPT 文件名(位于图下方)。用户可以参阅 官方手册 了解更多内置 CPT 配色文件。内置CPT根据其来源可以分为以下几个大类(以下称为 section ):

  • gmt: GMT 开发者制作的 CPT 文件;

  • SCM: 由 Fabio Crameri 制作的科学配图用CPT文件;

  • cmocean: 由 Kirsten Thyng 制作的海洋专用CPT文件;

  • cpt-city: 从 cpt-city 引入的CPT文件;

  • google: 由 Google 开发的CPT文件;

  • matlab: 从 Matlab 引入的CPT文件;

  • matplotlib: 从 matplotlib 引入的CPT文件;

  • panoply: 从 Panoply 引入的CPT文件.

使用某个内置CPT文件时,完整的引用格式是 -C[section/] cpt 。其中 cpt 是某个 section 以下具体的CPT名字(注意不需要 .cpt 扩展名)。如果省略 section 则会自动遍历查找,使用第一个找到的 cpt 。例如 -Cglobe 等同于 -Cgmt/globe

每张图中有两个色标,上面的色标是原始的CPT文件,可以使用如下命令绘制得到(将选项 -Csection/cpt 中的 section/cpt 替换为相应的CPT即可):

gmt colorbar -Dx0c/0c+w10c/1c+h -B0 -Csection/cpt -pdf CPT

下面的色标是利用 makecpt 对原始CPT文件做离散处理得到的单色型 CPT文件,可以用如下命令绘制得到(将选项 -Csection/cpt 中的 section/cpt 替换为相应的CPT即可)

gmt begin CPT
gmt makecpt -Csection/cpt -T-1/1/0.25
gmt colorbar -Dx0c/0c+w10c/1c+h -B0
gmt end show

图中黑色三角和白色三角分别表示该CPT拥有一个HARD HINGE或SOFT HINGE。关于HARD和SOFT HINGE的定义会在下一节详细介绍。

../../_images/acton.png

SCM/acton

../../_images/actonS.png

SCM/actonS

../../_images/bam.png

SCM/bam

../../_images/bamO.png

SCM/bamO

../../_images/bamako.png

SCM/bamako

../../_images/bamakoS.png

SCM/bamakoS

../../_images/batlow.png

SCM/batlow

../../_images/batlowK.png

SCM/batlowK

../../_images/batlowS.png

SCM/batlowS

../../_images/batlowW.png

SCM/batlowW

../../_images/berlin.png

SCM/berlin

../../_images/bilbao.png

SCM/bilbao

../../_images/bilbaoS.png

SCM/bilbaoS

../../_images/broc.png

SCM/broc

../../_images/brocO.png

SCM/brocO

../../_images/buda.png

SCM/buda

../../_images/budaS.png

SCM/budaS

../../_images/bukavu.png

SCM/bukavu

../../_images/cork.png

SCM/cork

../../_images/corkO.png

SCM/corkO

../../_images/davos.png

SCM/davos

../../_images/davosS.png

SCM/davosS

../../_images/devon.png

SCM/devon

../../_images/devonS.png

SCM/devonS

../../_images/fes.png

SCM/fes

../../_images/grayC.png

SCM/grayC

../../_images/grayCS.png

SCM/grayCS

../../_images/hawaii.png

SCM/hawaii

../../_images/hawaiiS.png

SCM/hawaiiS

../../_images/imola.png

SCM/imola

../../_images/imolaS.png

SCM/imolaS

../../_images/lajolla.png

SCM/lajolla

../../_images/lajollaS.png

SCM/lajollaS

../../_images/lapaz.png

SCM/lapaz

../../_images/lapazS.png

SCM/lapazS

../../_images/lisbon.png

SCM/lisbon

../../_images/nuuk.png

SCM/nuuk

../../_images/nuukS.png

SCM/nuukS

../../_images/oleron.png

SCM/oleron

../../_images/oslo.png

SCM/oslo

../../_images/osloS.png

SCM/osloS

../../_images/roma.png

SCM/roma

../../_images/romaO.png

SCM/romaO

../../_images/tofino.png

SCM/tofino

../../_images/tokyo.png

SCM/tokyo

../../_images/tokyoS.png

SCM/tokyoS

../../_images/turku.png

SCM/turku

../../_images/turkuS.png

SCM/turkuS

../../_images/vanimo.png

SCM/vanimo

../../_images/vik.png

SCM/vik

../../_images/vikO.png

SCM/vikO

../../_images/algae.png

cmocean/algae

../../_images/amp.png

cmocean/amp

../../_images/balance.png

cmocean/balance

../../_images/curl.png

cmocean/curl

../../_images/deep.png

cmocean/deep

../../_images/delta.png

cmocean/delta

../../_images/dense.png

cmocean/dense

../../_images/diff.png

cmocean/diff

../../_images/gray.png

cmocean/gray

../../_images/haline.png

cmocean/haline

../../_images/ice.png

cmocean/ice

../../_images/matter.png

cmocean/matter

../../_images/oxy.png

cmocean/oxy

../../_images/phase.png

cmocean/phase

../../_images/rain.png

cmocean/rain

../../_images/solar.png

cmocean/solar

../../_images/speed.png

cmocean/speed

../../_images/tarn.png

cmocean/tarn

../../_images/tempo.png

cmocean/tempo

../../_images/thermal.png

cmocean/thermal

../../_images/topo.png

cmocean/topo

../../_images/turbid.png

cmocean/turbid

../../_images/cubhelix.png

cpt-city/cubhelix

../../_images/dem1.png

cpt-city/dem1

../../_images/dem4.png

cpt-city/dem4

../../_images/elevation.png

cpt-city/elevation

../../_images/abyss.png

gmt/abyss

../../_images/bathy.png

gmt/bathy

../../_images/categorical.png

gmt/categorical

../../_images/cyclic.png

gmt/cyclic

../../_images/dem2.png

gmt/dem2

../../_images/dem3.png

gmt/dem3

../../_images/drywet.png

gmt/drywet

../../_images/earth.png

gmt/earth

../../_images/etopo1.png

gmt/etopo1

../../_images/gebco.png

gmt/gebco

../../_images/geo.png

gmt/geo

../../_images/globe.png

gmt/globe

../../_images/gray1.png

gmt/gray

../../_images/haxby.png

gmt/haxby

../../_images/ibcso.png

gmt/ibcso

../../_images/mag.png

gmt/mag

../../_images/nighttime.png

gmt/nighttime

../../_images/no_green.png

gmt/no_green

../../_images/ocean.png

gmt/ocean

../../_images/paired.png

gmt/paired

../../_images/rainbow.png

gmt/rainbow

../../_images/red2green.png

gmt/red2green

../../_images/relief.png

gmt/relief

../../_images/seafloor.png

gmt/seafloor

../../_images/sealand.png

gmt/sealand

../../_images/seis.png

gmt/seis

../../_images/split.png

gmt/split

../../_images/srtm.png

gmt/srtm

../../_images/terra.png

gmt/terra

../../_images/topo1.png

gmt/topo

../../_images/world.png

gmt/world

../../_images/wysiwyg.png

gmt/wysiwyg

../../_images/turbo.png

google/turbo

../../_images/cool.png

matlab/cool

../../_images/copper.png

matlab/copper

../../_images/hot.png

matlab/hot

../../_images/jet.png

matlab/jet

../../_images/polar.png

matlab/polar

../../_images/inferno.png

matplotlib/inferno

../../_images/magma.png

matplotlib/magma

../../_images/plasma.png

matplotlib/plasma

../../_images/viridis.png

matplotlib/viridis

../../_images/panoply.png

panoply/panoply

GMT内置CPT文件中,某些是针对特定的需求设计的,因而常用于特定的图件中:

  1. 海深:abyss、bathy、gebco、ibcso

  2. 陆地高程:elevation

  3. 全球地形起伏:dem1、dem2、dem3、dem4、earth、etopo1、geo、globe、oleron relief、terra、topo、world

  4. 地震成像:seis、polar

  5. 分类型数据:categorical