Академический Документы
Профессиональный Документы
Культура Документы
625244 R2003.0
May 2002
Trademark Notices
Landmark, the Landmark logo, 3D Drill View, 3D Drill View KM, 3DVIEW, Active Field Surveillance,
Active Reservoir Surveillance, ARIES, Automate, BLITZ, BLITZPAK, CasingSeat, COMPASS,
Contouring Assistant, DataStar, DBPlot, Decision Suite, Decisionarium, DecisionDesktop, DecisionSpace,
DepthTeam, DepthTeam Explorer, DepthTeam Express, DepthTeam Extreme, DepthTeam Interpreter, DESKTOPPVT, DESKTOP-VIP, DEX, DFW, DIMS, Discovery, Drillability Suite, DrillModel, DrillVision, DSS, Dynamic
Surveillance System, EarthCube, EdgeCa$h, eLandmark, EPM, e-workspace, FastTrack, FZAP!, GeoDataLoad,
GeoGraphix, GeoGraphix Exploration System, GeoLink, GES, GESXplorer, GMAplus, GrandBasin, GRIDGENR, I2
Enterprise, iDims, IsoMap, LandScape, LeaseMap, LMK Resources, LogEdit, LogM, LogPrep, Make Great
Decisions, MathPack, Model Builder, MyLandmark, MyWorkspace, OpenBooks, OpenExplorer, OpenJournal,
OpenSGM, OpenTutor, OpenVision, OpenWorks, OpenWorks Well File, PAL, Parallel-VIP, PetroBank, PetroWorks,
PlotView, Point Gridding Plus, Pointing Dispatcher, PostStack, PostStack ESP, PRIZM, PROFILE, ProMAX,
ProMAX 2D, ProMAX 3D, ProMAX 3DPSDM, ProMAX MVA, ProMAX VSP, pStaX, QUICKDIF, RAVE, Real
Freedom, Reservoir Framework Builder, RESev, ResMap, RMS, SafeStart, SCAN, SeisCube, SeisMap, SeisModel,
SeisSpace, SeisVision, SeisWell, SeisWorks, SeisXchange, SigmaView, SpecDecomp, StrataMap, Stratamodel,
StratAmp, StrataSim, StratWorks, StressCheck, STRUCT, SynTool, SystemStart, T2B, TDQ, TERAS, Total Drilling
Performance, TOW/cs, TOW/cs The Oilfield Workstation, Trend Form Gridding, Turbo Synthetics, VIP, VIP-COMP,
VIP-CORE, VIP-DUAL, VIP-ENCORE, VIP-EXECUTIVE, VIP-Local Grid Refinement, VIP-POLYMER, VIPTHERM, WavX, Web OpenWorks, Well Editor, Wellbase, Wellbore Planner, WELLCAT, WELLPLAN,
WellXchange, wOW, Xsection, ZAP!, Z-MAP Plus are trademarks, registered trademarks or service marks of
Landmark Graphics Corporation.
All other trademarks are the property of their respective owners.
Note
The information contained in this document is subject to change without notice and should not be construed as a
commitment by Landmark Graphics Corporation. Landmark Graphics Corporation assumes no responsibility for any
error that may appear in this manual.
Landmark Graphics
Contents
Introduction .....................................................................................................................1
Purpose of This Guide ......................................................................................................1
What Is in This Guide .......................................................................................................2
Typographic Conventions.................................................................................................3
Related Documentation.....................................................................................................4
R2003.0
iii
Landmark Graphics
iv
Contents
R2003.0
Landmark Graphics
R2003.0
Contents
SIIZIG
SIOVLY
SIPCAS
SIPCCP
SIPCDF
SIPCDL
SIPCFL
SIPCRN
SIRPIC
SIZGCM
SOGCLS
SOGEND
SOGINT
SOGLGB
Landmark Graphics
vi
Contents
R2003.0
Landmark Graphics
SIMFAT
SIMFCM
SIMFCR
SIMFDT
SIMFLS
SIMFRN
SINOPN
SIOOPN
SIPRRC
SIPRRD
SIPRRG
SIPRWC
SIPRWD
SIPRWG
SIRDPO
SIRDRN
SIRDSQ
SIRHIS
SIWHIS
SIWRPO
SIWRRN
SIWRSQ
R2003.0
Contents
vii
Landmark Graphics
viii
Contents
R2003.0
Landmark Graphics
Introduction
Overview
The Z-MAP Plus I/O Access Library (referred to as ZPI/O) is a set of
FORTRAN-callable subroutines that can be linked into a nonLandmark program to perform functions available in Z-MAP Plus. The
input control parameters are essentially the same as those required if
the modules are used in Z-MAP Plus, and the results are identical since
the same processing code is used in either case. Therefore, information
generated by Z-MAP Plus or by the user-written program can be used
interchangeably.
This guide describes how to use ZPI/O in custom programs. Each of the
ZPI/O subroutines is documented with appropriate programming notes.
Sample programs are included, as are step-by-step guides for graphics
and file management programming.
R2003.0
Landmark Graphics
R2003.0
Draw and Plot Features (page 69) lists the subroutines used for
drawing lines from an array or member file, and displaying or
plotting a picture.
File Utilities (page 169) lists subroutines used for initializing the
information management environment; opening and closing
master files; attaching, compressing, creating, detaching and
listing master files; renaming the internal name of a master file;
opening, closing, deleting, listing, reading, writing, and obtaining
information from member files; positioning member files; and
reading, writing, and setting defaults for field descriptors.
Landmark Graphics
Typographic Conventions
To make the information in this guide as accessible as possible, the
following conventions are observed throughout:
R2003.0
Landmark Graphics
Related Documentation
The following guides are available from your system administrator or
Landmark representative.
R2003.0
Landmark Graphics
ZPI/O Overview
Introduction
The Z-MAP Plus I/O Access Library (referred to as ZPI/O) is a set of
FORTRAN-callable subroutines that can be linked into a
non-Landmark program to perform functions available in Z-MAP Plus.
The input control parameters are essentially the same as those required
if the modules are used in Z-MAP Plus, and the results are identical
since the same processing code is used in either case. Therefore,
information generated by Z-MAP Plus or by the user-written program
can be used interchangeably.
The routines included in the ZPI/O Access Library are compiled under
FORTRAN 77. Every reasonable effort has been made to minimize
system dependenciesif they do exist, they are localized.
This section contains information about the following topics:
R2003.0
Landmark Graphics
Initialization
A. Initialize the ZPI/O environment SICOMM or SIISIL
B. ZIMS initialization, initialize master files SIIZIM
C. ZIGS initialization SIIZIG
II. File Utilities
A. Open new dataset SINOPN
B. Write field descriptors SIFLDW
C. Read data SIFRED
D. Write data SIFWRT
E. Write parameter record SIPRWD, SIPRWG or SIPRWC
F. Close dataset SIFCLO
III. Graphics Features
A. Open graphics file SIIZGF
B. Open picture S3IPIC, S2NPIC, S2OPIC or SIRPIC
C. Graphics Draw and Plot Features or Graphics Utilities
D. Close picture SIEPIC
E. Close graphics file SIEZGF
IV. Termination
A. Close graphics SIEZIG
B. Terminate ZPI/O environment SIIESIL
R2003.0
Landmark Graphics
Reading:
R2003.0
Landmark Graphics
C
CHARACTER *80 NAMMFD(4)
C
C
C
C
C
C
C
C
C
INITIALIZE ZIMS
NAME OF MFD TO ATTACH
NON UNIX SYSTEMS MAY NAME THE MFD IN A DIFFERENT MANNER
NAMMFD(1) = /zplus1/users/wow/zpio/zpio.mfd
MFDNUM = 1
LUNDRC = 20
CALL SIIZIM(NAMMFD, MFDNUM, LUNDRC, ISTAT)
R2003.0
Landmark Graphics
C
C
R2003.0
Landmark Graphics
C
C
C
C
C
C
C
C
C
C
C
CALL SIIZIG
10
R2003.0
Landmark Graphics
C
C
C
C
CALL SIIZGF (ZGFNAM, HISNEW, NEWZGF, HISOLD, ISTAT)
IF (ISTAT .GT. 0) THEN
WRITE(LUNBUG, 100) ISTAT
FORMAT(zpiodraw siizgf returns istat ,i5)
GO TO 800
END IF
100
C
C
OPEN A NEW
PICNAM =
IFOLD =
IFABSC =
IFPRJ =
IBRTIP =
XOFFST =
FREEX =
YOFFST =
FREEY =
VXMIN =
VXMAX =
VYMIN =
VYMAX =
XSCMAP =
YSCMAP =
XLONG =
YLONG =
PICTURE
HELLO WORLD ON A PICTURE
NEW
0
1
2
1.0
1.0
1.0
1.0
0.0
10.0
0.0
10.0
1.0
1.0
10.0
10.0
C
CALL S3IPIC (PICNAM, IFOLD, IFABSC, IFPRJ,
IABSSC, LONMND, LONMNM, LONMNS,
LONMXM, LONMXS, LATMND, LATMNM,
LATMXD, LATMXM, LATMXS, IHEM,
IPJCOD, ISPCOD, IUNCOD, IRADTY
VXMAX, VYMIN, VYMAX, XOFFST,
YOFFST, FREEY, XSCMAP, YSCMAP,
YLONG, BOTPAR, TOPPAR, REFLAT,
REFLON, SFLON, FNORTH, FEAST,
AXISA, AXISB, AZMTH, SCALE,
YLNVEW, ISTAT )
IF (ISTAT .GT. 0) THEN
WRITE(LUNBUG, 200) ISTAT
FORMAT(ZPIODRAW S3IPIC RETURNS ISTAT OF
GO TO 800
END IF
1
2
3
4
5
6
7
8
9
.
200
C
C
R2003.0
IBRTIP,
LONMXD,
LATMNS,
IUTMCD,
VXMIN,
FREEX,
XLONG,
SFLAT,
UNTFAC,
XLNVEW,
,I5)
11
Landmark Graphics
350
C
C
C
LGBTYP = 1
CALL SIGSOP(LGBTYP, ISTAT)
IF (ISTAT .GT. 0) THEN
WRITE(LUNBUG, 350) ISTAT
FORMAT(ZPIODRAW SIGSOP RETURNS ISTAT OF ,I5)
GO TO 800
END IF
SET DEFAULTS
KTXTCL = 7
KIXTJU = 3
KTXTFO = 2
HTTEXT = .5
CALL SIGPDF(
1
KLNCLR, KLNTYP, KMKCLR, KMKTYP, KTXTCL,
2
KTXTFO, KTXTJU, KPOLCL, KSCLTY, WDLINE,
3
HTMARK, HTTEXT, ROTEXT, DSHLEN, DSHGAP,
4
HSHLEN, HSHGAP, HSHWAY, ISTAT)
IF (ISTAT .GT. 0) THEN
WRITE(LUNBUG, 300) ISTAT
300
FORMAT(ZPIODRAW SIGPDF RETURNS ISTAT OF ,I5)
GO TO 800
END IF
C
C
C
360
NUMPTS =
5
XCORS(1) = 1.0
YCORS(1) = 1.0
XCORS(2) = 11.0
YCORS(2) = 1.0
XCORS(3) = 11.0
YCORS(3) = 11.0
XCORS(4) = 1.0
YCORS(4) = 11.0
XCORS(5) = 1.0
YCORS(5) = 1.0
CALL SIGLIN(NUMPTS, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) THEN
WRITE(LUNBUG, 360) ISTAT
FORMAT(ZPIODRAW SIGLIN RETURNS ISTAT OF ,I5)
END IF
12
R2003.0
Landmark Graphics
C
C
DRAW TEXT
NUMCHR =
11
XCORS(1) = 4.0
YCORS(1) = 5.0
TEXT
= HELLO WORLD
CALL SIGTXT(TEXT, NUMCHR, XCORS(1), YCORS(1), ISTAT )
IF (ISTAT .GT. 0) WRITE(LUNBUG, 370) ISTAT
FORMAT(ZPIODRAW: SIGTXT ISTAT,I3, GRAPHICS FEATURE NOT
370
OPEN)
C
C
C
400
CALL SIGSCL(ISTAT)
IF (ISTAT .GT. 0) THEN
WRITE(LUNBUG, 400) ISTAT
FORMAT(ZPIODRAW SIGSCL RETURNS ISTAT OF ,I5)
END IF
C
800
CONTINUE
C
C
500
C
C
R2003.0
TERMINATION
CALL SIESIL(ISTAT)
STOP
END
13
Landmark Graphics
PURPOSE:
C
DOUBLE PRECISION
VXMIN,
VXMAX,
VYMIN,
VYMAX
C
DIMENSION XCORS(10), YCORS(10)
C
DATA NOMFDS/1/, LUNDIR/20/, LTHWRK/30000/, IDBUG /1/, IPROC/
0/
DATA LUNINF/6/, LUNSTA/6/, LUNWAR/6/, LUNERO/6/, LUNBUG/6/
DATA LUNDM1/0/, LUNDM2/0/
C
WRITE(LUNBUG,9992)
FORMAT(//,25X, THIS ROUTINE TESTS ,/,
. TEST THE INPUT GRAPHICS ROUTINES )
9992
C
C
C
.
C
CALL SIIZIG
C
C
C
C
C
C
C
C
C
C
IFNEW
XOFSET
XFREE
YOFSET
YFREE
XVEWLN
YVEWLN
C
CALL SIIZGF (ZGFNAM, HISNEW, NEWZGF, HISOLD, ISTAT)
IF (ISTAT .GT. 0) GO TO 800
14
R2003.0
Landmark Graphics
C
PICNAM
IFOLD
IFABSC
IFPRJ
IBRTIP
IABSSC
LONMND
LONMNM
LONMNS
LONMXD
LONMXM
LONMXS
LATMND
LATMNM
LATMNS
LATMXD
LATMXM
LATMXS
IHEM
IUTMCD
IPJCOD
ISPCOD
IUNCOD
IRADTY
XOFFST
FREEX
YOFFST
FREEY
VXMIN
VXMAX
VYMIN
VYMAX
XSCMAP
YSCMAP
XLONG
YLONG
BOTPAR
TOPPAR
REFLAT
SFLAT
REFLON
SFLON
FNORTH
FEAST
UNTFAC
AXISA
AXISB
AZMTH
SCALE
XLNVEW
YLNVEW
R2003.0
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
DEFAULT GRAPHICS
NEW
0
1
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.0
1.0
1.0
1.0
0.0
10.0
0.0
10.0
1.0
1.0
10.0
10.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
15
Landmark Graphics
C
CALL S3IPIC (PICNAM,
IABSSC,
LONMXM,
LATMXD,
IPJCOD,
VXMAX,
YOFFST,
YLONG,
REFLON,
AXISA,
YLNVEW,
IF (ISTAT .GT. 0)
1
2
3
4
5
6
7
8
9
.
C
C
C
IFOLD, IFABSC,
LONMND, LONMNM,
LONMXS, LATMND,
LATMXM, LATMXS,
ISPCOD, IUNCOD,
VYMIN, VYMAX,
FREEY, XSCMAP,
BOTPAR, TOPPAR,
SFLON, FNORTH,
AXISB, AZMTH,
ISTAT )
GO TO 800
IBRTIP,
LONMXD,
LATMNS,
IUTMCD,
VXMIN,
FREEX,
XLONG,
SFLAT,
UNTFAC,
XLNVEW,
SET DEFAULTS
CALL SIGPDF(
KLNCLR, KLNTYP,
KTXTFO, KTXTJU,
HTMARK, HTTEXT,
HSHLEN, HSHGAP,
IF (ISTAT .GT. 0) GO TO
1
2
3
4
C
C
C
IFPRJ,
LONMNS,
LATMNM,
IHEM,
IRDATY
XOFFST,
YSCMAP,
REFLAT,
FEAST,
SCALE,
KMKCLR,
KPOLCL,
ROTEXT,
HSHWAY,
800
KMKTYP, KTXTCL,
KSCLTY, WDLINE,
DSHLEN, DSHGAP,
ISTAT)
C
C
C
5
1.0
1.0
11.0
1.0
11.0
11.0
1.0
11.0
1.0
1.0
C
CALL SIGLIN(NUMPTS, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
C
C
C
C
16
R2003.0
Landmark Graphics
C
NUMMRK =
3
XCORS(1) = 2.0
YCORS(1) = 6.0
XCORS(2) = 10.0
YCORS(2) = 6.0
XCORS(3) = 6.0
YCORS(3) = 10.0
C
CALL SIGMRK(NUMMRK, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
NUMPTS =
2
XCORS(1) = 2.50
YCORS(1) = 6.0
XCORS(2) = 9.50
YCORS(2) = 6.0
CALL SIGLIN(NUMPTS, XCORS,
IF (ISTAT .GT. 0) GO TO
XCORS(1) = 9.50
YCORS(1) = 6.50
XCORS(2) = 6.50
YCORS(2) = 9.50
CALL SIGLIN(NUMPTS, XCORS,
IF (ISTAT .GT. 0) GO TO
XCORS(1) = 5.50
YCORS(1) = 9.50
XCORS(2) = 2.50
YCORS(2) = 6.50
CALL SIGLIN(NUMPTS, XCORS,
IF (ISTAT .GT. 0) GO TO
C
C
C
YCORS, ISTAT )
800
YCORS, ISTAT )
800
YCORS, ISTAT )
800
C
C
C
C
C
C
DO TEXT
NUMCHR =
20
XCORS(1) = 3.0
IF (ISTAT .GT. 0) GO TO 800
XCORS(1) = 5.50
YCORS(1) = 9.50
XCORS(2) = 2.50
YCORS(2) = 6.50
CALL SIGLIN(NUMPTS, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
R2003.0
17
Landmark Graphics
C
CALL SIGSCL(ISTAT)
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
C
C
C
C
DO TEXT
NUMCHR =
20
XCORS(1) = 3.0
YCORS(1) = 5.0
TEXT
= TEST INPUT GRAPHICS
123456789 123456789
CALL SIGTXT(TEXT, NUMCHR, XCORS(1), YCORS(1), ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
NUMCHR =
4
XCORS(1) = 5.50
YCORS(1) = 7.0
TEXT
= HI!
C
CALL SIGTXT(TEXT, NUMCHR, XCORS(1), YCORS(1), ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
C
C
C
C
C
133
18
R2003.0
Landmark Graphics
C
CALL SIGPFL(NUMVTX, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
C
C
C
IF(IDBUG .EQ. 1) THEN
WRITE(LUNBUG,1002)
1002
FORMAT(15X, ***** END OF FIRST PICTURE ****** )
WRITE(LUNBUG, 2001)
2001
FORMAT(15X, ***** BEGINNING OF SECOND PICTURE ****** )
ENDIF
C
PICNAM
IFOLD
IFABSC
IFPRJ
IBRTIP
IABSSC
LONMND
LONMNM
LONMNS
LONMXD
LONMXM
LONMXS
LATMND
LATMNM
LATMNS
LATMXD
LATMXM
LATMXS
IHEM
IUTMCD
IPJCOD
ISPCOD
XOFFST
FREEX
YOFFST
FREEY
IRADTY
VXMIN
VXMAX
VYMIN
VYMAX
XSCMAP
YSCMAP
XLONG
YLONG
BOTPAR
TOPPAR
REFLAT
SFLAT
R2003.0
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
SETTING GRAPHICS
NEW
0
1
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.0
1.0
1.0
1.0
0
0.0
10.0
0.0
10.0
1.0
1.0
10.0
10.0
0.0
0.0
0.0
0.0
19
Landmark Graphics
=
=
=
=
=
=
=
=
=
=
=
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
C
CALL S3IPIC (PICNAM,
IABSSC,
LONMXM,
LATMXD,
IPJCOD,
VXMAX,
YOFFST,
YLONG,
REFLON,
AXISA,
YLNVEW,
IF (ISTAT .GT. 0)
1
2
3
4
5
6
7
8
9
.
C
C
C
IFOLD, IFABSC,
LONMND, LONMNM,
LONMXS, LATMND,
LATMXM, LATMXS,
ISPCOD, IUNCOD,
VYMIN, VYMAX,
FREEY, XSCMAP,
BOTPAR, TOPPAR,
SFLON, FNORTH,
AXISB, AZMTH,
ISTAT )
GO TO 800
IBRTIP,
LONMXD,
LATMNS,
IUTMCD,
VXMIN,
FREEX,
XLONG,
SFLAT,
UNTFAC,
XLNVEW,
SET DEFAULTS
CALL SIGPDF(
KLNCLR, KLNTYP,
KTXTFO, KTXTJU,
HTMARK, HTTEXT,
HSHLEN, HSHGAP,
IF (ISTAT .GT. 0) GO TO
1
2
3
4
C
C
C
IFPRJ,
LONMNS,
LATMNM,
IHEM,
IRADTY
XOFFST,
YSCMAP,
REFLAT,
FEAST,
SCALE,
KMKCLR,
KPOLCL,
ROTEXT,
HSHWAY,
800
KMKTYP, KTXTCL,
KSCLTY, WDLINE,
DSHLEN, DSHGAP,
ISTAT)
C
C
C
C
C
20
R2003.0
Landmark Graphics
C
IRED = 2
CALL SIGLCL(IRED, ISTAT)
IF (ISTAT .GT. 0) GO TO 800
LDASH = 2
CALL SIGLTY(LDASH, ISTAT)
IF(ISTAT .GT. 0) GO TO 800
WIDTH = 4.0
CALL SIGLWD(WIDTH, ISTAT)
IF(ISTAT .GT. 0) GO TO 800
C
C
C
5
1.0
1.0
11.0
1.0
11.0
11.0
1.0
11.0
1.0
1.0
C
CALL SIGLIN(NUMPTS, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
C
C
C
C
C
C
C
C
ISTAT)
GO TO 800
ISTAT)
GO TO 800
R2003.0
21
Landmark Graphics
C
CALL S2GMRK(NUMMRK, XCORS, YCORS, ROTATE, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
NUMPTS =
2
XCORS(1) = 2.50
YCORS(1) = 6.0
XCORS(2) = 9.50
YCORS(2) = 6.0
CALL SIGLIN(NUMPTS, XCORS,
IF (ISTAT .GT. 0) GO TO
XCORS(1) = 9.50
YCORS(1) = 6.50
XCORS(2) = 6.50
YCORS(2) = 9.50
CALL SIGLIN(NUMPTS, XCORS,
IF (ISTAT .GT. 0) GO TO
XCORS(1) = 5.50
YCORS(1) = 9.50
XCORS(2) = 2.50
YCORS(2) = 6.50
CALL SIGLIN(NUMPTS, XCORS,
IF (ISTAT .GT. 0) GO TO
C
C
C
YCORS, ISTAT )
800
YCORS, ISTAT )
800
YCORS, ISTAT )
800
C
C
C
C
C
22
R2003.0
Landmark Graphics
C
ICYAN = 5
CALL SIGTCL(ICYAN, ISTAT)
IF(ISTAT .GT. 0) GO TO 800
TXTHGT = 0.5
CALL SIGTHT(TXTHGT, ISTAT)
IF(ISTAT .GT. 0) GO TO 800
JUSTCT = 3
CALL SIGTJU(JUSTCT, ISTAT)
IF(ISTAT .GT. 0) GO TO 800
IATLIC = 4
CALL SIGTFO(IATLIC, ISTAT)
IF(ISTAT .GT. 0) GO TO 800
TXTANG = 45.0
CALL SIGTRO(TXTANG, ISTAT)
IF(ISTAT .GT. 0) GO TO 800
C
C
C
C
C
DO TEXT
NUMCHR =
20
XCORS(1) = 3.0
YCORS(1) = 5.0
TEXT
= TEST INPUT GRAPHICS
123456789 123456789
CALL SIGTXT(TEXT, NUMCHR, XCORS(1), YCORS(1), ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
ISTAT)
GO TO 800
ISTAT)
GO TO 800
ISTAT)
GO TO 800
ISTAT)
GO TO 800
ISTAT)
GO TO 800
C
NUMCHR =
4
XCORS(1) = 5.50
YCORS(1) = 7.0
TEXT
= HI!
C
CALL SIGTXT(TEXT, NUMCHR, XCORS(1), YCORS(1), ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
R2003.0
23
Landmark Graphics
C
C
C
155
C
NUMVTX =
5
XCORS(1) = 4.50
YCORS(1) = 6.50
XCORS(2) = 7.50
YCORS(2) = 6.50
XCORS(3) = 7.50
YCORS(3) = 8.0
XCORS(4) = 4.50
YCORS(4) = 8.0
XCORS(5) = 4.50
YCORS(5) = 6.50
write(6, 155)
format( b)
CALL SIGPFL(NUMVTX, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
C
C
C
C
C
C
C
IF(IDBUG .EQ. 1) THEN
WRITE(LUNBUG, 2002)
END IF
2002
FORMAT(15X, ***** END OF SECOND PICTURE ***** )
C
C
C
999 CONTINUE
IF(ISTAT .NE. 0) WRITE(LUNERR, 899) NAMRET, ISTAT
899 FORMAT( ****** ,A6, - ERROR, PROGRAM DID NOT COMPLETE ,
1 SUCCESSFULLY: STATUS FLAG = ,I5)
C
9993
WRITE(LUNBUG,9993) NAMRET
FORMAT(//,20X, ++++++ ENDING OF TESTING ROUTINE ++++++ ,//,
. 1X,30(=),2X,A6,2X,30(=) )
C
STOP
END
24
R2003.0
Landmark Graphics
Subroutine Descriptions
The most important parts of this guide are the subroutine descriptions.
Considerable effort has gone into constructing a set of consistent
interfaces.
Presentation of Information
The following categories of information are included for subroutine
descriptions:
25
Name
Function
Note
Environment
Format
Input Arguments
Output Arguments
R2003.0
Landmark Graphics
Name
Subroutine names are always six characters long, the first character
being an S. This is followed by one of the following:
Function
This is a brief, one-line description of what the subroutine does.
Additional detail is provided in the paragraph(s) that follow.
Note
Included are notes about arguments and other subroutines, examples,
hints and suggestions.
Environment
The environment description covers the environment that must be
established before and after this subroutine is executed, such as any
files that must be opened, data from other subroutines, system
dependencies, etc.
R2003.0
26
Landmark Graphics
Format
This is the format of the FORTRAN 77 call statement with all required
arguments. Recommended names are provided for each argument.
Input Arguments
Input arguments are arranged in a table of three columns:
argument name
data type
description and default
Argument Name
The recommended names conform to FORTRAN-implicit typing
conventions for INTEGER and REAL.
Input/Output (I/O) Arguments
There are a few instances in which an argument may need to be both an input and
an output argument. This is especially true if a new file is being created by a
process. If that file already exists, a version number is added and passed back in
the same argument. This makes the version number available for use in a later
subroutine if it is needed.
The code appears at the left side of the argument name to indicate that the
argument is used for both input and output.
27
R2003.0
Landmark Graphics
Data Type
Data types are listed as:
C
D
I
L
R
=
=
=
=
=
CHARACTER
DOUBLE PRECISION
INTEGER
LOGICAL
REAL
Description
The description column contains a brief explanation of the arguments
function. Some arguments must have specific values. These values are
tabulated and explained in a list below the argument description. The
following mathematical symbols precede the values as needed:
> = less than
< = greater than
The notation Default = indicates computed default values.
The notation Range Options: indicates the acceptable range of values.
The notation Recommend: indicates a recommended value.
Output Arguments
Output arguments are typically used to convey completion status
information. The format of this information is essentially the same as
for Input Arguments (see pages 27 to 28).
R2003.0
28
Landmark Graphics
Calling Arguments
It is a good idea to use only variable names rather than constants in the
calling arguments, because on occasion that variable may be
overwritten due to a conflict in parameters. If this is found to be the
case, please notify us. Also, the variables should not be set using the
PARAMETER statement since these cannot be overridden.
29
R2003.0
Landmark Graphics
ISTAT = 0
ISTAT >0
R2003.0
30
Landmark Graphics
2.
2.
3.
31
1.
2.
3.
R2003.0
Landmark Graphics
Reading a File
1.
2.
3.
If the file is a data file, read the field descriptors SIFLDR. The
number of field descriptors is obtained from the argument call.
4.
5.
1.
2.
3.
4.
5.
6.
7.
Creating a File
R2003.0
32
Landmark Graphics
This notifies you that you have the correct filename, if you use the
name in another routine after S4CDTR.
Input/Output Arguments in the Subroutine Descriptions
For files of this type, the documentation shows the code up on the left side of
the page to indicate that it is both an input and an output argument.
33
R2003.0
Landmark Graphics
XMIN
XMAX
For example, the grid cell denoted by the XX in the diagram below is
cell (10,10). It is the (10 1)*12 + 10 = 118th word sequentially on the
member grid file.
XMIN
YMIN
1
2
3
4
5
6
7
8
9
10
11
12
XX
YMIN
XMAX
Rows
YMAX
Columns
1 2 3 4 5 6 7 8 9 10 11 12 YMAX
R2003.0
34
Landmark Graphics
Introduction
Use the Initialize/Terminate ZPI/0 Environment subroutines for these
tasks:
R2003.0
35
Landmark Graphics
Internal Routines
Some library routines are not included in the documentation. These
routines are used internally by other library routines and are typically
not used by application programmers. The internal routines for
Initialize/Terminate ZPI/O Environment are:
36
SIEROP
SIERVN
SIMSGW
SISSIL
R2003.0
Landmark Graphics
S2DBUG
Function
Environment
Format
Input Arguments
Argument
Name
IDBUG
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, debug print file cannot be opened.
IDBUG reset to zero
37
Landmark Graphics
SICOMM
Function
Environment
CALL SICOMM (
IDBUG , LTHWRK )
Input Arguments
Argument
Name
Data Description
Type and Default
IDBUG
LTHWRK
38
R2003.0
Landmark Graphics
SIESIL
Function
Environment
This subroutine should be called after all ZPI/O processing has been
completed and if an abend condition occurs. SIISIL or SICOMM must
have been called to initialize the ZPI/O environment.
Format
CALL SIESIL (
ISTAT
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, problem closing the files
39
Landmark Graphics
SIEZIM
Function
Environment
Call this routine during the exit process for any programs that use
master files (MFDs). Call so that normal exits and any error exits both
call this routine.
Format
CALL SIEZIM
40
R2003.0
Landmark Graphics
SIISIL
Initialize the ZPI/O environment with output file control
Function
Notes
For Unix users the ZPI/O application needs to explicitly open those
output units (LUNINF, LUNSTA, LUNWAR, LUNERO, LUNBUG)
if IPROC = 1.
Environment
Format
Input Arguments
Argument
Name
R2003.0
Data Description
Type and Default
IDBUG
LTHWRK
LUNINF
LUNSTA
41
Landmark Graphics
Argument
Name
Data Description
Type and Default
LUNWAR
LUNERO
LUNBUG
LUNDM1
LUNDM2
IPROC
Output Arguments
Argument
Name
Data Description
Type and Default
ISTAT
42
Status flag:
1 = Warning, invalid informative unit,
process, or debug flag. The value has
been reset
0 = Operation was successful
1 = Error, invalid licensing setup
2 = Error, option unavailable
R2003.0
Landmark Graphics
Introduction
Use the Transfer, Convert, or List Information subroutines for these
tasks:
Internal Routines
Some library routines are not included in the documentation. These
routines are used internally by other library routines and are typically
not used by application programmers. The internal routines for
Transfer, Convert or List Information are:
SICDPM Verify the input arguments for coordinate transformation
from x,y to latitude/longitude
SILFMT Store the column header
SILWRT Print selected data fields by the format in the character
string FRMT
43
R2003.0
Landmark Graphics
S2FLIN
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL S2FLIN (
1 NAMDAT , NAMDIC , NAMGRP , NAMFIL , LATTNM ,
2 GRPCHR , CMTCHR , HSTCHR , DICFLG , MFDNUM ,
3 LOGDIC , LOGDAT , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMDAT
NAMDIC
NAMGRP
NAMFIL
LATTNM
GRPCHR
CMTCHR
HSTCHR
DICFLG
44
R2003.0
Landmark Graphics
Argument
Name
Data Description
Type and Default
MFDNUM
LOGDIC
LOGDAT
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
2 = Warning, input file is empty
1 = Warning, format file supplied, but
DICFLG = .TRUE.; reset to use this input
data file
0 = Operation was successful
1 = Error, problem importing data file
2 = Error, file containing the format and
import data file are the same, but
DICFLG indicates they are different
45
Landmark Graphics
S2GRST
Function
Environment
Format
CALL S2GRST (
1 NAMGRD , MFDGRD
2 MNCWIN , MXCWIN
3 NZNON , XMIN
4 GXINC
, GYINC
5 ZMEAN , ZRMS
6 XBAND , YBAND
,
,
,
,
,
,
IHISGR
NROWS
XMAX
ZMIN
ZSTD
REACH
,
,
,
,
,
,
MNRWIN,
NCOLS ,
YMIN ,
ZMAX ,
ZRELVA ,
ZNON ,
MXRWIN
NZVAL
YMAX
ZRANGE
ZRMSCR
ISTAT )
,
,
,
,
,
Input Arguments
46
Argument
Name
Data Description
Type and Default
NAMGRD
MFDGRD
IHISGR
MNRWIN
MXRWIN
MNCWIN
MXCWIN
R2003.0
Landmark Graphics
Output Arguments
Argument
Name
R2003.0
Data Description
Type and Default
NROWS
Number of rows.
NCOLS
Number of columns.
NZVAL
NZNON
XMIN
Minimum x coordinate.
XMAX
Maximum x coordinate.
YMIN
Minimum y coordinate.
YMAX
Maximum y coordinate.
GXINC
GYINC
ZMIN
ZMAX
ZRANGE
Surface range.
ZMEAN
Mean of z.
ZRMS
ZSTD
Standard deviation of z.
ZRELVA
Relative variation of z.
ZRMSCR
XBAND
YBAND
REACH
ZNON
47
Landmark Graphics
Argument
Name
ISTAT
48
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid master file number or
master file is read-only
2 = Error, duplicate files, specify master file
number
3 = Error, cannot find the file
4 = Error, 5 files already in use
5 = Error, reading parameter record
6 = Error, invalid grid increments
R2003.0
Landmark Graphics
S4CDTR
Convert from x,y to latitude/longitude and vice versa
Function
Format
CALL S4CDTR (
1 NAMIDA , NAMODA
2 MFDODA , IHSIDA
3 IHEM
, IPJCOD
4 IUTMOP , IDTLN
5 TOPPAR , REFLAT
6 FNORTH , FEAST
7 SCALE
, ZNONOT
,
,
,
,
,
,
,
NAMFDA
IDIREC
ISPCOD
IRADTY
SFLAT
AXISA
ISTAT )
,
,
,
,
,
,
NAMFDB
IFLDA
IUNCOD
UNTFAC
REFLON
AXISB
,
,
,
,
,
,
MFDIDA ,
IFLDB ,
IUTMCD ,
BOTPAR ,
SFLON ,
AZMTH ,
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
NAMIDA
NAMODA
NAMFDA
NAMFDB
MFDIDA
MFDODA
IHSIDA
IDIREC
49
Landmark Graphics
Argument
Name
50
Data Description
Type and Default
IFLDA
IFLDB
IHEM *
R2003.0
Landmark Graphics
Argument
Name
IPJCOD *
R2003.0
Data Description
Type and Default
I
51
Landmark Graphics
Argument
Name
52
Data Description
Type and Default
ISPCOD *
IUNCOD *
IUTMCD *
IUTMOP
IDTLN
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
IRADTY *
UNTFAC *
BOTPAR *
TOPPAR *
REFLAT *
Reference latitude.
SFLAT *
REFLON *
Reference longitude.
SFLON *
FNORTH *
False northing.
FEAST *
False easting.
AXISA *
AXISB *
AZMTH *
SCALE *
ZNONOT
53
Landmark Graphics
Output Arguments
Argument
Name
ISTAT
54
Data Description
Type and Default
I
Status flag:
2 = Warning, problem writing out extended
history
1 = Warning, duplicate files, a version
number has been added
0 = Operation was successful
1 = Error, duplicate files, invalid master file
number or master file is read-only
2 = Error, invalid version number
3 = Error, 5 files already in use
4 = Error, duplicate files, specify master file
number
5 = Error, cannot find the file
6 = Error, reading parameter record
7 = Error, reading field descriptors
8 = Error, writing field descriptors
9 = Error, writing parameter record
10 = Error, defining default field descriptor
11 = Error, setting up coordinate
transformation parameters
12 = Error, converting parameters
13 = Error, invalid field matchups
14 = Error, performing the coordinate
transformation
15 = Error, writing projection information to
adjunct record
16 = Error, file does not contain the necessary
fields
17 = Error, UTM is not valid for grads map
R2003.0
Landmark Graphics
N O O O N O O O
O N O O
O O
AZMTH
N N N N N N N N
N N Y N
N N
Standard Mercator
AXISB
O O
Modified Polyconic
O N O O
N O O O N O O O
Cassini-Soldner
Azimuthal Stereographic
American Polyconic
AXISA
Azimuthal Orthographic
Description
Arguments
Azimuthal Gnomonic
Name
Projection Type
N N N N N N Y N
N N N Y
N N N
FEAST
O O O O O N O O
O O O O
O N
O O O O O O O O
O N O O
O O
IHEM
Hemisphere
N N N N N N N N
N N N N
N O
IPJCOD
Projection Code
Y Y Y Y Y Y Y Y
Y Y Y Y
Y Y
ISPCOD
Spheroid Code
Y Y Y N N Y Y Y
Y N Y Y
Y Y
Y Y Y Y Y Y Y Y
Y N Y Y
Y N
O4
N
Y
False Easting
N N N N N N N N
N N N N
IRADTY
N N N N N N N N
N N N N
N N
Reference Latitude
Y1
N Y Y N N N
N Y Y
Y Y Y Y N Y Y Y
Y1
Y2
Y Y Y Y N Y Y Y
Y2
SCALE
N N N N N N N N
N N Y N
N N
SFLAT
N N N N N N N N
Y N N N
N N
N N N N N N N Y
Y2
N N N N N N Y N
N N N N
N N
O O O O O O O O
O N O O
O N
REFLAT
SFLON
Key:
Y = argument required
N = argument not required
O = argument optional. If not
specified, default value is used
R2003.0
Y O3 Y
N N N N N N
1
2
3
4
55
Landmark Graphics
SICTST
Function
Environment
Format
CALL SICTST (
1 NAMDAF , MFDNDA
2 NCPWIN , NOZNON
3 XLAST , YLAST
4 XRANGE , YMIN
5 ZMAX
, ZRANGE
6 ZNON
, ISTAT )
,
,
,
,
,
IHISDA
XFIRST
ZLAST
YMAX
ZMEAN
,
,
,
,
,
IZFLOC ,
YFIRST ,
XMIN ,
YRANGE,
ZRMS ,
NCPRED
ZFIRST
XMAX
ZMIN
ZSTD
,
,
,
,
,
Input Arguments
56
Argument
Name
Data Description
Type and Default
NAMDAF
MFDNDA
IHISDA
IZFLOC
R2003.0
Landmark Graphics
Output Arguments
Argument
Name
R2003.0
Data Description
Type and Default
NCPRED
NCPWIN
NOZNON
XFIRST
First x coordinate.
YFIRST
First y coordinate.
ZFIRST
First z coordinate.
XLAST
Last x coordinate.
YLAST
Last y coordinate.
ZLAST
Last z coordinate.
XMIN
Minimum x value.
XMAX
Maximum x value.
XRANGE
Range of x.
YMIN
Minimum y value.
YMAX
Maximum y value.
YRANGE
Range of y.
ZMIN
Minimum z value.
ZMAX
Maximum z value.
ZRANGE
Range of z.
ZMEAN
Mean of z.
ZRMS
ZSTD
Standard deviation of z.
ZNON
57
Landmark Graphics
Argument
Name
ISTAT
58
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid master file number or
master file is read-only
2 = Error, duplicate files, specify master file
number
3 = Error, cannot find the file
4 = Error, 5 files already in use
5 = Error, reading parameter record
6 = Error, reading field descriptors
7 = Error, processing field descriptors
missing x,y and/or z fields
8 = Error, field chosen is character field
R2003.0
Landmark Graphics
SIFDST
Function
Environment
Format
CALL SIFDST (
1 NAMDAT , TYPRPT
2 IFDINX , WINMIN
3 NOZNON , FDFRST
4 FDRANG , FDMEAN
5 ZNON
, ISTAT )
,
,
,
,
ALLWIN
WINMAX
FDLAST
FDRMS
,
,
,
,
MFDDAT
NCPRED
FDMIN
FDSTD
,
,
,
,
IHSDAT ,
NCPWIN ,
F DMAX ,
FDREL ,
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
NAMDAT
TYPRPT
ALLWIN
MFDDAT
IHSDAT
IFDINX
WINMIN
59
Landmark Graphics
Argument
Name
WINMAX
Data Description
Type and Default
R
Output Arguments
Argument
Name
60
Data Description
Type and Default
NCPRED
NCPWIN
NOZNON
FDFRST
FDLAST
FDMIN
FDMAX
FDRANG
FDMEAN
FDRMS
FDSTD
FDREL
ZNON
Null value.
ISTAT
Status flag:
0 = Operation was successful
1 = Error, invalid master file number or
master file is read-only
2 = Error, duplicate files, specify master file
number
3 = Error, cannot find the file
4 = Error, 5 files already in use
5 = Error, statistics cannot be obtained for this
file type
6 = Error, reading parameter record
7 = Error, reading field descriptors
8 = Error, field selected is a character field
9 = Error, invalid report type
10 = Error, invalid field index
11 = Error, problem computing field statistics
R2003.0
Landmark Graphics
SIFLOT
Transfer information from a member of a master file to an external file
Function
Format
CALL SIFLOT (
1 NAMDAT , NAMDIC , NAMGRP , NAMFIL , GRPCHR ,
2 CMTCHR , HSTCHR , DICFLG , HDRFLG , MFDNUM ,
3 IHSFIL
, LOGDIC , LOGDAT , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMDAT
NAMDIC
NAMGRP
NAMFIL
GRPCHR
CMTCHR
HSTCHR
DICFLG
R2003.0
61
Landmark Graphics
Argument
Name
HDRFLG
Data Description
Type and Default
L
MFDNUM
IHSFIL
LOGDIC
LOGDAT
Output Arguments
Argument
Name
ISTAT
62
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, problem importing data file
2 = Error, the file format dataset and export
file have the same name
R2003.0
Landmark Graphics
SIGLST
List a grid as a grid or contours
Function
This subroutine prints a report of all or part of the grid, plots the
contour representation, or both.
Environment
Format
CALL SIGLST (
1 NAMGRI , GRDFMT , MFDGRD , IHSGRD , LOGRPT ,
2 IRPTYP , NROWMN , NROWMX , NCOLMN, NCOLMX ,
3 LBRWCL , NUMCTR , NUMPOS , CTRINT , CTRMIN ,
4 ISTAT )
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
NAMGRI
GRDFMT
MFDGRD
IHSGRD
LOGRPT
IRPTYP
Report type:
0 = Grid report
1 = Contour report
2 = Both reports
NROWMN
NROWMX
63
Landmark Graphics
Argument
Name
64
Data Description
Type and Default
NCOLMN
NCOLMX
LBRWCL
NUMCTR
NUMPOS
CTRINT
CTRMIN
R2003.0
Landmark Graphics
Output Arguments
Argument
Name
ISTAT
65
Data Description
Type and Default
I
Status flag:
3 = Warning, number of contour levels is
greater than 100. It has been reset.
2 = Warning, bad input format. Default
format being used.
1 = Warning, report unit was zero. It has been
reset.
0 = Operation was successful.
1 = Error, invalid master file number or
master file is read-only.
2 = Error, duplicate files, specify master file
number.
3 = Error, cannot find the file.
4 = Error, 5 files already in use.
5 = Error, this is a data file not a grid file.
6 = Error, problem reading parameter record.
7 = Error, problem positioning the file.
8 = Error, minimums must be less than the
maximums.
9 = Error, problem loading grid.
10 = Error, problem printing grid report.
11 = Error, the interval between adjacent
contours is zero.
R2003.0
Landmark Graphics
SILIST
Function
Note
The format to print text strings must be in the form of nA4, where n is
the number of words. (See the IFDFMT argument description below)
Z 8D 1074
Z-MAP #1
ZPIO LISTING
Environment
Format
CALL SILIST (
1 NAMIDA ,
2 MFDIDA ,
3 ISTART ,
4 IWDINX ,
RPTITL
IHISDA
IEND
WIDMIN
,
,
,
,
LINARA
LOGRPT
NUMFLD
WIDMAX
,
,
,
,
ICLHDR , IFDFMT ,
NUMLIN , LSTTYP ,
ICLWID , IFDINX ,
ISTAT )
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
NAMIDA
RPTITL
LINARA
ICLHDR
IFDFMT
MFDIDA
IHISDA
66
Landmark Graphics
Argument
Name
67
Data Description
Type and Default
LOGRPT
NUMLIN
LSTTYP
Type of listing:
0 = Automatic listing
1 = Full listing
2 = Line name
3 = Area name
4 = Window listing
5 = Exception listing
Note: Automatic listing lists first 10 fields on the
data file using the standard formats.
ISTART
IEND
NUMFLD
ICLWID
IFDINX
IWDINX
WIDMIN
WIDMAX
R2003.0
Landmark Graphics
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
2 = Warning, number of fields on the file was
greater than 10. Reset to 10.
1 = Warning, printer unit was zero. It has
been reset.
0 = Operation was successful.
1 = Error, invalid master file number or
master file is read-only.
2 = Error, duplicate files, specify master file
number.
3 = Error, cannot find the file.
4 = Error, 5 files already in use.
5 = Error, this is a grid file, not a data file.
6 = Error, problem reading parameter record.
7 = Error, problem reading field descriptor.
8 = Error, no area or line name field on file.
9 = Error, problem positioning the file.
10 = Error, there is no match for line or area
name.
11 = Error, problem creating field format.
12 = Error, problem setting up column headers.
68
Landmark Graphics
Introduction
Use the Draw and Plot Features subroutines for these tasks:
Internal Routines
This section describes the following internal routines for drawing and
plotting features:
R2003.0
69
Landmark Graphics
S2ALIN
Function
Environment
Format
CALL S2ALIN (
1 KOORD , IFSYMB , LINTYP , NUMPTS, ISYMBL ,
2 DASHLN , GAPLEN , HAPART , HSHLEN , HSHWAY ,
3 BWIDTH , SYMSIZ , XCOORD , YCOORD, CODES
,
4 ISTAT )
Input Arguments
Argument
Name
70
Data Description
Type and Default
KOORD
IFSYMB
LINTYP
NUMPTS
ISYMBL
R2003.0
Landmark Graphics
Argument
Name
Data Description
Type and Default
DASHLN
GAPLEN
HAPART
HSHLEN
HSHWAY
BWIDTH
SYMSIZ
XCOORD
YCOORD
CODES
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, unsuccessful attempt to open a
picture segment
2 = Error, problem with the number of
vertices
Note: The number of vertices must be between 2
and 5000. At least two points are needed
to define a line. 5000 is an arbitrary limit
chosen to distinguish between large, but
legitimate, input arrays and undefined
values of input argument NUMPTS.
71
Landmark Graphics
S2DSPT
Name
S2DSPT
Function
Environment
Format
CALL S2DSPT (
1 ZGFNAM , PICNAM , NCOPYS , LINCUT , IDEVTY ,
2 ILGBMD , IROTAT , IDUMMY , NUMLGB , LGBTYP ,
3 SCLFCT , ISTAT )
Input Arguments
72
Argument
Name
Data Description
Type and Default
ZGFNAM
PICNAM
NCOPYS
LINCUT
IDEVTY
ILGBMD
IROTAT
Rotation flag:
0 = Rotation not allowed for display/plot
1 = Rotation allowed for display/plot
R2003.0
Landmark Graphics
Argument
Name
Data Description
Type and Default
IDUMMY
NUMLGB
LGBTYP
SCLFCT
Scaling factor.
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, performing hardcopy processing
73
Landmark Graphics
S3ZLIN
Function
Environment
Format
CALL S3ZLIN (
1 NAMZIM , MFDNZM , IHISZM , KOORD , IFSYMB ,
2 LINTYP , ISYMBL , IPYCLR , DASHLN , GAPLEN ,
3 HAPART , HSHLEN , HSHWAY , BWIDTH , SYMSIZ ,
4 ISTAT )
Input Arguments
74
Argument
Name
Data Description
Type and Default
NAMZIM
MFDNZM
IHISZM
KOORD
IFSYMB
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
LINTYP
ISYMBL
IPYCLR
DASHLN
GAPLEN
HAPART
HSHLEN
HSHWAY
75
Landmark Graphics
Argument
Name
Data Description
Type and Default
BWIDTH
SYMSIZ
Output Arguments
Argument
Name
ISTAT
76
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, problem drawing lines
R2003.0
Landmark Graphics
Graphics Utilities
Introduction
Use the Graphics Utilities subroutines for these tasks:
Internal Routines
Some library routines are not included in the documentation. These
routines are used internally by other library routines and are typically
not used by application programmers. The internal routines used for
graphics utilities are:
R2003.0
SICPCL
SICPIT
77
Landmark Graphics
Graphic Routines
S2GMRK
Function
Draw markers
This subroutine draws marker symbols to the current height, color, and
type at an array of locations.
This routine is only used for working on graphics features: It does not
apply to the standard applications elsewhere in this guide.
Environment
Format
CALL S2GMRK (
1 NUMMRK , XCORS , YCORS , ROTATE , ISTAT
Input Arguments
Argument
Name
Data Description
Type and Default
NUMMRK
XCORS
YCORS
ROTATE
Output Arguments
Argument
Name
ISTAT
78
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, number of markers is zero
2 = Error, graphics feature is not open
R2003.0
Landmark Graphics
Graphic Routines
S2ZGIN
Name
S2ZGIN
Function
Environment
The ZPI/O and ZIGS environments must be initialized and the graphics
file must not exist before this routine is called.
Format
CALL S2ZGIN (
1 NAMFLT , NAMZGF , LEVRPT
2 ISTAT )
, LUNFLT , LUNZGF ,
Input Arguments
Argument
Name
Data Description
Type and Default
NAMFLT
NAMZGF
LEVRPT
LUNFLT
LUNZGF
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, opening neutral file
2 = Error, the input graphics filename is blank
and the graphics name specified in the
neutral file is blank also
79
Landmark Graphics
Graphic Routines
S2ZGOT
Function
Environment
Format
CALL S2ZGOT (
1 NAMZGF , NAMFLT , NAMPIC , SELECT , NUMPIC ,
3 LEVRPT , LUNZGF , LUNFLT , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMZGF
NAMFLT
NAMPIC
SELECT
EXCEPT
NAMPIC
specified by NAMPIC
80
NUMPIC
LEVRPT
LUNZGF
LUNFLT
R2003.0
Landmark Graphics
Graphic Routines
S3GELM
Function
Note
Environment
Format
CALL S3GELM (
1 LENARY , CTXSTR
2 QVTSYM , ITYELM
3 NUMCHR , ITXCLR
4 IFILCL
, IVTSYM
5 MARKER , XARRAY
6 TXTANG , TXTHGT
7 HACGAP , HACDIR
,
,
,
,
,
,
,
ADRSTR
ITMCLR
ILINPAT
NUMPTS
YARRAY
DASLEN
XWINDW
,
,
,
,
,
,
,
QGREND,
ITXFNT ,
LINWID ,
APID
,
SYMANG,
DASGAP ,
YWINDW,
QWINDW
ITXJUS
LINCLR
APLEN
SYMHGT
HACLEN
ISTAT )
,
,
,
,
,
,
Input Arguments
Argument
Name
LENARY
Data Description
Type and Default
I
Output Arguments
Argument
Name
Data Description
Type and Default
CTXSTR
ADRSTR
QGREND
R2003.0
81
Landmark Graphics
Argument
Name
QWINDW
Data Description
Type and Default
L
82
QVTSYM
ITMCLR
ITYELM
ITXFNT
ITXJUS
Justification method:
1 = Lower left
2 = Lower right
3 = Center
NUMCHR
ITXCLR
LINPAT
LINWID
LINCLR
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
IFILCL
IVTSYM
NUMPTS
APID
APLEN
MARKER
XARRAY
YARRAY
SYMANG
SYMHGT
TXTANG
TXTHGT
DASLEN
DASGAP
HACLEN
HACGAP
83
Landmark Graphics
Argument
Name
84
Data Description
Type and Default
HACDIR
Direction of hachures:
1 = Pointing uphill
1 = Pointing downhill
XWINDW
YWINDW
ISTAT
Status flag:
1 = Warning, length of output array exceeded
0 = Operation was successful
1 = Error, problem obtaining the next element
R2003.0
Landmark Graphics
Graphic Routines
S3IPIC
Function
R2003.0
Environment
Format
CALL S3IPIC (
1 PICTUR ,
2 IABSSC ,
3 LONMXM ,
4 LATMXD ,
5 IPJCOD ,
6 VXMAX ,
7 YOFFST ,
8 YLONG ,
9 REFLON ,
AXISA
,
1 YLNVEW ,
IFOLD
LONMND
LONMXS
LATMXM
ISPCOD
VYMIN
FREEY
BOTPAR
SFLON
AXISB
ISTAT )
,
,
,
,
,
,
,
,
,
,
IFABSC ,
LONMNM ,
LATMND ,
LATMXS ,
IUNCOD ,
VYMAX ,
XSCMAP ,
TOPPAR ,
FNORTH ,
AZMTH ,
IFPRJ
,
LONMNS,
LATMNM,
IHEM
,
IRADTY ,
XOFFST ,
YSCMAP,
REFLAT ,
FEAST ,
SCALE ,
IBRTIP
LONMXD
LATMNS
IUTMCD
VXMIN
FREEX
XLONG
SFLAT
UNTFAC
XLNVEW
,
,
,
,
,
,
,
,
,
,
85
Landmark Graphics
Input Arguments
Argument
Name
Data Description
Type and Default
PICTUR
IFOLD
IFABSC
Output Arguments Input for new picture, Output for old picture
Argument
Name
86
Data Description
Type and Default
IFPRJ
IBRTIP
Type of border:
1 = Latitude/longitude border
2 = Rectilinear border
IABSSC
LONMND
LONMNM
LONMNS
LONMXD
LONMXM
LONMXS
LATMND
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
LATMNM
LATMNS
LATMXD
LATMXM
LATMXS
IHEM *
IUTMCD *
87
Landmark Graphics
Argument
Name
IPJCOD *
88
Data Description
Type and Default
I
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
ISPCOD *
Reference spheroid:
1 = User defined
2 = Everest 1830
3 = Malayan Everest 1830
4 = Bessel 1841
5 = Airy 1858
6 = Clarke 1858
7 = Clarke 1866
8 = Clarke 1880
9 = Hayford 1909
10 = Krassovsky 1940
11 = Hough 1956
12 = Fischer 1960 (Mercury)
13 = Kaula 1961
14 = IUGG 1967 (Australian National 1967/
South American 1969)
15 = Fischer 1968 (Mercator modified)
16 = WGS-72 1972
17 = IUGG 1975
18 = Helmert
19 = Ghana National
20 = WGS-84 (GRS-80)
IUNCOD *
IRADTY *
VXMIN
VXMAX
VYMIN
VYMAX
89
Landmark Graphics
Argument
Name
Data Description
Type and Default
XOFFST
FREEX
YOFFST
FREEY
XSCMAP
YSCMAP
XLONG
YLONG
BOTPAR *
TOPPAR *
REFLAT *
Reference latitude.
SFLAT *
REFLON *
Reference longitude.
SFLON *
90
FNORTH *
False northing.
FEAST *
False easting.
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
UNTFAC *
AXISA *
AXISB *
AZMTH *
SCALE *
XLNVEW
YLNVEW
ISTAT
Status flag:
0 = Operation was successful
1 = Error, opening picture
2 = Error, reading picture header
3 = Error, invalid use of absolute scale
4 = Error, invalid picture type
5 = Error, problem with old picture
6 = Error, problem with new picture
Note: Map projection is required for absolute
scale.
91
Landmark Graphics
Graphic Routines
S3NPIC
Function
Note
If the left longitude is greater than the right longitude, the map is made
across the dateline.
You cannot map across the dateline if using grads. For grads, left
longitude cannot be greater than right longitude.
92
Environment
Format
CALL S2NPIC (
1 PICTUR , IFABSC ,
2 LONMND , LONMNM ,
3 LONMXS , LATMND ,
4 LATMXM , LATMXS ,
5 ISPCOD , IUNCOD ,
6 VYMIN , VYMAX ,
7 FREEY
, XSCMAP ,
8 BOTPAR , TOPPAR ,
9 SFLON
, FNORTH ,
* AXISB
, AZMTH ,
1 ISTAT )
IFPRJ
LONMNS
LATMNM
IHEM
IRADTY
XOFFST
YSCMAP
REFLAT
FEAST
SCALE
,
,
,
,
,
,
,
,
,
,
IBRTIP ,
LONMXD,
LATMNS,
IUTMCD ,
VXMIN ,
FREEX ,
XLONG ,
SFLAT ,
UNTFAC ,
XLNVEW,
IABSSC ,
LONMXM ,
LATMXD ,
IPJCOD ,
VXMAX ,
YOFFST ,
YLONG ,
REFLON ,
AXISA
,
YLNVEW ,
R2003.0
Landmark Graphics
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
PICTUR
IFABSC
IFPRJ
IBRTIP
Type of border:
1 = Latitude/Longitude border
2 = Rectilinear border
IABSSC
LONMND
LONMNM
LONMNS
LONMXD
LONMXM
LONMXS
LATMND
LATMNM
LATMNS
93
Landmark Graphics
Argument
Name
94
Data Description
Type and Default
LATMXD
LATMXM
LATMXS
IHEM *
IUTMCD
*
R2003.0
Landmark Graphics
Argument
Name
IPJCOD *
R2003.0
Data Description
Type and Default
I
95
Landmark Graphics
Argument
Name
96
Data Description
Type and Default
ISPCOD *
Reference spheroid:
1 = User defined
2 = Everest 1830
3 = Malayan Everest 1830
4 = Bessel 1841
5 = Airy 1858
6 = Clarke 1858
7 = Clarke 1866
8 = Clarke 1880
9 = Hayford 1909
10 = Krassovsky 1940
11 = Hough 1956
12 = Fischer 1960 (Mercury)
13 = Kaula 1961
14 = IUGG 1967 (Australian National 1967/
South American 1969)
15 = Fischer 1968 (Mercator modified)
16 = WGS-72 1972
17 = IUGG 1975
18 = Helmert
19 = Ghana National
20 = WGS-84 (GRS-80)
IUNCOD *
IRADTY *
VXMIN
VXMAX
VYMIN
VYMAX
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
XOFFST
FREEX
YOFFST
FREEY
XSCMAP
YSCMAP
XLONG
YLONG
BOTPAR
*
TOPPAR *
REFLAT *
Reference latitude.
SFLAT *
REFLON *
Reference longitude.
SFLON *
FNORTH
*
False northing.
FEAST *
False easting.
UNTFAC
*
AXISA *
97
Landmark Graphics
Argument
Name
Data Description
Type and Default
AXISB *
AZMTH *
SCALE *
Output Arguments
Argument
Name
98
Data Description
Type and Default
XLNVEW
YLNVEW
ISTAT
Status flag:
0 = Operation was successful.
1 = Error, opening picture.
2 = Error, illegal use of absolute scale.
3 = Error, invalid reference longitude if UTM
ZONE is not specified.
4 = Error, in inverse projection.
5 = Error, insufficient workspace to develop
lat/long border.
6 = Error, less than three points in lat/long
border. Cannot do clipping.
Note: Map projection is required for absolute
scale.
R2003.0
Landmark Graphics
O O
AZMTH
N N N N N N N N N
N N Y N
N N
Y N N N N N N Y N
N N N Y
N N N
FEAST
O O O O O O N O O
O O O O
O N
O O O O O O O O O
O N O O
O O
IHEM
Hemisphere
N N N N N N N N N
N N N N
N O
IPJCOD
Projection Code
Y Y Y Y Y Y Y Y Y
Y Y Y Y
Y Y
ISPCOD
Spheroid Code
Y Y Y Y N N Y Y Y
Y N Y Y
Y Y
Y Y Y Y Y Y Y Y Y
Y N Y Y
Y N
O4
N
Y
False Easting
Standard Mercator
O N O O
O N O O O N O O O
AXISB
Modified Polyconic
O O
O N O O
Cassini-Soldner
O N O O O N O O O
Azimuthal Stereographic
Azimuthal Orthographic
AXISA
Azimuthal Gnomonic
Description
Arguments
American Polyconic
Name
Projection Type
N N N N N N N N N
N N N N
IRADTY
N N N N N N N N N
N N N N
N N
Reference Latitude
Y1
Y Y Y Y N Y Y Y
Y1
N Y Y N N N
Y Y Y Y N Y Y Y
Y2
N Y Y
REFLAT
Y2
SCALE
N N N N N N N N N
N N Y N
N N
SFLAT
N N N N N N N N N
Y N N N
N N
N N N N N N N N Y
Y2
Y N N N N N N Y N
N N N N
N N
O O O O O O O O O
O N O O
O N
SFLON
Key:
Y = argument required
N = argument not required
O = argument optional. If not
specified, default value is used
R2003.0
Y O3 Y
N N N N N N
1
2
3
4
99
Landmark Graphics
Cutline
(XLNVEW,YLNVEW)
YLNVEW
YLONG
FREEY
Scaled Area
(User units)
XOFFST
(VXMIN,VYMIN)
*
(0.0,0.0)
(VXMAX,VYMAX)
YOFFST
FREEX
Unscaled Area
(Plotter units)
XLONG
XLNVEW
No graphics may appear outside Unscaled Area
Length in x is XLNVEW
y is YLNVEW
TOP/BOTTOM
Refers to longitude or eastings
100
R2003.0
Landmark Graphics
Graphic Routines
S3OPIC
Open an old picture
Function
This subroutine opens an old picture on the current graphics file. See
the figure following Output Arguments for reference to picture
coordinates and offsets.
Environment
The ZPI/O and ZIGS environments must be initialized and the graphics
file opened before this routine is called.
Format
CALL S3OPIC
1 PICTUR ,
2 LONMNM ,
3 LATMND ,
4 LATMXS ,
5 IUNCOD ,
6 VYMAX ,
7 XSCMAP ,
8 TOPPAR ,
9 FNORTH ,
* AZMTH ,
(
IFPRJ
LONMNS
LATMNM
IHEM
IRADTY
XOFFST
YSCMAP
REFLAT
FEAST
SCALE
,
,
,
,
,
,
,
,
,
,
IBRTIP
LONMXD
LATMNS
IUTMCD
VXMIN
FREEX
XLONG
SFLAT
UNTFAC
XLNVEW
,
,
,
,
,
,
,
,
,
,
IABSSC , LONMND
LONMXM, LONMXS
LATMXD, LATMXM
IPJCOD , ISPCOD
VXMAX , VYMIN
YOFFST , FREEY
YLONG , BOTPAR
REFLON , SFLON
AXISA , AXISB
YLNVEW, ISTAT )
,
,
,
,
,
,
,
,
,
Input Arguments
Argument
Name
Data Description
Type and Default
PICTUR
Argument
Name
Data Description
Type and Default
Output Arguments
R2003.0
IFPRJ
IBRTIP
Type of border:
1 = Latitude/Longitude border
2 = Rectilinear border
IABSSC
LONMND
101
Landmark Graphics
Argument
Name
102
Data Description
Type and Default
LONMNM
LONMNS
LONMXD
LONMXM
LONMXS
LATMND
LATMNM
LATMNS
LATMXD
LATMXM
LATMXS
IHEM *
IUTMCD *
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
IPJCOD *
IPJCOD *
(cont.)
103
Landmark Graphics
Argument
Name
104
Data Description
Type and Default
ISPCOD *
Reference spheroid:
1 = User defined
2 = Everest 1830
3 = Malayan Everest 1830
4 = Bessel 1841
5 = Airy 1858
6 = Clarke 1858
7 = Clarke 1866
8 = Clarke 1880
9 = Hayford 1909
10 = Krassovsky 1940
11 = Hough 1956
12 = Fischer 1960 (Mercury)
13 = Kaula 1961
14 = IUGG 1967 (Australian National 1967/
South American 1969)
15 = Fischer 1968 (Mercator modified)
16 = WGS-72 1972
17 = IUGG 1975
18 = Helmert
19 = Ghana National
20 = WGS-84 (GRS-80)
IUNCOD *
IRADTY *
VXMIN
VXMAX
VYMIN
VYMAX
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
XOFFST
FREEX
YOFFST
FREEY
XSCMAP
YSCMAP
XLONG
YLONG
BOTPAR *
TOPPAR *
REFLAT *
Reference latitude.
SFLAT *
REFLON *
Reference longitude.
SFLON *
FNORTH *
False northing.
FEAST *
False easting.
UNTFAC *
AXISA *
AXISB *
AZMTH *
105
Landmark Graphics
Argument
Name
106
Data Description
Type and Default
SCALE *
XLNVEW
YLNVEW
ISTAT
Status flag:
0 = Operation was successful
1 = Error, opening picture
2 = Error, reading picture header
3 = Error, problem with picture
4 = Error, insufficient workspace to develop
lat/long border
5 = Error, less than three points in lat/long
border. Cannot do clipping.
R2003.0
Landmark Graphics
O O
AZMTH
N N N N N N N N N
N N Y N
N N
Y N N N N N N Y N
N N N Y
N N N
FEAST
O O O O O O N O O
O O O O
O N
O O O O O O O O O
O N O O
O O
IHEM
Hemisphere
N N N N N N N N N
N N N N
N O
IPJCOD
Projection Code
Y Y Y Y Y Y Y Y Y
Y Y Y Y
Y Y
ISPCOD
Spheroid Code
Y Y Y Y N N Y Y Y
Y N Y Y
Y Y
Y Y Y Y Y Y Y Y Y
Y N Y Y
Y N
O4
N
Y
False Easting
Standard Mercator
O N O O
O N O O O N O O O
AXISB
Modified Polyconic
O O
O N O O
Cassini-Soldner
O N O O O N O O O
Azimuthal Stereographic
Azimuthal Orthographic
AXISA
Azimuthal Gnomonic
Description
Arguments
American Polyconic
Name
Projection Type
N N N N N N N N N
N N N N
IRADTY
N N N N N N N N N
N N N N
N N
Reference Latitude
Y1
Y Y Y Y N Y Y Y
Y1
N Y Y N N N
Y Y Y Y N Y Y Y
Y2
N Y Y
REFLAT
Y2
SCALE
N N N N N N N N N
N N Y N
N N
SFLAT
N N N N N N N N N
Y N N N
N N
N N N N N N N N Y
Y2
Y N N N N N N Y N
N N N N
N N
O O O O O O O O O
O N O O
O N
SFLON
Key
Y = argument required
N = argument not required
O = argument optional. If not
specified, default value is used.
R2003.0
Y O3 Y
N N N N N N
1
2
3
4
107
Landmark Graphics
Cutline
(XLNVEW,YLNVEW)
YLNVEW
YLONG
FREEY
Scaled Area
(User units)
XOFFST
(VXMIN,VYMIN)
*
(0.0,0.0)
(VXMAX,VYMAX)
YOFFST
FREEX
Unscaled Area
(Plotter units)
XLONG
XLNVEW
No graphics may appear outside Unscaled Area
Length in x is XLNVEW
y is YLNVEW
TOP/BOTTOM
Refers to longitude or eastings
108
R2003.0
Landmark Graphics
Graphic Routines
S4PCIN
Function
Environment
Format
CALL S3PCIN (
1 NAMPIC , LGBNAM
2 IFPRJ
, IABSSC
3 IUNCOD , LONMND
4 LONMXM , LONMXS
5 LATMXD , LATMXM
6 IRADTY , VXMIN
7 XLONG , XOFFST
8 VYMAX , YRANGE
9 FREEY
, YLNVEW
* SFLAT
, REFLON
1 UNTFAC , AXISA
2 ISTAT )
,
,
,
,
,
,
,
,
,
,
,
LGBTYP ,
IUTMCD ,
LONMNM ,
LATMND ,
LATMXS ,
VXMAX ,
FREEX
,
YSCMAP ,
BOTPAR ,
SFLON
,
AXISB
,
LGBNUM,
IPJCOD ,
LONMNS,
LATMNM,
IHEM
,
XRANGE,
XLNVEW,
YLONG ,
TOPPAR ,
FNORTH ,
AZMTH ,
IBRTIP
ISPCOD
LONMXD
LATMNS
IDTLN
XSCMAP
VYMIN
YOFFST
REFLAT
FEAST
SCALE
,
,
,
,
,
,
,
,
,
,
,
Input Arguments
Argument
Name
Data Description
Type and Default
NAMPIC
Argument
Name
Data Description
Type and Default
LGBNAM
Output Arguments
R2003.0
LGBTYP
LGBNUM
109
Landmark Graphics
Argument
Name
110
Data Description
Type and Default
IBRTIP
Type of border:
1 = Latitude/longitude
2 = Rectilinear
IFPRJ
IABSSC
IUTMCD
*
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
IPJCOD *
Cartographic projection:
17 = Grads and Van Der Grinten I
16 = Grads and Bipolar Oblique Conic
Conformal
15 = Grads and Cassini-Soldner
14 = Grads and New Zealand Map Grid
13 = Grads and Oblique Transverse Mercator
12 = Grads and American Polyconic
11 = Currently not used
10 = Grads and Albers Equal Area
(equivalent) with two standard parallels
9 = Grads and Modified Rectangular
Orthotomic Polyconic
8 = Grads and Azimuthal Orthographic
7 = Grads and Azimuthal Stereographic
6 = Grads and Azimuthal Gnomonic
5 = Grads and Conformal Lambert with two
standard parallels
4 = Grads and Conformal Lambert with one
standard parallel
3 = Grads and Standard Mercator
2 = Grads and General Transverse Mercator
1 = Currently not used
0 = Currently not used
1 = Degrees and Universal Transverse
Mercator
2 = Degrees and General Transverse Mercator
3 = Degrees and Standard Mercator
4 = Degrees and Conformal Lambert with one
standard parallel
5 = Degrees and Conformal Lambert with two
standard parallels
6 = Degrees and Azimuthal Gnomonic
7 = Degrees and Azimuthal Stereographic
8 = Degrees and Azimuthal Orthographic
9 = Degrees and Modified Rectangular
Orthotomic Polyconic)
10 = Degrees and Albers Equal Area
equivalent with two standard parallels
IPJCOD *
(cont.)
111
Landmark Graphics
Argument
Name
112
Data Description
Type and Default
ISPCOD *
Reference spheroid:
1 = User defined
2 = Everest 1830
3 = Malayan Everest 1830
4 = Bessel 1841
5 = Airy 1858
6 = Clarke 1858
7 = Clarke 1866
8 = Clarke 1880
9 = Hayford 1909
10 = Krassovsky 1940
11 = Hough 1956
12 = Fischer 1960 (Mercury)
13 = Kaula 1961
14 = IUGG 1967 (Australian National 1967/
South American 1969)
15 = Fischer 1968 (Mercator modified)
16 = WGS-72 1972
17 = IUGG 19
18 = Helmert
19 = Ghana National
20 = WGS-84 (GRS-80)
IUNCOD *
LONMND
LONMNM
LONMNS
LONMXD
LONMXM
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
LONMXS
LATMND
LATMNM
LATMNS
LATMXD
LATMXM
LATMXS
IHEM *
Which hemisphere:
0 = Cannot be determined
1 = Northern
2 = Southern
IDTLN
VXMIN
VXMAX
XRANGE
XSCMAP
XLONG
XOFFST
FREEX
XLNVEW
113
Landmark Graphics
Argument
Name
114
Data Description
Type and Default
VYMIN
VYMAX
YRANGE
YSCMAP
YLONG
YOFFST
FREEY
YLNVEW
BOTPAR
*
TOPPAR *
REFLAT *
Reference latitude.
SFLAT *
REFLON *
Reference longitude.
SFLON *
FNORTH
*
False northing.
FEAST *
False easting.
UNTFAC
*
AXISA *
Semimajor axis A.
AXISB *
Semiminor axis B.
AZMTH *
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
SCALE *
ISTAT
Status flag:
0 = Operation was successful
1 = Error, picture not found
2 = Error, problem obtaining picture
information
115
Landmark Graphics
O O
AZMTH
N N N N N N N N N
N N Y N
N N
Y N N N N N N Y N
N N N Y
N N N
FEAST
O O O O O O N O O
O O O O
O N
O O O O O O O O O
O N O O
O O
IHEM
Hemisphere
N N N N N N N N N
N N N N
N O
IPJCOD
Projection Code
Y Y Y Y Y Y Y Y Y
Y Y Y Y
Y Y
ISPCOD
Spheroid Code
Y Y Y Y N N Y Y Y
Y N Y Y
Y Y
Y Y Y Y Y Y Y Y Y
Y N Y Y
Y N
O4
N
Y
False Easting
Standard Mercator
O N O O
O N O O O N O O O
AXISB
Modified Polyconic
O O
O N O O
Cassini-Soldner
O N O O O N O O O
Azimuthal Stereographic
Azimuthal Orthographic
AXISA
Azimuthal Gnomonic
Description
Arguments
American Polyconic
Name
Projection Type
N N N N N N N N N
N N N N
IRADTY
N N N N N N N N N
N N N N
N N
Reference Latitude
Y1
Y Y Y Y N Y Y Y
Y1
N Y Y N N N
Y Y Y Y N Y Y Y
Y2
N Y Y
REFLAT
Y2
SCALE
N N N N N N N N N
N N Y N
N N
SFLAT
N N N N N N N N N
Y N N N
N N
N N N N N N N N Y
Y2
Y N N N N N N Y N
N N N N
N N
O O O O O O O O O
O N O O
O N
SFLON
Key
Y = argument required
N = argument not required
O = argument optional. If not
specified, default value is used.
116
Y O3 Y
N N N N N N
1
2
3
4
R2003.0
Landmark Graphics
Graphic Routines
SIEPIC
Function
Environment
Format
CALL SIEPIC (
ISTAT )
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, problem closing the currently open
picture
117
Landmark Graphics
Graphic Routines
SIEZGF
Function
Environment
Format
CALL SIEZGF
118
R2003.0
Landmark Graphics
Graphic Routines
SIEZIG
Function
Environment
Format
CALL SIEZIG
R2003.0
119
Landmark Graphics
Graphic Routines
SIGLCL
Function
Environment
Format
CALL SIGLCL (
ICOLOR , ISTAT )
Input Arguments
Argument
Name
ICOLOR
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
120
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid line color index
R2003.0
Landmark Graphics
Graphic Routines
SIGLIN
Function
Environment
Format
CALL SIGLIN (
Input Arguments
Argument
Name
Data Description
Type and Default
NUMPTS
Number of points.
XCORS
YCORS
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, number of points is zero
2 = Error, graphics feature is not open
121
Landmark Graphics
Graphic Routines
SIGLPM
Function
Environment
Format
CALL SIGLPM (
1 DSHLEN , DSHGAP , HSHLEN , HSHGAP , HSHWAY ,
2 ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
DSHLEN
Length of dash.
Default = 0.2 in or 0.5 cm
DSHGAP
HSHLEN
HSHGAP
HSHWAY
Direction of hachures:
1 = Pointing uphill
1 = Pointing downhill
Output Arguments
Argument
Name
ISTAT
122
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, dash length is negative
2 = Error, dash gap length is negative
3 = Error, hachure length is negative
4 = Error, hachure gap length is negative
R2003.0
Landmark Graphics
Graphic Routines
SIGLTY
Name
SIGLTY
Function
Environment
Format
CALL SIGLTY (
LTYP , ISTAT )
Input Arguments
Argument
Name
LTYP
Data Description
Type and Default
I
Type of line:
1 = Plain
2 = Dashed
3 = Hachured
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid line type
123
Landmark Graphics
Graphic Routines
SIGLWD
Function
Environment
Format
CALL SIGLWD (
WIDTH , ISTAT
Input Arguments
Argument
Name
WIDTH
Data Description
Type and Default
R
Output Arguments
Argument
Name
ISTAT
124
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid line width
R2003.0
Landmark Graphics
Graphic Routines
SIGMCL
Function
Environment
Format
Input Arguments
Argument
Name
ICOLOR
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid marker color index
125
Landmark Graphics
Graphic Routines
SIGMHT
Function
Environment
Format
CALL SIGMHT (
HEIGHT , ISTAT )
Input Arguments
Argument
Name
HEIGHT
Data Description
Type and Default
R
Output Arguments
Argument
Name
ISTAT
126
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, marker height is less than or equal
to zero
R2003.0
Landmark Graphics
Graphic Routines
SIGMTY
Function
Environment
Format
CALL SIGMTY(
MARKER , ISTAT )
Input Arguments
Argument
Name
MARKER
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid marker type
127
Landmark Graphics
Graphic Routines
SIGPCL
Function
Environment
Format
CALL SIGPCL (
ICOLOR , ISTAT )
Input Arguments
Argument
Name
ICOLOR
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
128
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid polygon color index
R2003.0
Landmark Graphics
Graphic Routines
SIGPDF
Function
Environment
Format
CALL SIGPDF (
1 KLNCLR , KLNTYP
2 KTXTFO , KTXTJU
3 HTMARK , HTTEXT
4 HSHLEN , HSHGAP
,
,
,
,
KMKCLR
KPOLCL
ROTEXT
HSHWAY
,
,
,
,
KMKTYP , KTXTCL ,
KSCLTY , WDLINE ,
DSHLEN , DSHGAP ,
ISTAT )
Input Arguments
Argument
Name
R2003.0
Data Description
Type and Default
KLNCLR
KLNTYP
Type of line:
1 = Plain
2 = Dashed
3 = Hachured
Default = 1
KMKCLR
KMKTYP
129
Landmark Graphics
Argument
Name
130
Data Description
Type and Default
KTXTCL
KTXTFO
KIXTJU
Text justification:
1 = Lower left
2 = Lower right
3 = Centered
Default = 1
KPOLCL
KSCLTY
Coordinate system:
1 = Engineering coordinates
2 = Plotter coordinates (in or cm)
Default = 2
WDLINE
HTMARK
HTTEXT
R2003.0
Landmark Graphics
Argument
Name
Data Description
Type and Default
ROTEXT
DSHLEN
DSHGAP
HSHLEN
HSHGAP
HSHWAY
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid scale type
2 = Error, invalid color index
3 = Error, invalid line type
4 = Error, invalid line width multiplier
5 = Error, invalid marker type
6 = Error, invalid text font
7 = Error, invalid text justification
8 = Error, invalid text rotation
9 = Error, marker height is negative
10 = Error, text height is negative
11 = Error, dash length is negative
12 = Error, dash gap is negative
13 = Error, hachure length is negative
14 = Error, hachure gap is negative
15 = Error, invalid hachure direction
131
Landmark Graphics
Graphic Routines
SIGPFL
Function
Environment
Format
CALL SIGPFL (
Input Arguments
Argument
Name
Data Description
Type and Default
NVERT
XCORS
YCORS
Output Arguments
Argument
Name
ISTAT
132
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, number of vertices is zero
2 = Error, graphics segment is not open
3 = Error, polygon is not closed
4 = Error, maximum number of vertices
allowed has been exceeded
5 = Error, problem colorfilling the polygons
R2003.0
Landmark Graphics
Graphic Routines
SIGSCL
Function
Environment
Format
CALL SIGSCL (
ISTAT )
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, closing graphic feature
2 = Error, no graphics feature is currently
open
133
Landmark Graphics
Graphic Routines
SIGSCS
Function
Environment
Format
CALL SIGSCS (
ISCALE , ISTAT
Input Arguments
Argument
Name
ISCALE
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
134
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid scale type
R2003.0
Landmark Graphics
Graphic Routines
SIGSDL
Function
Environment
Format
CALL SIGSDL (
ISEGTY , ISTAT )
Input Arguments
Argument
Name
ISEGTY
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
1 = Warning, graphics feature has been closed
0 = Operation was successful
1 = Error, invalid graphics feature number
2 = Error, unsuccessful delete
3 = Error, problem closing graphics feature
135
Landmark Graphics
Graphic Routines
SIGSOP
Function
Environment
Format
CALL SIGSOP (
ISEGTY , ISTAT
Input Arguments
Argument
Name
ISEGTY
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
136
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid graphics feature number
2 = Error, problem opening graphics feature
R2003.0
Landmark Graphics
Graphic Routines
SIGTCL
Function
Environment
Format
CALL SIGTCL (
ICOLOR , ISTAT )
Input Arguments
Argument
Name
ICOLOR
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid text color index
137
Landmark Graphics
Graphic Routines
SIGTFO
Function
Environment
Format
CALL SIGTFO (
IFONT , ISTAT )
Input Arguments
Argument
Name
IFONT
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
138
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid font type
R2003.0
Landmark Graphics
Graphic Routines
SIGTHT
Function
Environment
Format
CALL SIGTHT (
HEIGHT , ISTAT )
Input Arguments
Argument
Name
HEIGHT
Data Description
Type and Default
R
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, text height is less than or equal to
zero
139
Landmark Graphics
Graphic Routines
SIGTJU
Function
Environment
Format
CALL SIGTJU (
JUSTIF , ISTAT
Input Arguments
Argument
Name
JUSTIF
Data Description
Type and Default
I
Justification method:
1 = Lower left
2 = Lower right
3 = Center
Output Arguments
Argument
Name
ISTAT
140
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid justification type
R2003.0
Landmark Graphics
Graphic Routines
SIGTRO
Name
SIGTRO
Function
Environment
Format
CALL SIGTRO (
ANGLE , ISTAT
Input Arguments
Argument
Name
ANGLE
Data Description
Type and Default
R
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid text rotation angle
141
Landmark Graphics
Graphic Routines
SIGTXT
Function
Draw text
This subroutine draws text. The text string contained in TEXT is drawn
at the location defined by XCORS and YCORS, with the currently
defined height, color, font, justification method, and rotation angle.
This routine is only used for working on graphics features: It does not
apply to the standard applications elsewhere in this guide.
Environment
Format
CALL SIGTXT(
1 TEXT , NCHAR , XCORS , YCORS , ISTAT
Input Arguments
Argument
Name
Data Description
Type and Default
TEXT
NCHAR
XCORS
YCORS
Output Arguments
Argument
Name
ISTAT
142
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, graphics feature is not open
R2003.0
Landmark Graphics
O O
AZMTH
N N N N N N N N N
N N Y N
N N
Y N N N N N N Y N
N N N Y
N N N
FEAST
O O O O O O N O O
O O O O
O N
O O O O O O O O O
O N O O
O O
IHEM
Hemisphere
N N N N N N N N N
N N N N
N O
IPJCOD
Projection Code
Y Y Y Y Y Y Y Y Y
Y Y Y Y
Y Y
ISPCOD
Spheroid Code
Y Y Y Y N N Y Y Y
Y N Y Y
Y Y
Y Y Y Y Y Y Y Y Y
Y N Y Y
Y N
O4
N
Y
False Easting
Standard Mercator
O N O O
O N O O O N O O O
AXISB
Modified Polyconic
O O
O N O O
Cassini-Soldner
O N O O O N O O O
Azimuthal Stereographic
Azimuthal Orthographic
AXISA
Azimuthal Gnomonic
Description
Arguments
American Polyconic
Name
Projection Type
N N N N N N N N N
N N N N
IRADTY
N N N N N N N N N
N N N N
N N
Reference Latitude
Y1
Y Y Y Y N Y Y Y
Y1
N Y Y N N N
Y Y Y Y N Y Y Y
Y2
N Y Y
REFLAT
Y2
SCALE
N N N N N N N N N
N N Y N
N N
SFLAT
N N N N N N N N N
Y N N N
N N
N N N N N N N N Y
Y2
Y N N N N N N Y N
N N N N
N N
O O O O O O O O O
O N O O
O N
SFLON
Key
Y = argument required
N = argument not required
O = argument optional.If not
specified, default value is used.
R2003.0
Y O3 Y
N N N N N N
1
2
3
4
143
Landmark Graphics
Cutline
(XLNVEW,YLNVEW)
YLNVEW
YLONG
FREEY
Scaled Area
(User units)
XOFFST
(VXMIN,VYMIN)
*
(0.0,0.0)
(VXMAX,VYMAX)
YOFFST
FREEX
Unscaled Area
(Plotter units)
XLONG
XLNVEW
No graphics may appear outside Unscaled Area
Length in x is XLNVEW
y is YLNVEW
TOP/BOTTOM
Refers to longitude or eastings
144
R2003.0
Landmark Graphics
Graphic Routines
SIIZGF
Function
Environment
Format
CALL SIIZGF (
1 ZGFNAM , HISNEW , IFNEW , HISOLD , ISTAT
Input Arguments
Argument
Name
Data Description
Type and Default
ZGFNAM
HISNEW
IFNEW
Argument
Name
Data Description
Type and Default
HISOLD
Output Arguments
ISTAT
R2003.0
Status flag:
0 = Operation was successful
1 = Error, opening graphics file
2 = Error, invalid graphics file type
145
Landmark Graphics
Graphic Routines
SIIZIG
Function
Environment
Format
CALL SIIZIG
146
R2003.0
Landmark Graphics
Graphic Routines
SIOVLY
Function
Environment
Format
CALL SIOVLY (
1 ZGFAUX , PICFRM , IMODE
2 LGBTYP , NDXPOS , XLWLF
3 ISTAT )
, NOTZGF , NTYPS ,
, YLWLF , HEIGHT ,
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
ZGFAUX
PICFRM
IMODE
NOTZGF
NTYPS
LGBTYP
147
Landmark Graphics
Argument
Name
Data Description
Type and Default
NDXPOS
XLWLF
YLWLF
HEIGHT
Output Arguments
Argument
Name
ISTAT
148
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, copying graphics information
2 = Error, problem positioning index map
R2003.0
Landmark Graphics
Graphic Routines
SIPCAS
Function
Assemble/overlay a picture
This subroutine is a general purpose assembly and overlay routine.
Overlays and composite maps can be created using this routine in
conjunction with the default setup routine. See the illustration
following Output Arguments for the relationship between the Copy
From and Copy To space.
Note
The Copy From graphics file is opened on logical unit 27 and the
Copy To graphics file is opened on logical unit 28.
Environment
The ZPI/O and ZIGS environments must be initialized and the graphics
files and pictures exist and are closed.
Format
CALL SIPCAS (
1 PICFRM , PICTO
, ZGFFRM , ZGFTO
, IFSAME ,
2 LGBOUT , LGBNUM , LGBTYP , IFBORD , ICLIP
,
3 XLL
, YLL
, RESCL
, ISTAT )
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
PICFRM
PICTO
ZGFFRM
ZGFTO
IFSAME
LGBOUT
LGBNUM
149
Landmark Graphics
Argument
Name
Data Description
Type and Default
LGBTYP
IFBORD
ICLIP
XLL
YLL
RESCL
Output Arguments
Argument
Name
ISTAT
150
Data Description
Type and Default
I
Status flag:
1 = Warning, clipping is currently
unavailable. Reset to zero.
0 = Operation was successful.
1 = Error, logical not properly set.
2 = Error, performing the copy process.
3 = Error, from copying process.
4 = Error, closing copy process.
R2003.0
Landmark Graphics
Cutline
(XLNVEW,YLNVEW)
FREEY
YLNVEW
YLONG
Border
(VXMAX,VYMAX)
FREEX
XOFFST
*
(XLL,YLL)
(VXMIN,VYMIN)
(0.0,0.0)
YOFFST
XLONG
XLNVEW
Copy To Space
Cutline
YLNVEW
YLONG
(XLNVEW,YLNVEW)
Border
FREEY
XOFFST
Scaled Area
(User units)
(VXMIN,VYMIN)
*
(0.0,0.0)
YOFFST
(VXMAX,VYMAX)
FREEX
Unscaled Area
(Plotter units)
XLONG
XLNVEW
Copy From Space
R2003.0
151
Landmark Graphics
Length in x is XLNVEW
y is YLNVEW
TOP/BOTTOM
Refers to longitude or eastings
152
R2003.0
Landmark Graphics
Graphic Routines
SIPCCP
Function
Environment
The ZPI/O and ZIGS environments must be initialized and the graphics
file which contains the Copy From picture must be open. The Copy
From picture is closed by this routine.
Format
CALL SIPCCP (
1 PICFRM , PICTO
, ZGFAUX , HISNEW , NOTZGF ,
2 LGBOUT , LGBNUM , LGBTYP , ISTAT )
Input Arguments
R2003.0
Argument
Name
Data Description
Type and Default
PICFRM
PICTO
ZGFAUX
HISNEW
NOTZGF
LGBOUT
LGBNUM
LGBTYP
153
Landmark Graphics
Output Arguments
Argument
Name
ISTAT
154
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, problem initializing copying
2 = Error, picture not found
3 = Error, problem opening Copy To
graphics file
4 = Error, problem opening picture
5 = Error, problem copying headers
6 = Error, problem copying picture
7 = Error, problem closing picture
8 = Error, copying to the same graphics file
and the Copy To picture name is the same
as the Copy From picture
9 = Error, invalid type of graphics file to copy
to
R2003.0
Landmark Graphics
Graphic Routines
SIPCDF
Function
Note
YBOUND(1) )
YBOUND(2) )
YBOUND(3) )
YBOUND(4) )
=
=
=
=
(X1,Y2)
(X2,Y2)
(X1,Y1)
(X2,Y1)
(X1, Y1)
(X1, Y2)
(X2, Y2)
(X2, Y1)
The Copy From graphics file is opened on logical unit 27, and the
Copy To graphics file is opened on logical unit 28.
Environment
The ZPI/O and ZIGS environments must be initialized and the graphics
files and pictures must exist and be closed.
Format
CALL SIPCDF (
1 PICFRM , PICTO
2 IRESCL , IFCOFS
3 YLRIN
, RESCL
4 XBOUND , YBOUND
,
,
,
,
Input Arguments
Argument
Name
Data Description
Type and Default
PICFRM
PICTO
ZGFFRM
ZGFTO
IFSAME
R2003.0
155
Landmark Graphics
Argument
Name
Data Description
Type and Default
IRESCL
IFCOFS
Positioning method:
1 = Use lower left corner of cutline
2 = Use lower left corner of map border
3 = Position for overlay
XLLIN
YLLIN
XLRIN
YLRIN
RESCL
Output Arguments
Argument
Name
156
Data Description
Type and Default
XLLOT
YLLOT
RESCOT
XBOUND
YBOUND
R2003.0
Landmark Graphics
Argument
Name
Data Description
Type and Default
ISTAT
Status flag:
0 = Operation was successful
1 = Error, logical not properly set
2 = Error, problem initializing pictures and
graphics files
3 = Error, problem calculating box coordinates
4 = Error, problem closing pictures and
graphics files
Cutline
(XLNVEW,YLNVEW)
FREEY
Border
(VXMAX,VYMAX)
YLNVEW
YLONG
Copy To
Space
FREEX
XOFFST
*
(XLLIN,YLLIN)
(VXMIN,VYMIN)
(0.0,0.0)
(XLRIN,YLRIN)
YOFFST
XLONG
XLNVEW
Cutline
(XLNVEW,YLNVEW)
Border
FREEY
XOFFST
Scaled Area
(User units)
(VXMAX,VYMAX)
YLNVEW
YLONG
Copy From
Space
(VXMIN,VYMIN)
*
(0.0,0.0)
YOFFST
FREEX
Unscaled Area
(Plotter units)
XLONG
XLNVEW
R2003.0
157
Landmark Graphics
Length in x is XLNVEW
y is YLNVEW
TOP/BOTTOM
Refers to longitude or eastings
158
R2003.0
Landmark Graphics
Graphic Routines
SIPCDL
Function
Environment
The ZPI/O and ZIGS environments must be initialized and the graphics
file containing the picture(s) to be deleted must be open before this
routine is called.
Format
CALL SIPCDL (
NAMPIC , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMPIC
Argument
Name
Data Description
Type and Default
Output Arguments
ISTAT
R2003.0
Status flag:
0 = Operation was successful
1 = Error, problem reading picture header
2 = Error, problem writing picture header
3 = Error, picture not found
159
Landmark Graphics
Graphic Routines
SIPCFL
Function
Environment
Format
CALL SIPCFL (
1 NAMZGF , NUMPIC , INXPIC
2 ISTAT )
, NAMPIC , NUMPCS,
Input Arguments
Argument
Name
Data Description
Type and Default
NAMZGF
NUMPIC
INXPIC
Output Arguments
160
Argument
Name
Data Description
Type and Default
NAMPIC
NUMPCS
ISTAT
Status flag:
2 = Warning, picture does not exist for that
index.
1 = Warning, number of pictures requested is
too large. Resetting to actual number of
pictures.
0 = Operation was successful.
1 = Error, invalid picture index.
2 = Error, problem opening graphics file.
R2003.0
Landmark Graphics
Graphic Routines
SIPCRN
Function
Rename a picture
This subroutine takes an old picture on the current graphics file and
renames it to the name provided.
Environment
Format
CALL SIPCRN (
Input Arguments
Argument
Name
Data Description
Type and Default
NAMOLD
NAMNEW
Output Arguments
Argument
Name
ISTAT
161
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, old picture not found
2 = Error, new picture name blank or same as
old picture
3 = Error, no names on the file
4 = Error, new picture name already exists
5 = Error, problem renaming file
R2003.0
Landmark Graphics
Graphic Routines
SIRPIC
Function
Environment
Format
CALL SIRPIC (
PICNAM , ISTAT
Input Arguments
Argument
Name
Data Description
Type and Default
PICNAM
Argument
Name
Data Description
Type and Default
Output Arguments
ISTAT
R2003.0
Status flag:
0 = Operation was successful
1 = Error, opening picture
162
Landmark Graphics
Graphic Routines
SIZGCM
Function
Environment
The ZPI/O and ZIGS environments must be initialized and the graphics
files closed before this routine is called.
Format
CALL SIZGCM (
Input Arguments
Argument
Name
Data Description
Type and Default
ZGFOLD
ZGFNEW
Argument
Name
Data Description
Type and Default
Output Arguments
ISTAT
163
Status flag:
0 = Operation was successful
1 = Error, problem opening old graphics file
2 = Error, problem initializing copy
3 = Error, problem switching from one
graphics file to the other
4 = Error, problem opening new graphics file
5 = Error, problem compressing graphics file
R2003.0
Landmark Graphics
Output Arguments
R2003.0
Status flag:
3 = Warning, problem copying graphics
segments
2 = Warning, problem writing picture
information
1 = Warning, problem opening picture
0 = Operation was successful
1 = Error, number of pictures is zero
2 = Error, invalid logical unit
3 = Error, opening neutral file
164
Landmark Graphics
Graphic Routines
SOGCLS
Name
SOGCLS
Function
Environment
Format
CALL SOGCLS (
1 NDXCLR , REDPCT , GRNPCT , BLUPCT , ISTAT
Input Arguments
Argument
Name
NDXCLR
Data Description
Type and Default
I
Color index.
Range Options: 0255
Output Arguments
Argument
Name
165
Data Description
Type and Default
REDPCT
Fraction red.
Range Options: 0.01.0
GRNPCT
Fraction green.
Range Options: 0.01.0
BLUPCT
Fraction blue.
Range Options: 0.01.0
ISTAT
Status flag:
0 = Operation was successful
1 = Error, no color table on picture
2 = Error, invalid color index
R2003.0
Landmark Graphics
Graphic Routines
SOGEND
Function
Environment
Format
CALL SOGEND
R2003.0
166
Landmark Graphics
Graphic Routines
SOGINT
Function
Environment
167
CALL SOGINT (
1 QTXTDC , QSYMDC , QLINDC
2 ISTAT )
, LENWRK , IOSCAL ,
R2003.0
Landmark Graphics
Graphic Routines
SOGLGB
Function
Environment
Format
CALL SOGLGB (
Argument
Name
R2003.0
Data Description
Type and Default
QPCEND
LGBCOD
CTRLEV
ISTAT
Status flag:
0 = Operation was successful
1 = Error, no graphics feature on this picture
168
Landmark Graphics
File Utilities
Introduction
Use the File Utilities subroutines to work with master files and their
member files.
Use the master file utilities to:
open, close, delete, list, and obtain information about member files
position a member file, then read or write records sequentially
read and write records with the member file at a random location
read, write, and set defaults for field descriptors
Internal Routines
Some library routines are not included in the documentation. These
routines are used internally by other library routines and are typically
not used by application programmers. The internal routines for file
utilities are:
SICROC
R2003.0
169
Landmark Graphics
S2DELE
Function
170
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL S2DELE (
R2003.0
Landmark Graphics
S2FLST
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL S2FLST (
1 REPORT , NAME
, TYPES
, BYNAME, BYTYPE ,
2 NUMTYP , LUNRPT , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
REPORT
NAME
TYPES
BYNAME
BYTYPE
NUMTYP
R2003.0
171
Landmark Graphics
Argument
Name
LUNRPT
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
172
Data Description
Type and Default
I
Status flag:
1 = No master files attached
0 = Operation was successful
1 = Error, invalid report type
2 = Error, invalid number of file types
3 = Error, problem creating files listing
R2003.0
Landmark Graphics
S2IZIM
Function
Environment
The ZPI/O environment must be initialized before you call this routine.
Call this subroutine only once in any one application.
Format
CALL S2IZIM (
1 NAMMFD , MFDNUM , IROFLG , LUNDRC , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMMFD
MFDNUM
IROFLG
LUNDRC
R2003.0
173
Landmark Graphics
Output Arguments
Argument
Name
Data Description
Type and Default
ISTAT
174
R2003.0
Landmark Graphics
S2LHIS
Function
R2003.0
Parent
Ancestor
Ancestor
Ancestor
Ancestor
Ancestor
Ancestor
Ancestor
NUMGEN = 3
Ancestor
Ancestor
NUMGEN = 2
Parent
Ancestor
NUMGEN = 1
Ancestor
NUMGEN = 0
Ancestor
Note
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL S2LHIS (
1 NAMFIL , MFDFIL , IHSFIL
2 IPRINT , ISTAT )
, NUMGEN , LOGRPT ,
175
Landmark Graphics
Input Arguments
Argument
Name
Data Description
Type and Default
NAMFIL
MFDFIL
IHSFIL
NUMGEN
LOGRPT
IPRINT
Output Arguments
Argument
Name
ISTAT
176
Data Description
Type and Default
I
Status flag:
1 = Warning, there are no history records.
0 = Operation was successful.
1 = Error, invalid master file number or
master file is read-only.
2 = Error, duplicate files. Specify master file
number.
3 = Error, cannot find the file.
4 = Error, 5 files already in use.
R2003.0
Landmark Graphics
S2MFAT
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
This capability is not available for nondynamic allocating systems.
Format
CALL S2MFAT (
Input Arguments
Argument
Name
Data Description
Type and Default
NAMMFD
IROFLG
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
1 = Warning, this option is unavailable for
nondynamic systems
0 = Operation was successful
1 = Error, master filename is blank
2 = Error, 5 master files attached already
3 = Error, master file not found
4 = Error, locked by another user
177
Landmark Graphics
S5DAFU
Obtain parameter, projection, and field information about a data file
Function
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL S5DAFU (
1 NAMDAT , MFDDAT ,
2 NUMFLD , NUMWRD ,
3 IFPRJ
, IPJCOD ,
4 IHEM
, IRADTY ,
5 IFDSRT , ROTANG ,
6 TOPPAR , REFLAT ,
7 FNORTH , FEAST
,
8 AZMTH , SCALE
,
9 YMIN
, YMAX
,
IHSDAT
NUMREC
ISPCOD
IFDTYP
SEPMRK
SFLAT
UNTFAC
FDZNON
ISTAT )
,
,
,
,
,
,
,
,
NAMFLD
ITYDAT
IUNCOD
IFDINX
CTRINT
REFLON
AXISA
XMIN
,
,
,
,
,
,
,
,
DEFFMT ,
ISRTIX ,
IUTMCD ,
IFDWRD ,
BOTPAR ,
SFLON ,
AXISB ,
XMAX ,
Input Arguments
Argument
Name
Data Description
Type and Default
NAMDAT
MFDDAT
IHSDAT
Output Arguments
Argument
Name
Data Description
Type and Default
NAMFLD
DEFFMT
C*6
NUMFLD I
NUMWRDI
NUMREC I
ITYDAT
178
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
ISRTIX
IFPRJ
PJCOD *
Cartographic projection:
17 = Grads and Van Der Grinten I
16 = Grads and Bipolar Oblique Conic Conformal
15 = Grads and Cassini-Soldner
14 = Grads and New Zealand Map Grid
13 = Grads and Oblique Transverse Mercator
12 = Grads and American Polyconic
11 = Currently not used
10 = Grads and Albers Equal Area (equivalent)
with two standard parallels
9 = Grads and Modified Rectangular Orthotomic
Polyconic
8 = Grads and Azimuthal Orthographic
7 = Grads and Azimuthal Stereographic
6 = Grads and Azimuthal Gnomonic
5 = Grads and Conformal Lambert with two
standard parallels
4 = Grads and Conformal Lambert with one
standard parallel
3 = Grads and Standard Mercator
2 = Grads and General Transverse Mercator
1 = Currently not used
0 = Currently not used
1 = Degrees and Universal Transverse Mercator
2 = Degrees & General Transverse Mercator
3 = Degrees and Standard Mercator
4 = Degrees and Conformal Lambert with one
standard parallel
5 = Degrees and Conformal Lambert with two
standard parallels
6 = Degrees and Azimuthal Gnomonic
7 = Degrees and Azimuthal Stereographic
8 = Degrees and Azimuthal Orthographic
9 = Degrees and Modified Rectangular
Orthotomic (Polyconic)
10= Degrees and Albers Equal Area equivalent
with two standard parallels
11 = Currently not used
12 = Degrees and American Polyconic
13 = Degrees and Oblique Mercator
14 = Degrees and New Zealand Map Grid
15= Degrees and Cassini-Soldner
16 = Degrees and Bipolar Oblique Conic
Conformal
17 = Degrees and Van Der Grinten I
179
Landmark Graphics
Argument
Name
180
Data Description
Type and Default
ISPCOD *
Reference spheroid:
1 = User defined
2 = Everest 1830
3 = Malayan Everest 1830
4 = Bessel 1841
5 = Airy 1858
6 = Clarke 1858
7 = Clarke 1866
8 = Clarke 1880
9 = Hayford 1909
10 = Krassovsky 1940
11 = Hough 1956
12 = Fischer 1960 (Mercury)
13 = Kaula 1961
14 = IUGG 1967 (Australian National 1967/
South American 1969)
15 = Fischer 1968 (Mercator modified)
16 = WGS-72 1972
17 = IUGG 1975
18 = Helmert
19 = Ghana National
20 = WGS-84 (GRS-80)
IUNCOD
*
IUTMCD
*
IHEM *
Which hemisphere:
0 = Cannot be determined
1 = Northern
2 = Southern
IFDTYP
IFDINX
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
IFDWRD
IFDSRT
ROTANG
SEPMRK
CTRINT
BOTPAR
*
TOPPAR
*
REFLAT
*
Reference latitude.
SFLAT *
REFLON
*
Reference longitude.
SFLON *
FNORTH
*
False northing.
FEAST *
False easting.
UNTFAC
*
AXISA *
AXISB *
FDZNON
AZMTH *
SCALE *
181
Landmark Graphics
Argument
Name
182
Data Description
Type and Default
XMIN
XMAX
YMIN
YMAX
ISTAT
Status flag:
0 = Operation was successful.
1 = Error, invalid master file number or master
file is read-only.
2 = Error, duplicate files. Specify master file
number.
3 = Error, cannot find the file.
4 = Error, 5 files already in use.
5 = Error, this is a grid file not a data file.
R2003.0
Landmark Graphics
O O
AZMTH
N N N N N N N N N
N N Y N
N N
Standard Mercator
O N O O
O N O O O N O O O
AXISB
Modified Polyconic
O O
O N O O
Cassini-Soldner
O N O O O N O O O
Azimuthal Stereographic
Azimuthal Orthographic
AXISA
Azimuthal Gnomonic
Description
Arguments
American Polyconic
Name
Projection Type
BOTPAR
Y N N N N N N Y N
N N N Y
N N N
FEAST
False Easting
O O O O O O N O O
O O O O
O N
FNORTH
False Northing
O O O O O O O O O
O N O O
O O
IHEM
Hemisphere
N N N N N N N N N
N N N N
N O
IPJCOD
Projection Code
Y Y Y Y Y Y Y Y Y
Y Y Y Y
Y Y
ISPCOD
Spheroid Code
Y Y Y Y N N Y Y Y
Y N Y Y
Y Y
IUNCOD
Units Code
Y Y Y Y Y Y Y Y Y
Y N Y Y
Y N
O4
N
Y
IUTMCD
UTM Zone
N N N N N N N N N
N N N N
IRADTY
N N N N N N N N N
N N N N
N N
Reference Latitude
Y1
Y Y Y Y N Y Y Y
Y1
N Y Y N N N
REFLON
Reference Longitude
Y2
Y Y Y Y N Y Y Y
Y2
N Y Y
SCALE
N N N N N N N N N
N N Y N
N N
SFLAT
N N N N N N N N N
Y N N N
N N
REFLAT
Y O3 Y
SFLON
N N N N N N N N Y
Y2
TOPPAR
Y N N N N N N Y N
N N N N
N N
UNTFAC
O O O O O O O O O
O N O O
O N
N N N N N N
Key:
Y = argument required
Polyconic projection also has a central meridian with associated scale factor
* User defined
R2003.0
183
Landmark Graphics
SIDFFD
Function
Environment
Format
CALL SIDFFD (
1 NAMFLD , IFDFMT , IFDTYP , IFDWID , IFDDEC ,
2 INXFLD , IFDWDS , IFDSRT , ZNON , ZALMIN ,
3 ZALMAX , VECTOR , ISTAT )
Input Arguments
184
Argument
Name
Data Description
Type and Default
NAMFLD
IFDFMT
C*1
IFDTYP
IFDWID
IFDDEC
INXFLD
IFDWDS
IFDSRT
R2003.0
Landmark Graphics
Argument
Name
Data Description
Type and Default
ZNON
ZALMIN
ZALMAX
Output Arguments
Argument
Name
VECTOR
R2003.0
Data Description
Type and Default
R
185
Landmark Graphics
Argument
Name
ISTAT
186
Data Description
Type and Default
I
Status flag:
9 = Warning, maximum value allowed was
less than or equal to minimum value
allowed, it was reset to 1E30.
8 = Warning, the number of words was reset
to 1.
7 = Warning, the width of the field is not large
enough for the format type, it has been
adjusted.
6 = Warning, the width of the field was zero
and has been reset to 15.
5 = Warning, output type was integer, number
of decimals was not zero, it has been reset
to 0.
4 = Warning, not a valid format type, has been
reset to G.
3 = Warning, format type was blank, has been
reset to G.
2 = Warning, the number of words was zero,
has been reset to one.
1 = Warning, field type does not have a
known field name. The field name has
been set to DATA FIELD.
0 = Operation was successful.
1 = Error, index of first word for field was
zero.
R2003.0
Landmark Graphics
SIDNFL
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL SIDNFL (
1 NFILE
, INXFIL
, NAMZIM , FILTYP , MFDNZM ,
2 NUMFIL , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NFILE
INXFIL
Output Arguments
R2003.0
Argument
Name
Data Description
Type and Default
NAMZIM
FILTYP
C*4
MFDNZM
NUMFIL
ISTAT
Status flag:
1 = Warning, file has been deleted
0 = Operation was successful
1 = Error, invalid index
2 = Error, end-of-file on runtime directory
reached
3 = Error, index is out of range
187
Landmark Graphics
SIEZIM
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL SIEZIM
188
R2003.0
Landmark Graphics
SIFCLO
Function
Environment
Format
CALL SIFCLO (
LOGFIL , ISTAT
Input Arguments
Argument
Name
LOGFIL
Data Description
Type and Default
I
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, problem closing file
189
Landmark Graphics
SIFLDR
Function
Environment
Format
CALL SIFLDR (
1 LOGFIL , NUMFLD , FLDNAM , IFMT
2 NWORDS , INDEX
, IFWID
, IDEC
3 ZNON
, FMIN
, FMAX
, ISTAT
, ITYPE
,
, NXSORT ,
)
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
NUMFLD
Output Arguments
190
Argument
Name
Data Description
Type and Default
FLDNAM
IFMT
C*1
ITYPE
NWORDS
INDEX
IFWID
IDEC
R2003.0
Landmark Graphics
Argument
Name
R2003.0
Data Description
Type and Default
NXSORT
ZNON
FMIN
FMAX
ISTAT
Status flag:
0 = Operation was successful
1 = Error, reading direct access file
2 = Error, field number does not exist
191
Landmark Graphics
SIFLDW
Function
Environment
Format
CALL SIFLDW (
1 FLDNAM , IFMT
2 NWORDS , INDEX
3 ZNON
, FMIN
, LOGFIL
, IFWID
, FMAX
, NUMFLD , ITYPE ,
, IDEC
, NXSORT ,
, ISTAT )
Input Arguments
192
Argument
Name
Data Description
Type and Default
FLDNAM
IFMT
C*1
LOGFIL
NUMFLD
ITYPE
NWORDS
INDEX
IFWID
IDEC
R2003.0
Landmark Graphics
Argument
Name
Data Description
Type and Default
NXSORT
ZNON
FMIN
FMAX
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, writing direct access file
193
Landmark Graphics
SIFRED
Function
Note
Environment
Format
CALL SIFRED (
1 LOGFIL , IREC , NWRDS , IWORD , DATA ,
2 ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
IREC
NWRDS
Output Arguments
Argument
Name
194
Data Description
Type and Default
IWORD
DATA
ISTAT
Status flag:
0 = Operation was successful
1 = Error, positioning file
2 = Error, file error
3 = Error, end of file detected while
positioning file
4 = Error, number of words to read is zero
R2003.0
Landmark Graphics
SIFWRT
Function
Note
Environment
If this routine is used for random access I/O, the record to be written
must already exist on the file. This routine cannot extend a file except
through sequential writes.
Format
CALL SIFWRT (
1 LOGFIL , IREC , NWRDS , DATA , IWORD ,
2 ISTAT )
Input Arguments
Argument
Name
R2003.0
Data Description
Type and Default
LOGFIL
IREC
NWRDS
DATA
195
Landmark Graphics
Output Arguments
Argument
Name
196
Data Description
Type and Default
IWORD
ISTAT
Status flag:
0 = Operation was successful
1 = Error, positioning file
2 = Error, writing to file
3 = Error, number of words to write is zero
R2003.0
Landmark Graphics
SIIZIM
Function
Environment
The ZPI/O environment must be initialized before you call this routine.
This subroutine should be called only once in any one application.
Format
CALL SIIZIM (
1 NAMMFD , MFDNUM , LUNDRC , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMMFD
MFDNUM
LUNDRC
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
1 = Warning, runtime directory is reset to 20
0 = Operation was successful
14 = Sequential number of the master file that
could not be opened
5 = Error, opening scratch file
6 = Error, opening runtime directory
File Utilities: Internal Routines SIIZIM
197
Landmark Graphics
SIMFAT
Attach a master file
Function
This subroutine attaches master files and reloads the runtime directory.
If at the beginning of the application there are no master files, then for
initialization purposes call the initialization routine with the number of
master files being zero and the names of the master files blanked.
The following example shows how the current master file maintenance
structure stores the location (logical units) of the master files:
Note
Routine
Process
Result
SIIZIM
SIMFAT
SIMFDT
SIMFAT
SIMFDT
Initialize
ZIMS with
2 MFDs
1 = MFD 1
2 = MFD 2
3 = Scratch
4 =
5 =
Attach
Third
MFD
= MFD 1
= MFD 2
= Scratch
= MFD 3
=
Detach
Second
MFD
= MFD 1
=
= Scratch
= MFD 3
=
Attach
Fourth
MFD
= MFD 1
= MFD 4
= Scratch
= MFD 3
=
Detach
All
MFDs
= Scratch
=
=
=
=
1
2
3
4
5
1
2
3
4
5
1
2
3
4
5
1
2
3
4
5
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine. This capability is not available for nondynamic allocating
systems.
Format
CALL SIMFAT (
NAMMFD , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMMFD
Argument
Name
Data Description
Type and Default
Output Arguments
ISTAT
198
Status flag:
1 = Warning, this option is unavailable for
nondynamic systems
0 = Operation was successful
1 = Error, master filename is blank
2 = Error, 5 master files attached already
3 = Error, master file not found
R2003.0
Landmark Graphics
SIMFCM
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
Input Arguments
Argument
Name
Data Description
Type and Default
LUNCFM
LUNCTO
Output Arguments
Argument
Name
R2003.0
Data Description
Type and Default
NUMCPY
ISTAT
Status flag:
0 = Operation was successful
1 = Error, problem compressing master file
199
Landmark Graphics
SIMFCR
Function
Environment
The ZPI/O environment must be initialized before you call this routine.
Format
CALL SIMFCR (
1 NAMMFD , INTMFD , MFDLUN , ISTAT
Input Arguments
Argument
Name
Data Description
Type and Default
NAMMFD
INTMFD
MFDLUN
200
R2003.0
Landmark Graphics
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, master filename is blank
2 = Error, master file FORTRAN unit is zero
3 = Error, opening FORTRAN file
4 = Error, writing to file
201
Landmark Graphics
SIMFDT
Detach one or all master files
Function
This subroutine detaches master files and reloads the runtime directory.
If at the beginning of the application there are no master files, then for
initialization purposes call the initialization routine with the number of
master files being zero and the names of the master files blanked.
The following example shows how the current master file maintenance
structure stores the location (logical units) of the master files:
Note
Routine
Process
Result
Environment
SIIZIM
SIMFAT
SIMFDT
SIMFAT
SIMFDT
Initialize
ZIMS with
2 MFDs
1 = MFD 1
2 = MFD 2
3 = Scratch
4 =
5 =
Attach
Third
MFD
= MFD 1
= MFD 2
= Scratch
= MFD 3
=
Detach
Second
MFD
= MFD 1
=
= Scratch
= MFD 3
=
Attach
Fourth
MFD
= MFD 1
= MFD 4
= Scratch
= MFD 3
=
Detach
All
MFDs
= Scratch
=
=
=
=
1
2
3
4
5
1
2
3
4
5
1
2
3
4
5
1
2
3
4
5
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
This capability is not available for nondynamic allocating systems.
Format
CALL SIMFDT (
NAMMFD , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMMFD
Argument
Name
Data Description
Type and Default
Output Arguments
ISTAT
202
Status flag:
1 = Warning, this option is unavailable for
nondynamic systems
0 = Operation was successful
1 = Error, problem reinitializing ZIMS
2 = Error, no match for the disk master file
R2003.0
Landmark Graphics
SIMFLS
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL SIMFLS (
1 NAMMFD , NAMINT , MFDNUM , NUMREC, NUMUSE ,
2 ISTAT )
R2003.0
Argument
Name
Data Description
Type and Default
NAMMFD
NAMINT
MFDNUM
NUMREC
NUMUSE
ISTAT
Status flag:
1 = Warning, no master files attached
0 = Operation was successful
203
Landmark Graphics
SIMFRN
Function
Environment
Format
CALL SIMFRN (
Input Arguments
Argument
Name
Data Description
Type and Default
NAMMFD
NAMINT
Argument
Name
Data Description
Type and Default
Output Arguments
ISTAT
204
Status flag:
0 = Operation was successful
1 = Error, the disk or internal master file
name is blank
2 = Error, the disk master file cannot be found
3 = Error, problem reading/writing internal
master file name
R2003.0
Landmark Graphics
SINOPN
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL SINOPN (
1 NAMZIM , INWTYP , MFDNZM , NAMRET , LOGFIL ,
2 ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
NAMZIM
INWTYP
C*4
MFDNZM
Output Arguments
R2003.0
Argument
Name
Data Description
Type and Default
NAMRET
LOGFIL
ISTAT
Status flag:
1 = Warning, duplicate files. A version
number has been added.
0 = Operation was successful.
1 = Error, invalid master file number or
master file is read-only.
2 = Error, invalid version number.
3 = Error, 5 files already in use.
205
Landmark Graphics
SIOOPN
Function
Environment
The ZPI/O and ZIMS environments must be initialized before you call
this routine.
Format
CALL SIOOPN (
1 NAMZIM , MFDNZM , IHISZM
2 ISTAT )
, IOLTYP
, LOGFIL ,
Input Arguments
Argument
Name
Data Description
Type and Default
NAMZIM
MFDNZM
IHISZM
Output Arguments
206
Argument
Name
Data Description
Type and Default
IOLTYP
C*4
LOGFIL
ISTAT
Status flag:
0 = Operation was successful
1 = Error, invalid master file number or
master file is read-only
2 = Error, duplicate files
3 = Error, cannot find the file
4 = Error, 5 files already in use
R2003.0
Landmark Graphics
SIPRRC
Function
Environment
Format
CALL SIPRRC (
1 LOGFIL , NFLDS
, NWORDS , NRECS
, ICNTSP ,
2 ISORTF , XMIN
, XMAX
, YMIN
, YMAX ,
3 ZNON
, VALMRK , CNTINC , ROTANG , ISTAT )
Input Arguments
Argument
Name
LOGFIL
Data Description
Type and Default
I
Output Arguments
Argument
Name
R2003.0
Data Description
Type and Default
NFLDS
NWORDS
NRECS
ICNTSP
ISORTF
XMIN
XMAX
YMIN
YMAX
207
Landmark Graphics
Argument
Name
208
Data Description
Type and Default
ZNON
VALMRK
CNTINC
ROTANG
ISTAT
Status flag:
0 = Operation was successful
1 = Error, reading direct access file
R2003.0
Landmark Graphics
SIPRRD
Function
Environment
Format
CALL SIPRRD (
1 LOGFIL , NFLDS
2 XMIN
, XMAX
3 ISTAT )
,
,
Input Arguments
Argument
Name
LOGFIL
Data Description
Type and Default
I
Output Arguments
Argument
Name
R2003.0
Data Description
Type and Default
NFLDS
NWORDS
NRECS
ISORTF
XMIN
XMAX
YMIN
YMAX
ZNON
ISTAT
Status flag:
0 = Operation was successful
1 = Error, reading direct access file
209
Landmark Graphics
SIPRRG
Function
Environment
Format
CALL SIPRRG (
1 LOGFIL , NROWS
2 YMIN
, YMAX
3 GMAX
, GMIN
, NCOLS
, XMIN
, GXINC
, GYINC
, ISTAT )
, XMAX
, ZNON
,
,
Input Arguments
Argument
Name
LOGFIL
Data Description
Type and Default
I
Output Arguments
Argument
Name
210
Data Description
Type and Default
NROWS
NCOLS
XMIN
XMAX
YMIN
YMAX
GXINC
GYINC
ZNON
GMAX
GMIN
ISTAT
Status flag:
0 = Operation was successful
R2003.0
Landmark Graphics
SIPRWC
Function
Environment
Format
CALL SIPRWD (
1 LOGFIL , NFLDS
, NWORDS , NRECS
, ICNTSP ,
2 ISORTF , XMIN
, XMAX
, YMIN
, YMAX ,
3 ZNON
, VALMRK , CNTINC , ROTANG , ISTAT )
Input Arguments
Argument
Name
R2003.0
Data Description
Type and Default
LOGFIL
NFLDS
NWORDS
NRECS
ICNTSP
ISORTF
XMIN
XMAX
YMIN
211
Landmark Graphics
Argument
Name
Data Description
Type and Default
YMAX
ZNON
VALMRK
CNTINC
ROTANG
Output Arguments
Argument
Name
ISTAT
212
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
R2003.0
Landmark Graphics
SIPRWD
Write a data parameter record
Function
This subroutine writes information to the parameter record for the data
file referenced by LOGFIL. This record should be written after the last
record of the data has been written, to give the program the opportunity
to calculate correct values for NRECS, XMIN, XMAX, YMIN, and
YMAX.
Environment
Format
CALL SIPRWD (
1 LOGFIL , NFLDS
2 XMIN
, XMAX
3 ISTAT )
,
,
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
NFLDS
NWORDS
NRECS
ISORTF
XMIN
XMAX
YMIN
YMAX
ZNON
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
213
Landmark Graphics
SIPRWG
Function
Environment
Format
CALL SIPRWG (
1 LOGFIL , NROWS
2 YMIN
, YMAX
3 GMAX
, GMIN
, NCOLS
, XMIN , XMAX
, GXINC
, GYINC , ZNON
, ISTAT )
,
,
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
NROWS
NCOLS
XMIN
XMAX
YMIN
YMAX
GXINC
GYINC
ZNON
GMAX
GMIN
Output Arguments
Argument
Name
ISTAT
214
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
R2003.0
Landmark Graphics
SIRDPO
Function
Environment
Format
CALL SIRDPO (
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
IWORD
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
1 = Warning, end of file
0 = Operation was successful
1 = Error, invalid member file unit
2 = Error, invalid word position
3 = Error, positioning file
215
Landmark Graphics
SIRDRN
Function
Environment
Format
CALL SIRDRN (
1 LOGFIL , IWORD , NWORDS , ARRAY , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
IWORD
NWORDS
Output Arguments
Argument
Name
216
Data Description
Type and Default
ARRAY
ISTAT
Status flag:
0 = Operation was successful
1 = Error, invalid file unit
2 = Error, invalid word position
3 = Error, number of words to read is zero
4 = Error, reading file
R2003.0
Landmark Graphics
SIRDSQ
Function
Environment
Format
CALL SIRDSQ (
1 LOGFIL , NWORDS , IEOF , ARRAY , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
NWORDS
Output Arguments
Argument
Name
R2003.0
Data Description
Type and Default
IEOF
End of file:
0 = This record is not the last one
1 = End of file (EOF) reached. This record is
the last one.
ARRAY
ISTAT
Status flag:
0 = Operation was successful.
1 = Error, invalid member file unit.
2 = Error, number of words to read is zero.
3 = Error, reading file.
217
Landmark Graphics
SIRHIS
Function
Environment
Format
CALL SIRHIS (
1 LOGFIL , IHREC , INFHIS , NOHREC , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
IHREC
Output Arguments
218
Argument
Name
Data Description
Type and Default
INFHIS
NOHREC
ISTAT
Status flag:
0 = Operation was successful
1 = Error, old (pre-1985) format history
record, cannot be read
2 = Error, no history records on the file
3 = Error, history record requested does not
exist
R2003.0
Landmark Graphics
SIWHIS
Function
Environment
Format
CALL SIWHIS (
1 INFHIS , NORECS , LOGFIL , NTHREC , ISTAT
Input Arguments
Argument
Name
Data Description
Type and Default
INFHIS
NORECS
LOGFIL
Output Arguments
Argument
Name
R2003.0
Data Description
Type and Default
NTHREC
ISTAT
Status flag:
0 = Operation was successful
1 = Error, record number invalid
2 = Error, writing the history information
219
Landmark Graphics
SIWRPO
Function
Environment
Format
CALL SIWRPO (
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
IWORD
Output Arguments
Argument
Name
ISTAT
220
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid member file unit
2 = Error, invalid word position
3 = Error, positioning file
R2003.0
Landmark Graphics
SIWRRN
Function
Environment
Format
CALL SIWRRN (
1 LOGFIL , IWORD , NWORDS , ARRAY , ISTAT )
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
IWORD
NWORDS
ARRAY
Output Arguments
Argument
Name
ISTAT
R2003.0
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid member file number
2 = Error, invalid word position
3 = Error, number of words to write is zero
4 = Error, writing file
221
Landmark Graphics
SIWRSQ
Function
Environment
Format
CALL SIWRSQ (
Input Arguments
Argument
Name
Data Description
Type and Default
LOGFIL
NWORDS
ARRAY
Output Arguments
Argument
Name
ISTAT
222
File Utilities
Data Description
Type and Default
I
Status flag:
0 = Operation was successful
1 = Error, invalid member logical file
2 = Error, number of words to write is zero
3 = Error, writing file
R2003.0
Landmark Graphics
Appendix A.
ZIGS Overview
Introduction
The Z-MAP Interactive Graphics System (ZIGS) is a comprehensive
graphics software package that operates with a broad range of graphics
peripherals. As a ZPI/O programmer, you will be most concerned with
placing graphics into or extracting graphics from a Z-MAP Graphics
File (ZGF). This file contains graphics in a packed form and, like a
metafile, is device independent. Many of the routines in the Graphics
Utilities section are involved with ZIGS operations.
This appendix is an introduction to ZIGS for the new ZPI/O
programmer and a ZIGS reference for the more experienced ZPI/O
programmer. The next topic describes the ZIGS file structure, followed
by a topic describing step-by-step how to write and read a picture in a
ZIGS graphics file.
Picture Components
Each picture is composed of a set of graphics segment types (e.g.,
contours, borders, cross-section lines, lithology columns, etc.) which
are often called logical graphics blocks (LGBs) or graphics features.
An LGB (graphics feature) is therefore a marker identifying some
specific type of graphic data.
Contours, posted well data, title block components, seismic lines and
other features can also be grouped together in a single LGB.
223
R2003.0
Landmark Graphics
All types of LGBs used in ZPI/O can be broken down into four groups
of graphic primitives: lines, text, symbols and polygons. Any number
of primitives can be written to an LGB, but picture editing is less
efficient if massive amounts of graphics are created in a single LGB. A
list of allowed LGB types can be found in Appendix A. Graphics
Feature Codes in the Z-MAP Plus Reference Manual.
A copy of the color table assigned to the logical name ZYCOLOR is
attached to each picture. By assigning different tables to the logical
name in different runs, you can change the color table from picture to
picture. Different pictures on the same ZGF can have different color
tables. The color index used in many ZPI/O routines is a reference to
this color table. If no specific index is assigned, the default index
assigned in the Color Index section of the table is used to define the
color of the primitive. The Color Representation section defines the
color used for each index. (See Appendix F. Color Editing in the
Z-MAP Plus Reference Manual.)
Headers
Each ZGF, picture and LGB has a header which stores pertinent
information. The ZGF header contains file identification text, file status
information, the number of records allocated to the file, and a pointer to
the next unused record.
The picture header contains the name of the picture, status information,
a pointer to the first LGB header in that picture, the location of the next
picture header, and the display parameters which define the scale and
area of the plot.
Each LGB header contains a pointer to a sequential list of graphic
primitives. The LGB header begins with a unique three-integer name
for the LGB. The first word identifies the type of LGB, the second
word indicates the number of LGBs of this type already created and the
third word indicates the number of modifications made to the LGB. As
a picture is edited, new versions of an LGB are created. These versions
have the same name as the original LGB, but the version number is
changed.
Also included in the LGB header are pointers to the actual primitive
data, connections to both previous and later versions of the LGB, a
display priority number and the coordinates of the minimum enclosing
box around the LGB with lines parallel to the x and y axes.
R2003.0
224
Landmark Graphics
ZGF Header
Header Picture 1
LGB 1
Primitive 1
Primitive 2
Primitive n
LGB 2
Primitive 1
Primitive 2
Primitive m
LGB K
Header Picture z
R2003.0
Landmark Graphics
R2003.0
226
Landmark Graphics
2.
C
CALL SIIZIG
C
3.
C
ZGFNAM = /disk/directory/my.zgf
NEWZGF = NEW
HISNEW = TESTING ZPIO INPUT GRAPHICS ROUTINES
C
CALL SIIZGF (ZGFNAM, HISNEW, NEWZGF, HISOLD, ISTAT)
IF (ISTAT .GT. 0) GO TO 800
4.
Initialize a picture.
Call S3IPIC to open either a new or an old 2D (baseplane) picture.
If the picture is new, input arguments must include the picture
name, projection information, information on the Area of Interest
(AOI) to be mapped and scaling information. If the picture is an
old one (it has been previously created), you must only supply the
picture name and all other information is returned from S3IPIC.
Alternatively:
Call S3NPIC to open a new picture. All the same information as
described above is needed here also.
Call S3OPIC to open an old picture supplying only the picture
name. All information about the old picture is returned here
also.
Call SIRPIC to open a picture in read-only state. You supply
the picture name, but no information about the picture is
returned.
227
R2003.0
Landmark Graphics
C
PICNAM
IFOLD
IFABSC
IFPRJ
IBRTIP
IABSSC
LONMND
LONMNM
LONMNS
LONMXD
LONMXM
LONMXS
LATMND
LATMNM
LATMNS
LATMXD
LATMXM
LATMXS
IHEM
IUTMCD
IPJCOD
ISPCOD
IUNCOD
IRADTY
XOFFST
FREEX
YOFFST
FREEY
VXMIN
VXMAX
VYMIN
VYMAX
XSCMAP
YSCMAP
XLONG
YLONG
BOTPAR
TOPPAR
REFLAT
SFLAT
REFLON
SFLON
FNORTH
FEAST
UNTFAC
AXISA
AXISB
AZMTH
SCALE
XLNVEW
YLNVEW
R2003.0
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
DEFAULT GRAPHICS
NEW
0
1
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.0
1.0
1.0
1.0
0.0
10.0
0.0
10.0
1.0
1.0
10.0
10.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
228
Landmark Graphics
C
CALL S3IPIC (PICNAM,
IABSSC,
LONMXM,
LATMXD,
IPJCOD,
VXMAX,
YOFFST,
YLONG,
REFLON,
AXISA,
YLNVEW,
IF (ISTAT .GT. 0)
1
2
3
4
5
6
7
8
9
.
5.
IFOLD, IFABSC,
LONMND, LONMNM,
LONMXS, LATMND,
LATMXM, LATMXS,
ISPCOD, IUNCOD,
VYMIN, VYMAX,
FREEY, XSCMAP,
BOTPAR, TOPPAR,
SFLON, FNORTH,
AXISB, AZMTH,
ISTAT )
GO TO 800
IFPRJ,
LONMNS,
LATMNM,
IHEM,
IRADTY,
XOFFST,
YSCMAP,
REFLAT,
FEAST,
SCALE,
IBRTIP,
LONMXD,
LATMNS,
IUTMCD,
VXMIN,
FREEX,
XLONG,
SFLAT,
UNTFAC,
XLNVEW,
Initialize an LGB.
Call SIGSOP to open a new LGB (graphics feature) on the
currently opened picture and currently opened ZGF. The only
input argument to this routine is the code assigned to the type of
graphic segment to be opened. You can find these codes in
Appendix A. Graphics Feature Codes in the Z-MAP Plus
Reference Manual.
C
C
C
6.
229
Routine
SIGLCL
SIGLTY (solid, bold, dashed)
SIGLPM
SIGLWD
R2003.0
Landmark Graphics
Routine
SIGMCL
SIGMHT
SIGMTY
The marker type is the symbol code to use. You can find it in
Appendix C. Symbols, Fonts, and Line Patterns in the
Z-MAP Plus Reference Manual.
If the type of segment contains text, the following attributes can be
assigned:
Attribute
text color
text font
text height
text justification
text rotation
Routine
SIGTCL
SIGTFO
SIGTHT
SIGTJU
SIGTRO
SET DEFAULTS
CALL SIGPDF(
KLNCLR, KLNTYP,
KTXTFO, KTXTJU,
HTMARK, HTTEXT,
HSHLEN, HSHGAP,
IF (ISTAT .GT. 0) GO TO
1
2
3
4
7.
KMKCLR,
KPOLCL,
ROTEXT,
HSHWAY,
800
KMKTYP, KTXTCL,
KSCLTY, WDLINE,
DSHLEN, DSHGAP,
ISTAT)
R2003.0
230
Landmark Graphics
5
1.0
1.0
11.0
1.0
11.0
11.0
1.0
11.0
1.0
1.0
C
CALL SIGLIN(NUMPTS, XCORS, YCORS, ISTAT )
IF (ISTAT .GT. 0) GO TO 800
8.
C
C
C
9.
C
C
C
231
R2003.0
Landmark Graphics
R2003.0
232
Landmark Graphics
5.
6.
7.
8.
9.
10.
11.
12.
2.
3.
Obtain an LGB.
Call SOGLGB to return the first LGB (graphics feature) header.
An output argument tells you what type of graphic segment has
been retrieved. If you do not want to add this type of graphics
feature to your application, call SOGLGB again to retrieve the
next LGB header.
233
R2003.0
Landmark Graphics
4.
5.
6.
7.
R2003.0
234
Landmark Graphics
Appendix B.
ZIMS Overview
Introduction
On many computing systems, file handling is not as user friendly as it
could be. Converting datasets (control points, grids, vertices, text, etc.)
located on separate disk files into member files on one large Z-MAP
Information Management System (ZIMS) master file minimizes this
type of problem. We have localized this interface to one level of
application programming. Many of the routines in the File Utilities
section of the Z-MAP Plus I/O Access Library are the interface used
for ZIMS. The ZIMS master file is commonly called an MFD.
The ZIMS master file has a system of expanded member file headers
which contain detailed information about the individual member files
history and parameters. This header provides easy access to ZIMS file
handling capabilities for all application programs, whether reading
from or writing to a permanent, temporary or scratch ZIMS member
file. This header also provides a standardized method for dealing with
control point datasets having different record structures. The record
structure information is stored in the member files header at the time
of creating and is available on subsequent reads of the member file.
As many as four master files can be attached to ZIMS simultaneously.
In addition, a scratch file is available which can be used for member
files that are only needed temporarily. The scratch master file is deleted
automatically at the end of the ZPI/O run; therefore, information about
the scratch master file cannot be accessed in future ZPI/O program
runs.
This appendix is an introduction to ZIMS for the new ZPI/O
programmer and a ZIMS reference for the more experienced ZPI/O
programmer. The next topic describes the ZIMS file structure followed
by a topic that describes step-by-step how to write and read a ZIMS
member file.
235
R2003.0
Landmark Graphics
Header File 1
Header File 2
Field Descriptor 1
Field Descriptor 2
Field Descriptor n
Data Record 1
Data Record n
R2003.0
236
Landmark Graphics
Member File
Each member file is conceptually separate from the other files and can
be used without regard to the other member files. Several types of files
have been defined, including grid files, data files, vertex files and fault
files. (For a list, see Appendix B. File and Field Codes in the
Z-MAP Plus Reference Manual. For examples of how these files are
structured, see Appendix D. Import/Export in the Z-MAP Plus
Reference Manual.)
In addition to the actual data, each member file can contain other
optional information. A history block contains information about other
files which were used in creating the fields, and can include text
descriptions input by the user. A parameter record contains descriptive
numerical information about the data in the file, and data field
descriptors contain information about the various fields in the data file.
There is no limit to the number of member files which can be in a
master file. Files can be added or deleted during a run. Each member
file in a given master file must have a unique name. If you try to create
a new member file in a master file which already has a member file by
that name, the ZPI/O routines place a version number (V-02, V-03,
etc.) in columns 21-24 of the member filename. The new member file
then has to be accessed by the name including version number. If the
version number is left off the name when accessing it later, the old or
original member file by that name is used.
Each member file has a 32-word directory associated with it, which is
sorted on the master file. At runtime, all directory entries from all the
master files are combined in one runtime directory. If a member file is
actually in use, a copy of the directory is placed in memory. The
directory contains the name and length of the file, and points to various
parts of the file and other information.
237
R2003.0
Landmark Graphics
Type
Content
AKA
Integer
0 (zero)
Integer
NROWS
Integer
NCOLS
56
Double
Minimum x value
XMIN
78
Double
Maximum x value
XMAX
910
Double
Minimum y value
YMIN
1112
Double
Maximum y value
YMAX
13
Real
GXINC
14
Real
GYINC
15
Real
XBAND
16
Real
YBAND
17
Real
REACH
18
Real
ZNON
19
Real
GMAX
20
Real
GMIN
2132
R2003.0
Not used
238
Landmark Graphics
Type
Content
AKA
Integer
NFLDS
Integer
NWRDS
Integer
NRECS
Integer
56
Double
Minimum x coordinate
XMIN
78
Double
Maximum x coordinate
XMAX
910
Double
Minimum y coordinate
YMIN
1112
Double
Maximum y coordinate
YMAX
Real
ZNON
Real
23
Integer
24
Real
30
Real
Rotation angle
31
Integer
32
Integer
1317
18
1920
21
22
2529
239
R2003.0
Landmark Graphics
Data files also contain Field Descriptor records. One field descriptor
record is needed for each field on the dataset. Each record contains the
field name, field type, default print information, location in the record,
the ZNON value, and minimum and maximum allowed values.
Field Descriptor Record
LENGTH = 20 words
Word
Type
Content
Hollerith
Integer
Type of data stored in the field. The standard data types are
given in Appendix B. File and Field Codes in the
Z-MAP Plus Reference Manual.
Hollerith
Integer
Integer
10
Integer
11
Integer
13
Real
14
Real
15
Real
Integer
15
12
(default = 1.0E30).
1619
20
Y-field
Z1-field
Name-field
record 1
record 2
record 3
record (maximum)
R2003.0
240
Landmark Graphics
2.
241
R2003.0
Landmark Graphics
3.
4.
5.
6.
R2003.0
242
7.
Landmark Graphics
8.
9.
243
R2003.0
Landmark Graphics
2.
3.
4.
R2003.0
244
5.
Landmark Graphics
6.
7.
245
R2003.0
Landmark Graphics
R2003.0
246
Landmark Graphics
Appendix C.
Logical Unit Assignment
R2003.0
247
Description
Logical Symbolic
Unit
Name
Common
Block
Defining
Routine
Data
Format
Maximum
Size
Record
Format
Record
Length
File
Allocation
132 byte
Permanent
(if used)
248
LFRMAT
(none)
ZVOLUM
Fixed
Blocked
10
LUNFMT
(none)
ZXFGRD
ZXFDAT
ZXFSUP
Character
User
Specified
20
LUNDIR
DIRECT
ZILDDR
Binary
250 rec.
Direct
32 word
Run
Temporary
21
22
23
24
(none)
FBUFCM ZILDDR
FBUFCM
FBUFCM
FBUFCM
Binary
500 rec.
Direct
Access
512 word
Permanent
25
(none)
FBUFCM ZILDDR
Binary
500 rec.
Direct
Access
512 word
Run
Temporary
26
26
LUNNEW (none)
LUNSCR (none)
ZIGRCL
ZIMFDD
Binary
500 rec.
Direct
Access
512 word
Run
Temporary
27
27
LZGF
LUNQ
ZGFCOM ZGFINF
(none)
ZMDSPL
Binary
500 rec.
Direct
Access
128 word
Permanent
or Run
Temporary
28
LUNAUX (none)
ZGCOPY
Binary
500 rec.
Direct
Access
128 word
Permanent
(if used)
39
LUNIT
(none)
ZDINIT
Fixed/
Blocked
80 byte
Permanent
40
LUN
(none)
Fixed/
Blocked
80 byte
Permanent
41
LUNIT
(none)
ZDCRCT
Fixed/
Blocked
80 byte
Permanent
(if used)
42
LUNIT
(none)
ZDCWCT
Fixed/
Blocked
80 byte
Permanent
(if used)
76
76
LUNSCR
LUNSCR
(none)
ZFBIHR
SOBIHR
Binary
Direct
Access
800 rec.
Permanent
(if used)
Volumetrics output
Landmark Graphics
R2003.0
Description
Logical Symbolic
Unit
Name
Common
Block
Defining
Routine
Data
Format
Binary
Maximum
Size
Record
Format
Record
Length
File
Allocation
512 rec.
Direct
Access
512 byte
Permanent
37
51
LDFLG
LUNLOG
(none)
SLOPEN
Character
SCLOGU SGCOMN
Fixed/
Blocked
80 byte
Permanent
52
LDEFS
LUNDEF
(none)
SLOPEN
SCLOGU SGCOMN
Character
Fixed/
Blocked
80 byte
Permanent
Definition File
53
LNLST
LGNLST
(none)
SLOPEN
SCLDMX SLCOMM
Character
Fixed/
80 byte
.Blocked
Permanent
55
LLITH
LUNLIT
(none)
SLOPEN
SCLDMX SLCOMM
Character
Fixed/
Blocked
80 byte
Permanent
56
LTOPS
LUNTOP
(none)
SLOPEN
Character
SCLDMX .SLCOMM
Fixed/
80 byte
.Blocked
Permanent
57
LLOGS
LUNLOG
(none)
SLOPEN
SCLDMX SLCOMM
Character
Fixed/
Blocked
80 byte
Permanent
58
LANLY
LUNANL
(none)
SLOPEN
SCLDMX SLCOMM
Character
Fixed/
Blocked
80 byte
Permanent
59
LUNCOR
SCLDMX SLCOMM
Character
Fixed/
Blocked
80 byte
Permanent
60
LWSV
(none)
SLOPEN
LUNWSR SCLDMX SLCOMM
Character
Fixed/
Blocked
80 byte
Permanent
249
Landmark Graphics
R2003.0
Landmark Graphics
R2003.0
250
Landmark Graphics
Index
Symbols
.assemble picture
copy to space vs. copy from space 151
debugging option
using 29
defaults
set field descriptors 184186
set for lines, markers, text, and polygons 129131
define coordinate system 134
delete
graphics feature from picture file 135
mark picture for 159
member file from master file 170
detach one or all master files 202
display area of a picture 100, 108, 144
display/plot hardcopy type picture 7273
draw
connected line segments 121
lines using a member file 74
lines using array inputs 70
markers 78
shaded or colorfilled polygon 132
text 142
A
A-MAP Plus I/O
example program 1424
argument name
variable vs. constant 29
assemble picture 149152
copy to space vs. copy from space 157
compute four corners for 155158
attach master file 177, 198
C
close
current graphics feature 133
files 30
graphics file 118
last picture opened 117
master files 188
member file 189
ZIMS files 40
color table 224
compress
graphics file 163
master file 199
compute
control point file statistics 5658
four corners of one picture relative to another picture
for assembly/overlay 155158
grid file statistics 4648
statistics for field 5960
convert from x,y to latitude/longitude 4953
copy all or part of a picture to another picture 153154
create new master file 200
create new member file 32, 241243
R2003.3.0.0
E
example program
to list members of a graphics file 1013
to list members of a master file 89
G
graphics feature
defined 223
graphic primitives 224
set attributes 229230
graphics file
close 133
compress 163
header 224
open 145
transfer picture from neutral file to 79
transfer picture to neutral file from 80164
graphics files
list members of, example program 1013
Index
251
Landmark Graphics
grids
reading and writing 34
H
header 224
I
IDBUG
using 29
index maps 147148
initialize 38
all input arguments 29
ZPI/O environment 38
with output file control 4142
ZPI/O output graphics environment 167
Zycor Information Management System (ZIMS) and
attach master files 173174, 197
Zycor Interactive Graphics Environment (ZIGS) 146
internal routines
draw/plot features 69
file utilities 169
graphic utilities 77
initialize/terminate ZPI/O environment 36
transfer, convert, list information 43
internal routines, defined 29
ISTAT
using 30
L
LGB
header 224
set attributes 229230
LGB, defined 223
line
draw connected segments 121
draw using a member file 74
draw using array inputs 70
set color 120
set dash and hachure mark parameters 122
set defaults 129131
set type 123
set width 124
list
attached master files 203
data file 6668
file history and its ancestry 175176
grid as grid or contours 6365
member files 171172
example program 89
R2003.3.0.0
M
mark picture for deletion 159
marker
draw 78
set color 125
set defaults 129131
set height 126
set type 127
master file
attach 177, 198
compress 199
create new 200
rename internal name of 204
master files
close 188
detach one or all 202
list attached 203
list members of, example program 89
specifying the number of 31
member file
create 32
create new 241243
open new 205
open old 206
output filename 33
position for sequential read 215
position for sequential write 220
read from 32
read from at random location 216
read from sequentially 31, 217
read history information from 218
write history records to 219
write to at random location 221
write to sequentially 31, 222
O
obtain
color representation for color index 165
general, projection and graphics feature information
for picture 109115
graphics from a picture 233234
next graphics feature for picture 168
next valid graphics element from picture 8184
parameter, projection, and field information about data
file 178183
picture name by picture index 160
Index
252
P
picture
copy to space vs. copy from space 151, 157
copy all or part to another picture 153154
header 224
mark for deletion 159
obtain graphics element from 8184
obtain graphics from 233234
obtain information 109115
obtain name by picture index 160
obtain next graphics feature for 168
open new 92100
open new or old 85144
open old 101108
open old, read only 162
place graphics 226232
projection arguments vs. projection type 107
rename 161
transfer from graphics file to neutral file 80164
transfer from neutral file to graphics file 79
polygon
draw shaded or colorfilled 132
set defaults 129131
position member file
for sequential read 215
for sequential write 220
253
Index
Landmark Graphics
R
read
data parameter record 209
field descriptor 190191
from member file 32, 244245
from member file at random location 216
from member file sequentially 31, 217
general data or contour parameter record 207208
grid 34, 246
grid parameter record 210
history information from member file 218
position member file for sequential 215
record from member file 194
rename
internal name of master file 204
picture 161
reset debug print flag 37
retrieve information
about member file from run time directory 187
S
set
dash line and hachure mark parameters 122
default field descriptors 184186
defaults for lines, markers, text, and polygons 129
131
line color 120
line type 123
line width 124
marker color 125
marker height 126
marker type 127
polygon fill color 128
text color 137
text font 138
text height 139
text justification 140
text rotation 141
status flag, using 30
subroutine descriptions, presentation of information 25
28
R2003.3.0.0
Landmark Graphics
terminate
ZPI/O environment 39
ZPI/O output graphics environment 166
Zycor Interactive Graphics Environment (ZIGS) 119
text
draw 142
set color 137
set defaults 129131
set font 138
set height 139
set justification 140
set rotation 141
transfer
contents (pictures) of neutral file to graphics file 79
information from external file into member of master
file 4445
information from member of master file to external file
6162
pictures from graphics file to neutral file 80164
V
variable argument name 29
W
write
data parameter record 213
field descriptor 192193
from member file sequentially 31
general data or contour parameter record 211212
grid 34, 246
grid parameter record 214
history records to member file 219
position member file for sequential 220
record to member file 195196
to member file at random location 221
to member file sequentially 222
R2003.3.0.0
Index
254