1
! $Id: x19f.f90,v 1.1 2006/05/16 20:24:13 airwin Exp $
3
! Copyright (C) 2004 Alan W. Irwin
5
! This file is part of PLplot.
7
! PLplot is free software; you can redistribute it and/or modify
8
! it under the terms of the GNU General Library Public License as
9
! published by the Free Software Foundation; either version 2 of the
10
! License, or (at your option) any later version.
12
! PLplot is distributed in the hope that it will be useful,
13
! but WITHOUT ANY WARRANTY; without even the implied warranty of
14
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
! GNU Library General Public License for more details.
17
! You should have received a copy of the GNU Library General Public
18
! License along with PLplot; if not, write to the Free Software
19
! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
!--------------------------------------------------------------------------
25
! Defines identity transformation for example 19.
26
! x(), y() are the coordinates to be plotted.
27
! This is a 0-OP routine, to play the role of NULL in the C version!
28
!--------------------------------------------------------------------------
30
subroutine ident(n, x, y)
41
!--------------------------------------------------------------------------
44
! Defines specific coordinate transformation for example 19.
45
! Not to be confused with mapform in src/plmap.c.
46
! x(), y() are the coordinates to be plotted.
47
!--------------------------------------------------------------------------
49
subroutine mapform19(n, x, y)
50
use plplot, PI => PL_PI
58
real(kind=plflt) xp, yp, radius
61
radius = 90.0_plflt - y(i)
62
xp = radius * cos(x(i) * PI / 180.0_plflt)
63
yp = radius * sin(x(i) * PI / 180.0_plflt)
70
!--------------------------------------------------------------------------
73
! Shows two views of the world map.
74
!--------------------------------------------------------------------------
79
real(kind=plflt) minx, maxx, miny, maxy
84
! Process command-line arguments
85
call plparseopts(PL_PARSE_FULL)
87
! Longitude (x) and latitude (y)
101
call plenv(minx, maxx, miny, maxy, 1, -1)
102
call plmap(ident, 'usaglobe', minx, maxx, miny, maxy)
110
call plenv(minx, maxx, miny, maxy, 1, -1)
111
call plmap(ident, 'usaglobe', minx, maxx, miny, maxy)
113
! Polar, Northern hemisphere
118
call plenv(-75._plflt, 75._plflt, -75._plflt, &
120
call plmap(mapform19,'globe', minx, maxx, miny, maxy)
123
call plmeridians(mapform19,10.0_plflt, 10.0_plflt, &
124
0.0_plflt, 360.0_plflt, -10.0_plflt, &