Image:India topo.jpg

From Wikipedia, the free encyclopedia

Contents

[edit] How to reproduce this map

It was created with GMT 4.0 (see above) under Linux. The following shell-script creates topo.ps (the actual map) and shadow.ps (to be used for the shadow). Also needed are 2 files from the external GLOBE topography dataset (see above): the g and h tiles. And for the ocean-bathymetry, ETOPO2 (comes in 1 big file) is also needed.

Unfortunately, GMT's database is not always correct regarding the borders. Therefore some of the borders between India and Pakistan/China have to be drawn by hand.

If anybody wants to translate the map or improve it otherwise, but does not want to install GMT, I can provide a version without the labels: contact me at my talk page: User talk:Captain_Blood

[edit] The shellscript

#!/bin/bash
# File: india.sh

FILE=india

AREA=-R66/5/102/36r
PROJ=-JB80/22/12/32/24c
DETAIL=-Dh
GRID=10
SCALE=-Lf87/6.8/20/500k
NATION1=-N1/5/255/255/255
NATION2=-N2/.5/255/255/255
LAND=-G155/155/155
WATER=-S150/150/255
COAST=-W2/40/40/120
RIVERS="-Ia/1/40/40/120 -I1/4/40/40/120 -I2/2/40/40/120"
ALL="-P $AREA $PROJ"
TOPO=../gh.grd
ILLU=-I../gh_i5.grd
# TOPO=../etopo2.grd
# ILLU=-I../etopo2_i5.grd
PALETTE=-C$FILE.cpt
TOPO2=../etopo2.grd
PALETTE2=-Cocean.cpt

# TOPO ########################################################################
# ocean
grdimage $TOPO2 $PALETTE2 $ALL -K >topo.ps
# clippath for land
pscoast $ALL $DETAIL -Gc -K -O >>topo.ps
# land
grdimage $TOPO $ILLU $PALETTE $ALL -K -O >>topo.ps
# clear clippath
pscoast -R -J -O -K -Q >>topo.ps

cp topo.ps temp.ps
cp temp.ps topo.ps

# coast, rivers
pscoast $ALL $DETAIL -B"$GRID"g"$GRID" $COAST $RIVERS $NATION1 $NATION2 \
    $SCALE -O -K >>topo.ps
psscale -D.4c/3.0c/2i/.2i $PALETTE -B:m: -L -P -O -K >>topo.ps

# SHADOW ######################################################################
pscoast $ALL $LAND $WATER $DETAIL $LAND $NATION1 -A0/0/1 -B"$GRID"g0 \
    >shadow.ps

# LABELS ######################################################################
function do_text () 
    # $1: input text file w/ coordinates/labels
    # $2: text parameter ("-G0/0/0 -W178/93/155")
    # $3: symbol parameter ("-Sc.045 -G255/0/0 -W")
    # $4: output file
{
    echo "do_text($*)"
    # filter BL/BR/TR/TL, print labels 
    grep " BL " $1 | pstext $ALL $2 -D.07/.07   -O -K >>$4
    grep " BR " $1 | pstext $ALL $2 -D-.14/.07  -O -K >>$4
    grep " TR " $1 | pstext $ALL $2 -D-.14/-.04 -O -K >>$4
    grep " TL " $1 | pstext $ALL $2 -D.07/-.04  -O -K >>$4
    grep " BC " $1 | pstext $ALL $2 -D0.0/.07   -O -K >>$4
    grep " TC " $1 | pstext $ALL $2 -D0.0/-.07  -O -K >>$4
    # print symbols 
    psxy $1 $ALL $3 -O -K >>$4
}

pscoast $ALL $DETAIL $LAND $COAST $WATER $RIVERS $NATION1 $NATION2\
    -B"$GRID"g0 -K >labels.ps

TF=topo.ps
# TF=labels.ps

TEXTF="-G255/255/255 -S4/0/0/0"
SYMBF="-G255/0/0 -W2/0/0/0"

do_text "$FILE"_cities "$TEXTF" "-Ss.2 $SYMBF" $TF
do_text "$FILE"_capital "$TEXTF" "-Sa.3 $SYMBF" $TF
do_text "$FILE"_peaks "$TEXTF" "-St.25 -W3/0/0/0" $TF
do_text "$FILE"_cross "$TEXTF" "-Sx.25 -W3/0/0/0" $TF
do_text "$FILE"_circle "$TEXTF" "-Sc.25 -W3/0/0/0" $TF

# GRID2=-B1g1
pstext "$FILE"_labels -V $GRID2 -JX24c/24c -R0/24/0/24 $TEXTF -O -K >>$TF

#usage: STRING FONT FSIZE 1=UP/0=DOWN X Y ARC STEP RADIUS
arctext "Ganges"          2 10 1  10.3  16.5  130  4.7  3.0 >arcs.txt
arctext "Brahmaputra"     2 10 1  17.5  18.1   90  1.8  8.0 >>arcs.txt
arctext "Indus"           2 10 1   5.4  20.0   25  2.5  6.0 >>arcs.txt
arctext "Arabian"         2 12 1   2.0   9.0  130  3.5  6.0 >>arcs.txt
arctext "Sea"             2 12 1   1.5   8.5  130  3.5  6.0 >>arcs.txt
arctext "Bay of Bengal"   2 12 1  16.0   7.0   90  3.5  6.0 >>arcs.txt

pstext arcs.txt -V -JX24c/24c -R0/24/0/24 $TEXTF -O >>$TF

[edit] The files used by the shellscript: 2 color palettes, 4 coordinate files

# File india.cpt
#COLOR_MODEL = RGB
#
0       0       97      71      50      16      122     47
#0      5       100     30      50      16      122     47
50      16      122     47      250     232     215     125
250     232     215     125     1000    161     67      0       
1000    161     67      0       2000    130     30      30
2000    130     30      30      4000    110     110     110
4000    110     110     110     6000    255     255     255
6000    255     255     255     9000    255     255     255
N 0 97 71
F 255 255 255
B 0 97 71
# File: ocean.cpt
#COLOR_MODEL = RGB
#
-11000   36  38 175     -5500   56  58 195
-5500    56  58 195     -3000   70  72 214
-3000    70  72 214     -2000   81 102 217
-2000    81 102 217      -750   100 129 223
 -750   100 129 223       -70   131 161 230
  -70   131 161 230       -20   164 192 240
  -20   164 192 240         0   170 200 255
N 170 200 255
F 170 200 255
B 170 200 255
# File: india_capital
77:13 28:37 10 0 0 BR NEW DELHI
# File: india_cities
72:51 18:56 10 0 0 BR Mumbai
88:20 22:30 10 0 0 BL Kolkata
77:35 12:58 10 0 0 BR Bangalore
92:44 11:40 10 0 0 TL Port Blair
83:18 17:42 10 0 0 TL Vishakhapatnam
80:18 13:05 10 0 0 BL Chennai
74:56 31:35 10 0 0 BL Amritsar
93:55 24:47 10 0 0 BL Imphal
77:28 23:17 10 0 0 BL Bhopal
76:15  9:56 10 0 0 BR Kochi
76:57  8:30 10 0 0 BR Thiruvananthapuram
75:50 26:53 10 0 0 BR Jaipur
74:50 34:08 10 0 0 BL Srinagar
80:54 26:50 10 0 0 BL Lucknow
78:26 17:22 10 0 0 BL Hyderabad
78:00 27:09 10 0 0 BL Agra
73:50 15:29 10 0 0 TR Panaji
79:50 11:59 10 0 0 TL Pondicherry
94:08 25:40 10 0 0 BL Kohima
85:50 20:13 10 0 0 TL Bhubaneswar
81:38 21:14 10 0 0 BL Raipur
79:12 21:10 10 0 0 TR Nagpur
72:40 23:03 10 0 0 BL Ahmedabad
73:58 18:34 10 0 0 BL Pune
72:50 21:10 10 0 0 BL Surat
80:21 26:28 10 0 0 TR Kanpur
76:48 30:45 10 0 0 BR Chandigarh
85:12 25:37 10 0 0 BL Patna
93:38 27:02 10 0 0 BL Itanagar
85:20 23:22 10 0 0 BL Ranchi
92:45 23:45 10 0 0 BL Aizawl
70:53 22:18 10 0 0 TR Rajkot
73:47 24:36 10 0 0 BL Udaipur
70:55 26:52 10 0 0 BL Jaisalmer
79:59 23:10 10 0 0 BL Jabalpur
83:00 25:20 10 0 0 TL Varanasi
72:37 10:34 10 0 0 BL Kavaratti
91:53 25:34 10 0 0 TR Shillong
77:10 31:06 10 0 0 BL Shimla
78:03 30:19 10 0 0 TR Dehradun
91:52 26:03 10 0 0 BR Guwahati
88:39 27:20 10 0 0 TR Gangtok
91:15 23:49 10 0 0 TL Agartala
# File: india_labels
 3.0 17.5 12 0 0 CM PAKISTAN
 2.0 22.0 12 0 0 CM AFGHANISTAN
 5.5  0.5 12 0 0 CM MALDIVES
11.3  1.3 12 0 0 CM SRI LANKA
22.5  0.5 12 0 0 CM INDONESIA
21.5 12.5 12 0 0 CM BURMA
17.3 14.3 12 0 0 CM BANGLA-
17.3 13.8 12 0 0 CM DESH
12.5 17.1 12 0 0 CM NEPAL
17.0 21.0 12 0 0 CM CHINA
17.4 16.4 12 0 0 CM BHUTAN

 5.0  5.0 10 0 2 CM Lakshadweep
 4.1  4.5 10 0 2 CM Islands
18.5  4.5 10 0 2 CM Andaman 
18.5  4.0 10 0 2 CM Islands 
19.5  2.0 10 0 2 CM Nicobar
19.5  1.5 10 0 2 CM Islands

 4.9  9.7 10 0 0 CM (Bombay)
16.9 12.4 10 0 0 CM (Calcutta)
11.5  5.3 10 0 0 CM (Madras)
 6.6  1.9 10 0 0 CM (Trivandrum)
 7.2  3.0 10 0 0 CM (Cochin)
# File: india_peaks
79:58 30:21 10 0 2 BL Nanda Devi
88:10 27:40 10 0 2 BR Kangchenjunga
76:30 35:53 10 0 2 BL K2

[edit] Notes

Images (obtained for instance with pscoast) can be clipped by using 'polygonal clip paths' via the psclip command. See GMT man pages. Examples of such polygons are country borders, a useful database of which can be found at http://www.mobilegeographics.com/downloads/st_cntry_bndrs.tar.gz.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current14:18, 12 July 20051,400×1,350 (723 KB)Captain Blood (Talk | contribs)
22:15, 7 July 20051,400×1,350 (716 KB)Captain Blood (Talk | contribs) (Pakistan, China borders corrected, labels)
17:40, 3 July 20051,400×1,350 (696 KB)Captain Blood (Talk | contribs) ({{GMT}})

No pages on the English Wikipedia link to this file. (Pages on other projects are not counted.)
Languages