Permalink
Browse files

updates

  • Loading branch information...
1 parent aec4d5f commit e1d0b8282bbf771fc9579f43a9b66ff940343669 @seisman seisman committed Apr 10, 2016
View
@@ -1,10 +1,8 @@
#!/bin/bash
-# GMT EXAMPLE 02
-# $Id$
+# 根据网格数据绘制彩图
#
-# Purpose: Make two color images based gridded data
-# GMT progs: gmtset, grd2cpt, grdgradient, grdimage, makecpt, psscale, pstext
-# Unix progs: rm
+# GMT模块 : gmtset, grd2cpt, grdgradient, grdimage, makecpt, psscale, pstext
+# Unix命令: rm
#
ps=ex002.ps
gmt gmtset FONT_TITLE 30p MAP_ANNOT_OBLIQUE 0
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 03
-# $Id$
#
# Purpose: Resample track data, do spectral analysis, and plot
# GMT progs: filter1d, fitcircle, gmtinfo, project, sample1d
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 04
-# $Id$
#
# Purpose: 3-D mesh and color plot of Hawaiian topography and geoid
# GMT progs: grdcontour, grdgradient, grdimage, grdview, psbasemap, pscoast, pstext
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 05
-# $Id$
#
# Purpose: Generate grid and show monochrome 3-D perspective
# GMT progs: grdgradient, grdmath, grdview, pstext
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 06
-# $Id$
#
# Purpose: Make standard and polar histograms
# GMT progs: pshistogram, psrose
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 07
-# $Id$
#
# Purpose: Make a basemap with earthquakes and isochrons etc
# GMT progs: pscoast, pstext, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 08
-# $Id$
#
# Purpose: Make a 3-D bar plot
# GMT progs: grd2xyz, pstext, psxyz
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 09
-# $Id$
#
# Purpose: Make wiggle plot along track from geoid deflections
# GMT progs: gmtconvert, pswiggle, pstext, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 10
-# $Id$
#
# Purpose: Make 3-D bar graph on top of perspective map
# GMT progs: pscoast, pstext, psxyz, pslegend
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 11
-# $Id$
#
# Purpose: Create a 3-D RGB Cube
# GMT progs: gmtset, grdimage, grdmath, pstext, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 12
-# $Id$
#
# Purpose: Illustrates Delaunay triangulation of points, and contouring
# GMT progs: makecpt, gmtinfo, pscontour, pstext, psxy, triangulate
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 13
-# $Id$
#
# Purpose: Illustrate vectors and contouring
# GMT progs: grdmath, grdcontour, grdvector, pstext
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 14
-# $Id$
#
# Purpose: Showing simple gridding, contouring, and resampling along tracks
# GMT progs: blockmean, grdcontour, grdtrack, grdtrend, gmtinfo, project
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 15
-# $Id$
#
# Purpose: Gridding and clipping when data are missing
# GMT progs: blockmedian, gmtconvert, grdclip, grdcontour, grdinfo, gmtinfo
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 16
-# $Id$
#
# Purpose: Illustrates interpolation methods using same data as Example 12.
# GMT progs: gmtset, grdview, grdfilter, pscontour, psscale, pstext, surface, triangulate
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 17
-# $Id$
#
# Purpose: Illustrates clipping of images using coastlines
# GMT progs: grd2cpt, grdgradient, grdimage, pscoast, pstext
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 18
-# $Id$
#
# Purpose: Illustrates volumes of grids inside contours and spatial
# selection of data
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 19
-# $Id$
#
# Purpose: Illustrates various color pattern effects for maps
# GMT progs: gmtset, grdimage, grdmath, makecpt, pscoast, pstext, psimage
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 20
-# $Id$
#
# Purpose: Extend GMT to plot custom symbols
# GMT progs: pscoast, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 21
-# $Id$
#
# Purpose: Plot a time-series
# GMT progs: gmtset, gmtconvert, gmtinfo, psbasemap, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 23
-# $Id$
#
# Purpose: Plot distances from Rome and draw shortest paths
# GMT progs: grdmath, grdcontour, pscoast, psxy, pstext, grdtrack
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 24
-# $Id$
#
# Purpose: Extract subsets of data based on geospatial criteria
# GMT progs: gmtselect, pscoast, psxy, gmtinfo
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 25
-# $Id$
#
# Purpose: Display distribution of antipode types
# GMT progs: gmtset, grdlandmask, grdmath, grd2xyz, gmtmath, grdimage, pscoast, pslegend
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# $Id$
-# GMT EXAMPLE 26
#
# Purpose: Demonstrate general vertical perspective projection
# GMT progs: pscoast
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 27
-# $Id$
#
# Purpose: Illustrates how to plot Mercator img grids
# GMT progs: makecpt, mapproject, grdgradient, grdimage, grdinfo, pscoast
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 28
-# $Id$
#
# Purpose: Illustrates how to mix UTM data and UTM gmt projection
# GMT progs: makecpt, grdgradient, grdimage, grdinfo, grdmath, pscoast, pstext, mapproject
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 29
-# $Id$
#
# Purpose: Illustrates spherical surface gridding with Green's function of splines
# GMT progs: makecpt, grdcontour, grdgradient, grdimage, grdmath greenspline, psscale, pstext
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 30
-# $Id$
#
# Purpose: Show graph mode and math angles
# GMT progs: gmtmath, psbasemap, pstext and psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 31
-# $Id$
#
# Purpose: Illustrate usage of non-default fonts in PostScript
# GMT progs: gmtset, pscoast, psxy, pstext, pslegend
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 32
-# $Id$
#
# Purpose: Illustrate draping of an image over topography
# GMT progs: grdcut, grdedit, grdgradient, grdconvert, grdtrack, grdview
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 33
-# $Id $
#
# Purpose: Illustrate grdtrack's new cross-track and stacking options
# GMT progs: makecpt, gmtconvert, grdimage, grdgradient, grdtrack, pstext, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 34
-# $Id$
#
# Purpose: Illustrate pscoast with DCW country polygons
# GMT progs: pscoast, makecpt, grdimage, grdgradient
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 35
-# $Id$
#
# Purpose: Illustrate sphtriangulate and sphdistance with GSHHG crude data
# GMT progs: pscoast, psxy, makecpt, grdimage, grdcontour, sphtriangulate, sphdistance
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 36
-# $Id$
#
# Purpose: Illustrate sphinterpolate with Mars radii data
# GMT progs: psxy, makecpt, grdimage, sphinterpolate
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 37
-# $Id$
#
# Purpose: Illustrate 2-D FFT and coherence between gravity and bathymetry grids
# GMT progs: psbasemap, psxy, makecpt, grdfft, grdimage, grdinfo, grdgradient
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 38
-# $Id$
#
# Purpose: Illustrate histogram equalization on topography grids
# GMT progs: psscale, pstext, makecpt, grdhisteq, grdimage, grdinfo, grdgradient
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 39
-# $Id$
#
# Purpose: Illustrate evaluation of spherical harmonic coefficients
# GMT progs: psscale, pstext, makecpt, grdimage, grdgradient, sph2grd
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 40
-# $Id$
#
# Purpose: Illustrate line simplification and area calculations
# GMT progs: psbasemap, pstext, psxy, gmtsimplify, gmtspatial
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 41
-# $Id$
#
# Purpose: Illustrate typesetting of legend with table
# GMT progs: pscoast, pslegend, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 42
-# $Id$
#
# Purpose: Illustrate Antarctica and stereographic projection
# GMT progs: makecpt, grdimage, pscoast, pslegend, psscale, pstext, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 43
-# $Id$
#
# Purpose: Illustrate regression and outlier detection
# GMT progs: gmtregress, psbasemap, pslegend, pstext, psxy
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 44
-# $Id$
#
# Purpose: Illustrate use of map inserts
# GMT progs: pscoast, psbasemap, mapproject
View
@@ -1,6 +1,4 @@
#!/bin/bash
-# GMT EXAMPLE 45
-# $Id$
#
# Purpose: Illustrate use of trend1d mixed models
# GMT progs: pstext, psxy, trend1d
@@ -9,10 +9,8 @@ data: [HI_geoid2.nc, HI_topo2.nc]
---
As our second example we will demonstrate how to make color images from
-gridded data sets (again, we will defer the actual making of grid files
-to later examples). We will use `grdraster` to extract 2-D grid files
-of bathymetry and Geosat geoid heights and put the two images on the
-same page. The region of interest is the Hawaiian islands, and due to
+gridded data sets
+The region of interest is the Hawaiian islands, and due to
the oblique trend of the island chain we prefer to rotate our
geographical data sets using an oblique Mercator projection defined by
the hotspot pole at (68W, 69N). We choose the point (190, 25.5) to be
@@ -26,18 +24,7 @@ the lower left and upper right corner of region. In our case we choose
{% include {{page.script}} %}
{% endhighlight %}
-The first step extracts the 2-D data sets from the local data base using
-`grdraster` that may be adapted to reflect
-the nature of your data base format. It automatically figures out the
-required extent of the region given the two corners points and the
-projection. The extreme meridians and parallels enclosing the oblique
-region is **-R**\ 159:50/220:10/3:10/47:35. This is the area extracted
-by `grdraster`. For your convenience
-we have commented out those lines and provided the two extracted files
-so you do not need `grdraster` to try
-this example. By using the embedded grid file format mechanism we saved
-the topography using kilometers as the data unit. We now have two grid
-files with bathymetry and geoid heights, respectively. We use
+We use
`makecpt` to generate a linear color
palette file `geoid.cpt` for the geoid and use
`grd2cpt` to get a histogram-equalized
@@ -8,7 +8,6 @@ figure: ex003.png
data: [sat.xyg, shipsat.dos, ship.xyg]
---
-
In this example we will show how to use the GMT programs
:doc:`fitcircle </fitcircle>`, :doc:`project </project>`,
:doc:`sample1d </sample1d>`, :doc:`spectrum1d </spectrum1d>`,
@@ -8,7 +8,6 @@ figure: ex004.png
data: [geoid.cpt, HI_geoid4.nc, HI_topo4.nc, topo.cpt]
---
-
This example will illustrate how to make a fairly complicated composite
figure. We need a subset of the ETOPO5 bathymetry [1]_ and Geosat geoid
data sets which we will extract from the local data bases using
@@ -19,7 +18,6 @@ second layer showing the 3-D mesh plot of the topography. We also add an
arrow pointing north and some text. The first part of this script shows
how to do it:
-
{% highlight bash %}
{% include {{page.script}} %}
{% endhighlight %}
@@ -30,7 +28,6 @@ Figure shows the complete illustration.
![{{page.title}}]({{ page.id }}/{{ page.figure }})
-
The second part of the script shows how to make the color version of
this figure that was printed in our first article in *EOS Trans. AGU* (8
October 1991). Using :doc:`grdview </grdview>` one can
@@ -46,4 +43,4 @@ Note that the size of the resulting output file is directly dependent on
the square of the dpi chosen for the scanline conversion and how well
the resulting image compresses. A higher value for dpi in **-Qc** would
have resulted in a much larger output file. The CPT files were taken
-from Section [sec:example\ :sub:`0`\ 2].
+from Section [sec:example\ :sub:`0`\ 2].
Oops, something went wrong.

0 comments on commit e1d0b82

Please sign in to comment.