WANtaroHP (GMT: Sample)

toJA

Outline of this page

Following items are shown in this page.

Contents


Map of Japan

Script and figure by GMT

FilenameDescription
Batch file for GMT execution
Batch file for GMT execution
Batch file for GMT execution
Input file for jmap2 (coordinates of cities)
Input file for Jmap2 (boundary of prefectures)
Output image (blank map)
Output image (coastline)
Output image (location of main cities)


Map of world

Script and figure by GMT

World map

FilenameDescription
Batch file for GMT execution
Mercator Projection
Cylindrical Equidistant Projection
Miller Projection
Mollweide Projection
Hammer Projection
Eckert IV Projection
Orthographic Projection (centering Tokyo)

Great circle course

FilenameDescription
Batch file for GMT execution
Data of city coordinates for 'pstext'
Data of city coordinates for 'psxy'
Orthographic Projection (centering Kuala Lumpur)
Mercator Projection of East Asia area


Schmidt net (Lambert azimuthal equal-area projection)

Script and figure by GMT

FilenameDescription
Batch file for GMT execution
Output image (Northern hemisphere from North Pole)
Output image (Southern Hemisphere from South Pole)
Output image (Schmidt net point diagram)


Seismicity map of East Asia

earthquake data was downloaded from website of USGS.

Data format from USGS is shown below.


      Link to USGS Home Page 


  NEIC: Earthquake Search Results


                    U.  S.  G E O L O G I C A L  S U R V E Y

                     E A R T H Q U A K E  D A T A  B A S E



 FILE CREATED:  Sun Oct 30 05:53:38 2011
 Global Search   Earthquakes=    383175
 Catalog Used: PDE
 Date Range:   1900/01/01   to    2011/10/31
 Magnitude Range:   3.0  -  10.0
 Depth Range:    0  -  100
 Data Selection: Historical & Preliminary Data


 CAT    YEAR  MO DA  ORIG TIME   LAT    LONG  DEP  MAGNITUDE  IEM DTSVNWG DIST
                                                              NFO          km
                                                              TF

 PDE    1973  01 01 034609.80  -9.21  150.63  41  5.3 mbGS    ... .......
 PDE    1973  01 01 052229.80 -15.01 -173.96  33  5.0 mbGS    ... .......
 PDE    1973  01 01 114237.50 -35.51  -16.21  33  6.0 MsGS    ... .......
.......... .......... ..........
 PDE-Q  2011  10 28 084809.40  38.49   43.77  10  4.6 mbGS    ... .......
 PDE-Q  2011  10 28 090837.95 -40.63  126.42  10  4.7 mbGS    ... .......
 PDE-Q  2011  10 28 091846.27  35.53  -97.37   5  3.5 LgGS    ... .......

------------------------------------------------------------------------

*USGS National Earthquake Information Center*
USGS Privacy Statement  | Disclaimer
 	FirstGov 

Script and figure by GMT

FilenameDescription
Batch file to execute awk script
Awk script to find specified data
Awk script for legend drawing by GMT
Batch file for GMT execution
Output image

(Note) Input data for legend drawing is created in the batch file for GMT execution.



Samples of explanatory drawing

Script and figure by GMT (Embedded pipe model)

FilenameDescription
batch file for GMT execution
Output image (sample use of hachure patterns)

Script and figure by GMT (Shell model)

FilenameDescription
batch file for GMT execution 1
batch file for GMT execution 2
Output image 1
Output image 2


Comparison of climate (temperature and rainfall)

Outline

-P option of GMT and rotation of image

Script, data and figure by GMT

FilenameDescription
Batch file for control of GMT drawing
Batch file for main part of GMT drawing
Input file for Asahikawa
Input file for Akita
Input file for Tokyo
Input file for naha
Output image


Time-sequence diagram (monthly variation of temperature and rainfall)

Outline

Script, data and figure by GMT

FilenameDescription
Awk script for legend drawing by GMT
Batch file for GMT execution
Input data for plotting
Output image

(Note) Input data for legend drawing is created in the batch file for GMT execution.



Time-sequence diagram (daily variation of river discharge and duration curve)

Outline

Script, data and figure by GMT

FilenameDescription
Awk script for legend drawing by GMT
Awk script for sorting
batch file for GMT execution
Input data for plotting
Input data after sorting by 'awk_sort.awk' (for duration curve)
Output image

(Note) Input data for legend drawing is created in the batch file for GMT execution.



Normal axes graph (Time history of earthquake acceleration)

Outline

Input data format

dat_acc_TCGH16_EW2.csv
2011/03/11 14:46:00 TCGH16 EW2 Max.acc=1196.697  | Comment
dt,0.010                                         | Sampling period (sec)
ndata,30000                                      | Number of data
-1.890                                           | Acceleration (gal)
-1.888                                           | ...
-1.888                                           | ...
-1.891                                           |
.....                                            |
.....                                            |

Script, data and figure by GMT

FilenameDescription
Awk script for searceing max.and min.values and making batch file for GMT.
Batch file for GMT execution
Output image


Log-Log graph (Acceleration response spectrum)

Outline

Input data format

dat_spc_TCGH16_EW2.csv
2011/03/11 14:46:00 TCGH16 EW2 Max.acc=1196.697             | Comment
nt,200                                                      | Number of data
period(sec)  , acc(gal)     , vel(kine)    , dis(cm)        |
2.000000e-002, 1.196764e+003, 2.924900e-001, 1.213241e-002  | Period and
2.063122e-002, 1.198466e+003, 3.113090e-001, 1.292889e-002  |    Response
2.128236e-002, 1.200244e+003, 3.314467e-001, 1.377853e-002  | .....
.....                                                       |
.....                                                       |

Script, data and figure by GMT

FilenameDescription
Awk script for legend drawing by GMT
Batch file for GMT execution
Output image

(Note) Input data for legend drawing is created in the batch file for GMT execution.



Log-Log graph (Tripartite response spectrum)

Outline

Input data format

Input data format is the same as it for acceleration response spectrum.
dat_spc_TCGH16_EW2.csv
2011/03/11 14:46:00 TCGH16 EW2 Max.acc=1196.697             | Comment
nt,200                                                      | Number of data
period(sec)  , acc(gal)     , vel(kine)    , dis(cm)        |
2.000000e-002, 1.196764e+003, 2.924900e-001, 1.213241e-002  | Period and
2.063122e-002, 1.198466e+003, 3.113090e-001, 1.292889e-002  |    Response
2.128236e-002, 1.200244e+003, 3.314467e-001, 1.377853e-002  | .....
.....                                                       |
.....                                                       |

Script, data and figure by GMT

FilenameDescription
Awk script for legend drawing by GMT
Awk script for making line data for GMT
Awk script for making label data for GMT
Batch file for GMT execution
Output image

(Note) Input data for legend drawing is created in the batch file for GMT execution.



Semi-log graph (Fourier spectrum ratio)

Outline

Input data format

inp_fsr_t.csv
i, frq(Hz)                 , sp1               , sp2               , spr
1, 0.0000000000000000      , 68.644469660094956, 93.489593441899203, 1.3619391905106006
2, 3.05175781250000000E-003, 68.646266058682215, 93.493209037733777, 1.3619562199903368
3, 6.10351562500000000E-003, 68.651654422441766, 93.504054788801866, 1.3620073044916456
.....
.....
i No.
frqFrequency (Hz)
sp1Fourier spectrum 1
sp2Fourier spectrum 2
sprSpectrum ratio (sp2 / sp1)

Script, data and figure by GMT

FilenameDescription
Awk script for legend drawing by GMT
Awk script for peak searching (font 12, symbol 334)
Awk script for peak searching (font 34, symbol 342)
Batch file for GMT execution
Output image 1
Output image 2 (E-axis range and expression of scale are changed)

(Note) Input data for legend drawing is created in the batch file for GMT execution.



Histogram (Maximum daily rainfall in a year, cumulative rainfall in a year)

Outline

Script, data and figure by GMT

FilenameDescription
Batch file for GMT execution
Input data (max. daily rainfall)
Input data (cumulative rainfall)
Output by minmax, pshistogram (max.daily rainfall). First row shows the output by minmax.
Output by minmax, pshistogram (cumulative rainfall). First row shows the outout by minmax.
Output image (max.daily rainfall)
Output image (cumulative rainfall)

toJA
inserted by FC2 system