home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 14
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text, with overstriking
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 68 75 73 63 |Path: uu|net!husc|
|00000010| 36 21 6d 69 74 2d 65 64 | 64 69 65 21 6c 6c 2d 78 |6!mit-ed|die!ll-x|
|00000020| 6e 21 61 64 65 6c 69 65 | 21 6e 65 63 6e 74 63 21 |n!adelie|!necntc!|
|00000030| 6e 63 6f 61 73 74 21 61 | 6c 6c 62 65 72 79 0a 46 |ncoast!a|llbery.F|
|00000040| 72 6f 6d 3a 20 72 65 78 | 40 65 72 65 62 75 73 20 |rom: rex|@erebus |
|00000050| 28 52 65 78 20 53 61 6e | 64 65 72 73 29 0a 4e 65 |(Rex San|ders).Ne|
|00000060| 77 73 67 72 6f 75 70 73 | 3a 20 63 6f 6d 70 2e 73 |wsgroups|: comp.s|
|00000070| 6f 75 72 63 65 73 2e 6d | 69 73 63 0a 53 75 62 6a |ources.m|isc.Subj|
|00000080| 65 63 74 3a 20 63 63 70 | 73 20 2d 20 43 61 6c 43 |ect: ccp|s - CalC|
|00000090| 6f 6d 70 2d 74 6f 2d 50 | 6f 73 74 53 63 72 69 70 |omp-to-P|ostScrip|
|000000a0| 74 20 6c 69 62 72 61 72 | 79 20 28 34 2e 33 20 42 |t librar|y (4.3 B|
|000000b0| 53 44 29 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |SD).Mess|age-ID: |
|000000c0| 3c 34 38 39 36 40 6e 63 | 6f 61 73 74 2e 55 55 43 |<4896@nc|oast.UUC|
|000000d0| 50 3e 0a 44 61 74 65 3a | 20 31 38 20 4f 63 74 20 |P>.Date:| 18 Oct |
|000000e0| 38 37 20 30 31 3a 30 36 | 3a 35 37 20 47 4d 54 0a |87 01:06|:57 GMT.|
|000000f0| 53 65 6e 64 65 72 3a 20 | 61 6c 6c 62 65 72 79 40 |Sender: |allbery@|
|00000100| 6e 63 6f 61 73 74 2e 55 | 55 43 50 0a 4c 69 6e 65 |ncoast.U|UCP.Line|
|00000110| 73 3a 20 32 33 34 38 0a | 41 70 70 72 6f 76 65 64 |s: 2348.|Approved|
|00000120| 3a 20 61 6c 6c 62 65 72 | 79 40 6e 63 6f 61 73 74 |: allber|y@ncoast|
|00000130| 2e 55 55 43 50 0a 58 2d | 41 72 63 68 69 76 65 3a |.UUCP.X-|Archive:|
|00000140| 20 63 6f 6d 70 2e 73 6f | 75 72 63 65 73 2e 6d 69 | comp.so|urces.mi|
|00000150| 73 63 2f 38 37 31 30 2f | 31 34 0a 0a 63 63 70 73 |sc/8710/|14..ccps|
|00000160| 20 69 73 20 61 20 6c 69 | 62 72 61 72 79 20 6f 66 | is a li|brary of|
|00000170| 20 28 6d 6f 73 74 6c 79 | 29 20 46 6f 72 74 72 61 | (mostly|) Fortra|
|00000180| 6e 20 73 75 62 72 6f 75 | 74 69 6e 65 73 20 66 6f |n subrou|tines fo|
|00000190| 72 20 63 6f 6e 76 65 72 | 74 69 6e 67 20 64 75 73 |r conver|ting dus|
|000001a0| 74 79 20 64 65 63 6b 73 | 0a 6f 66 20 46 6f 72 74 |ty decks|.of Fort|
|000001b0| 72 61 6e 20 74 68 61 74 | 20 75 73 65 20 74 68 65 |ran that| use the|
|000001c0| 20 22 43 61 6c 63 6f 6d | 70 20 73 74 61 6e 64 61 | "Calcom|p standa|
|000001d0| 72 64 22 20 73 75 62 72 | 6f 75 74 69 6e 65 20 6c |rd" subr|outine l|
|000001e0| 69 62 72 61 72 79 20 74 | 6f 20 63 72 65 61 74 65 |ibrary t|o create|
|000001f0| 20 70 6c 6f 74 73 2e 0a | 55 73 69 6e 67 20 74 68 | plots..|Using th|
|00000200| 69 73 20 6c 69 62 72 61 | 72 79 20 77 69 6c 6c 20 |is libra|ry will |
|00000210| 63 72 65 61 74 65 20 61 | 20 28 6e 6f 74 20 76 65 |create a| (not ve|
|00000220| 72 79 20 70 72 65 74 74 | 79 29 20 50 6f 73 74 53 |ry prett|y) PostS|
|00000230| 63 72 69 70 74 20 6f 75 | 74 70 75 74 20 66 69 6c |cript ou|tput fil|
|00000240| 65 0a 74 68 61 74 20 63 | 61 6e 20 62 65 20 73 65 |e.that c|an be se|
|00000250| 6e 74 20 74 6f 20 61 6e | 20 41 70 70 6c 65 20 4c |nt to an| Apple L|
|00000260| 61 73 65 72 57 72 69 74 | 65 72 2e 20 20 53 65 65 |aserWrit|er. See|
|00000270| 20 74 68 65 20 6d 61 6e | 20 70 61 67 65 20 66 6f | the man| page fo|
|00000280| 72 20 64 65 74 61 69 6c | 73 2e 0a 0a 54 68 65 20 |r detail|s...The |
|00000290| 6c 69 62 72 61 72 79 20 | 63 6f 6e 74 61 69 6e 73 |library |contains|
|000002a0| 20 73 6f 6d 65 20 61 6e | 63 69 65 6e 74 20 46 6f | some an|cient Fo|
|000002b0| 72 74 72 61 6e 20 49 20 | 6d 61 6b 65 20 6e 6f 20 |rtran I |make no |
|000002c0| 61 70 6f 6c 6f 67 69 65 | 73 20 66 6f 72 2e 20 20 |apologie|s for. |
|000002d0| 54 68 65 0a 6c 69 62 72 | 61 72 79 20 61 6c 73 6f |The.libr|ary also|
|000002e0| 20 63 6f 6e 74 61 69 6e | 73 20 73 65 76 65 72 61 | contain|s severa|
|000002f0| 6c 20 73 75 62 72 6f 75 | 74 69 6e 65 73 20 66 6f |l subrou|tines fo|
|00000300| 72 20 6c 6f 63 61 6c 20 | 66 75 6e 63 74 69 6f 6e |r local |function|
|00000310| 73 20 74 68 61 74 20 79 | 6f 75 0a 63 61 6e 20 72 |s that y|ou.can r|
|00000320| 65 6d 6f 76 65 20 6f 72 | 20 69 67 6e 6f 72 65 2e |emove or| ignore.|
|00000330| 20 20 54 68 65 20 64 67 | 78 70 6c 74 20 73 75 62 | The dg|xplt sub|
|00000340| 72 6f 75 74 69 6e 65 20 | 69 73 20 66 6f 72 20 75 |routine |is for u|
|00000350| 73 65 20 77 69 74 68 20 | 74 68 65 0a 44 79 6e 61 |se with |the.Dyna|
|00000360| 6d 69 63 20 47 72 61 70 | 68 69 63 73 20 49 6e 63 |mic Grap|hics Inc|
|00000370| 2e 20 53 75 72 66 61 63 | 65 20 44 69 73 70 6c 61 |. Surfac|e Displa|
|00000380| 79 20 4c 69 62 72 61 72 | 79 2e 20 20 54 68 69 73 |y Librar|y. This|
|00000390| 20 73 74 75 66 66 20 68 | 61 73 20 62 65 65 6e 20 | stuff h|as been |
|000003a0| 69 6e 20 75 73 65 0a 66 | 6f 72 20 61 62 6f 75 74 |in use.f|or about|
|000003b0| 20 36 20 6d 6f 6e 74 68 | 73 20 6f 6e 20 61 20 34 | 6 month|s on a 4|
|000003c0| 2e 33 20 42 53 44 20 56 | 41 58 20 73 79 73 74 65 |.3 BSD V|AX syste|
|000003d0| 6d 2e 0a 0a 2d 2d 20 52 | 65 78 20 53 61 6e 64 65 |m...-- R|ex Sande|
|000003e0| 72 73 2c 20 55 53 20 47 | 65 6f 6c 6f 67 69 63 61 |rs, US G|eologica|
|000003f0| 6c 20 53 75 72 76 65 79 | 0a 20 20 20 72 65 78 40 |l Survey|. rex@|
|00000400| 65 72 65 62 75 73 2e 73 | 74 61 6e 66 6f 72 64 2e |erebus.s|tanford.|
|00000410| 65 64 75 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |edu.----|--------|
|00000420| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000440| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000450| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000460| 2d 2d 0a 23 21 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |--.#! /b|in/sh.# |
|00000470| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|00000480| 61 72 63 68 69 76 65 2c | 20 6d 65 61 6e 69 6e 67 |archive,| meaning|
|00000490| 3a 0a 23 20 31 2e 20 52 | 65 6d 6f 76 65 20 65 76 |:.# 1. R|emove ev|
|000004a0| 65 72 79 74 68 69 6e 67 | 20 61 62 6f 76 65 20 74 |erything| above t|
|000004b0| 68 65 20 23 21 20 2f 62 | 69 6e 2f 73 68 20 6c 69 |he #! /b|in/sh li|
|000004c0| 6e 65 2e 0a 23 20 32 2e | 20 53 61 76 65 20 74 68 |ne..# 2.| Save th|
|000004d0| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 74 65 78 74 |e result|ing text|
|000004e0| 20 69 6e 20 61 20 66 69 | 6c 65 2e 0a 23 20 33 2e | in a fi|le..# 3.|
|000004f0| 20 45 78 65 63 75 74 65 | 20 74 68 65 20 66 69 6c | Execute| the fil|
|00000500| 65 20 77 69 74 68 20 2f | 62 69 6e 2f 73 68 20 28 |e with /|bin/sh (|
|00000510| 6e 6f 74 20 63 73 68 29 | 20 74 6f 20 63 72 65 61 |not csh)| to crea|
|00000520| 74 65 20 74 68 65 20 66 | 69 6c 65 73 3a 0a 23 09 |te the f|iles:.#.|
|00000530| 52 45 41 44 4d 45 0a 23 | 09 63 63 70 73 2e 6d 61 |README.#|.ccps.ma|
|00000540| 6e 2e 6f 75 74 0a 23 09 | 63 63 70 73 2e 6d 61 6e |n.out.#.|ccps.man|
|00000550| 0a 23 09 4d 61 6b 65 66 | 69 6c 65 0a 23 09 61 78 |.#.Makef|ile.#.ax|
|00000560| 69 73 2e 66 0a 23 09 63 | 65 6e 74 63 68 2e 66 0a |is.f.#.c|entch.f.|
|00000570| 23 09 63 69 72 63 6c 65 | 2e 66 0a 23 09 64 67 78 |#.circle|.f.#.dgx|
|00000580| 70 6c 74 2e 66 0a 23 09 | 66 61 63 74 6f 72 2e 66 |plt.f.#.|factor.f|
|00000590| 0a 23 09 6c 65 74 74 65 | 72 2e 66 0a 23 09 6c 69 |.#.lette|r.f.#.li|
|000005a0| 6e 65 2e 66 0a 23 09 6e | 65 77 70 65 6e 2e 66 0a |ne.f.#.n|ewpen.f.|
|000005b0| 23 09 6e 75 6d 62 65 72 | 2e 66 0a 23 09 70 66 6c |#.number|.f.#.pfl|
|000005c0| 65 63 6b 2e 66 0a 23 09 | 70 66 6c 65 6d 76 2e 66 |eck.f.#.|pflemv.f|
|000005d0| 0a 23 09 70 6c 2e 63 0a | 23 09 70 6c 6f 74 2e 66 |.#.pl.c.|#.plot.f|
|000005e0| 0a 23 09 70 6c 6f 74 73 | 2e 66 0a 23 09 73 63 61 |.#.plots|.f.#.sca|
|000005f0| 6c 65 2e 66 0a 23 09 73 | 70 6f 74 2e 66 0a 23 09 |le.f.#.s|pot.f.#.|
|00000600| 73 79 6d 62 6f 6c 2e 66 | 0a 23 09 77 68 65 72 65 |symbol.f|.#.where|
|00000610| 2e 66 0a 23 09 74 65 73 | 74 73 0a 23 20 54 68 69 |.f.#.tes|ts.# Thi|
|00000620| 73 20 61 72 63 68 69 76 | 65 20 63 72 65 61 74 65 |s archiv|e create|
|00000630| 64 3a 20 53 61 74 20 4a | 75 6e 20 31 33 20 31 39 |d: Sat J|un 13 19|
|00000640| 3a 32 34 3a 32 38 20 31 | 39 38 37 0a 65 78 70 6f |:24:28 1|987.expo|
|00000650| 72 74 20 50 41 54 48 3b | 20 50 41 54 48 3d 2f 62 |rt PATH;| PATH=/b|
|00000660| 69 6e 3a 24 50 41 54 48 | 0a 65 63 68 6f 20 73 68 |in:$PATH|.echo sh|
|00000670| 61 72 3a 20 65 78 74 72 | 61 63 74 69 6e 67 20 22 |ar: extr|acting "|
|00000680| 27 52 45 41 44 4d 45 27 | 22 20 27 28 33 39 31 20 |'README'|" '(391 |
|00000690| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|000006a0| 74 65 73 74 20 2d 66 20 | 27 52 45 41 44 4d 45 27 |test -f |'README'|
|000006b0| 0a 74 68 65 6e 0a 20 65 | 63 68 6f 20 73 68 61 72 |.then. e|cho shar|
|000006c0| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: will n|ot over-|
|000006d0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|000006e0| 69 6c 65 20 22 27 52 45 | 41 44 4d 45 27 22 0a 65 |ile "'RE|ADME'".e|
|000006f0| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 58 2f 2f 27 |lse.sed |'s/^X//'|
|00000700| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00000710| 27 52 45 41 44 4d 45 27 | 0a 58 54 68 69 73 20 64 |'README'|.XThis d|
|00000720| 69 72 65 63 74 6f 72 79 | 20 63 6f 6e 74 61 69 6e |irectory| contain|
|00000730| 73 20 74 68 65 20 73 6f | 75 72 63 65 20 63 6f 64 |s the so|urce cod|
|00000740| 65 20 66 6f 72 20 22 63 | 63 70 73 22 2c 20 74 68 |e for "c|cps", th|
|00000750| 65 20 43 61 6c 43 6f 6d | 70 2d 74 6f 2d 50 6f 73 |e CalCom|p-to-Pos|
|00000760| 74 53 63 72 69 70 74 0a | 58 73 75 62 72 6f 75 74 |tScript.|Xsubrout|
|00000770| 69 6e 65 20 6c 69 62 72 | 61 72 79 2e 20 20 54 68 |ine libr|ary. Th|
|00000780| 65 20 6c 69 62 72 61 72 | 79 20 69 6d 70 6c 65 6d |e librar|y implem|
|00000790| 65 6e 74 73 20 74 68 65 | 20 43 61 6c 43 6f 6d 70 |ents the| CalComp|
|000007a0| 20 73 75 62 72 6f 75 74 | 69 6e 65 20 63 61 6c 6c | subrout|ine call|
|000007b0| 73 2c 0a 58 61 6e 64 20 | 73 70 69 74 73 20 6f 75 |s,.Xand |spits ou|
|000007c0| 74 20 61 20 66 69 6c 65 | 20 6e 61 6d 65 64 20 22 |t a file| named "|
|000007d0| 70 73 5f 70 6c 6f 74 22 | 20 74 68 61 74 20 63 61 |ps_plot"| that ca|
|000007e0| 6e 20 62 65 20 70 72 69 | 6e 74 65 64 20 6f 6e 20 |n be pri|nted on |
|000007f0| 61 6e 79 20 50 6f 73 74 | 53 63 72 69 70 74 0a 58 |any Post|Script.X|
|00000800| 70 72 69 6e 74 65 72 20 | 77 69 74 68 20 41 64 6f |printer |with Ado|
|00000810| 62 65 27 73 20 43 6f 75 | 72 69 65 72 20 66 6f 6e |be's Cou|rier fon|
|00000820| 74 2e 0a 58 0a 58 53 65 | 65 20 61 6c 73 6f 20 74 |t..X.XSe|e also t|
|00000830| 68 65 20 73 75 62 64 69 | 72 65 63 74 6f 72 79 20 |he subdi|rectory |
|00000840| 22 74 65 73 74 73 22 2c | 20 77 69 74 68 20 38 20 |"tests",| with 8 |
|00000850| 74 65 73 74 73 20 66 6f | 72 20 74 68 65 20 43 61 |tests fo|r the Ca|
|00000860| 6c 43 6f 6d 70 20 61 6e | 64 20 53 44 4c 0a 58 73 |lComp an|d SDL.Xs|
|00000870| 75 62 72 6f 75 74 69 6e | 65 73 20 75 73 69 6e 67 |ubroutin|es using|
|00000880| 20 74 68 69 73 20 6c 69 | 62 72 61 72 79 2e 0a 58 | this li|brary..X|
|00000890| 0a 58 2d 2d 20 52 65 78 | 20 53 61 6e 64 65 72 73 |.X-- Rex| Sanders|
|000008a0| 0a 58 20 20 20 33 2f 38 | 37 0a 53 48 41 52 5f 45 |.X 3/8|7.SHAR_E|
|000008b0| 4f 46 0a 69 66 20 74 65 | 73 74 20 33 39 31 20 2d |OF.if te|st 391 -|
|000008c0| 6e 65 20 22 60 77 63 20 | 2d 63 20 3c 20 27 52 45 |ne "`wc |-c < 'RE|
|000008d0| 41 44 4d 45 27 60 22 0a | 74 68 65 6e 0a 20 65 63 |ADME'`".|then. ec|
|000008e0| 68 6f 20 73 68 61 72 3a | 20 65 72 72 6f 72 20 74 |ho shar:| error t|
|000008f0| 72 61 6e 73 6d 69 74 74 | 69 6e 67 20 22 27 52 45 |ransmitt|ing "'RE|
|00000900| 41 44 4d 45 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |ADME'" '|(should |
|00000910| 68 61 76 65 20 62 65 65 | 6e 20 33 39 31 20 63 68 |have bee|n 391 ch|
|00000920| 61 72 61 63 74 65 72 73 | 29 27 0a 66 69 0a 66 69 |aracters|)'.fi.fi|
|00000930| 20 23 20 65 6e 64 20 6f | 66 20 6f 76 65 72 77 72 | # end o|f overwr|
|00000940| 69 74 69 6e 67 20 63 68 | 65 63 6b 0a 65 63 68 6f |iting ch|eck.echo|
|00000950| 20 73 68 61 72 3a 20 65 | 78 74 72 61 63 74 69 6e | shar: e|xtractin|
|00000960| 67 20 22 27 63 63 70 73 | 2e 6d 61 6e 2e 6f 75 74 |g "'ccps|.man.out|
|00000970| 27 22 20 27 28 31 36 34 | 32 20 63 68 61 72 61 63 |'" '(164|2 charac|
|00000980| 74 65 72 73 29 27 0a 69 | 66 20 74 65 73 74 20 2d |ters)'.i|f test -|
|00000990| 66 20 27 63 63 70 73 2e | 6d 61 6e 2e 6f 75 74 27 |f 'ccps.|man.out'|
|000009a0| 0a 74 68 65 6e 0a 20 65 | 63 68 6f 20 73 68 61 72 |.then. e|cho shar|
|000009b0| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: will n|ot over-|
|000009c0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|000009d0| 69 6c 65 20 22 27 63 63 | 70 73 2e 6d 61 6e 2e 6f |ile "'cc|ps.man.o|
|000009e0| 75 74 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |ut'".els|e.sed 's|
|000009f0| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|00000a00| 45 4f 46 20 3e 20 27 63 | 63 70 73 2e 6d 61 6e 2e |EOF > 'c|cps.man.|
|00000a10| 6f 75 74 27 0a 58 0a 58 | 0a 58 0a 58 43 43 50 53 |out'.X.X|.X.XCCPS|
|00000a20| 28 33 46 29 09 20 20 20 | 20 55 4e 49 58 20 50 72 |(3F). | UNIX Pr|
|00000a30| 6f 67 72 61 6d 6d 65 72 | 27 73 20 4d 61 6e 75 61 |ogrammer|'s Manua|
|00000a40| 6c 09 09 20 43 43 50 53 | 28 33 46 29 0a 58 0a 58 |l.. CCPS|(3F).X.X|
|00000a50| 0a 58 0a 58 4e 41 4d 45 | 0a 58 20 20 20 20 20 63 |.X.XNAME|.X c|
|00000a60| 63 70 73 20 2d 20 43 61 | 6c 43 6f 6d 70 2d 74 6f |cps - Ca|lComp-to|
|00000a70| 2d 50 6f 73 74 53 63 72 | 69 70 74 20 70 6c 6f 74 |-PostScr|ipt plot|
|00000a80| 74 69 6e 67 20 73 75 62 | 72 6f 75 74 69 6e 65 20 |ting sub|routine |
|00000a90| 6c 69 62 72 61 72 79 0a | 58 0a 58 55 53 41 47 45 |library.|X.XUSAGE|
|00000aa0| 0a 58 20 20 20 20 20 66 | 37 37 20 20 6a 75 6e 6b |.X f|77 junk|
|00000ab0| 2e 66 20 20 2d 6c 5f 08 | 63 5f 08 63 5f 08 70 5f |.f -l_.|c_.c_.p_|
|00000ac0| 08 73 0a 58 0a 58 44 45 | 53 43 52 49 50 54 49 4f |.s.X.XDE|SCRIPTIO|
|00000ad0| 4e 0a 58 20 20 20 20 20 | 54 68 65 20 63 63 70 73 |N.X |The ccps|
|00000ae0| 20 73 75 62 72 6f 75 74 | 69 6e 65 73 20 63 61 6e | subrout|ines can|
|00000af0| 20 62 65 20 63 61 6c 6c | 65 64 20 74 6f 20 67 65 | be call|ed to ge|
|00000b00| 6e 65 72 61 74 65 20 61 | 20 70 6c 6f 74 20 66 69 |nerate a| plot fi|
|00000b10| 6c 65 0a 58 20 20 20 20 | 20 28 5f 08 70 5f 08 73 |le.X | (_.p_.s|
|00000b20| 5f 5f 08 70 5f 08 6c 5f | 08 6f 5f 08 74 29 20 63 |__.p_.l_|.o_.t) c|
|00000b30| 6f 6e 74 61 69 6e 69 6e | 67 20 50 6f 73 74 53 63 |ontainin|g PostSc|
|00000b40| 72 69 70 74 20 63 6f 6d | 6d 61 6e 64 73 20 66 6f |ript com|mands fo|
|00000b50| 72 20 74 68 65 20 6c 61 | 73 65 72 0a 58 20 20 20 |r the la|ser.X |
|00000b60| 20 20 70 72 69 6e 74 65 | 72 73 20 75 73 69 6e 67 | printe|rs using|
|00000b70| 20 74 68 65 20 70 6f 73 | 74 73 63 72 69 70 74 20 | the pos|tscript |
|00000b80| 6c 61 6e 67 75 61 67 65 | 2c 20 73 75 63 68 20 61 |language|, such a|
|00000b90| 73 20 74 68 65 20 41 70 | 70 6c 65 0a 58 20 20 20 |s the Ap|ple.X |
|00000ba0| 20 20 4c 61 73 65 72 57 | 72 69 74 65 72 2e 20 20 | LaserW|riter. |
|00000bb0| 54 68 65 20 61 76 61 69 | 6c 61 62 6c 65 20 70 6c |The avai|lable pl|
|00000bc0| 6f 74 74 69 6e 67 20 61 | 72 65 61 20 69 73 20 61 |otting a|rea is a|
|00000bd0| 62 6f 75 74 20 31 30 2e | 35 0a 58 20 20 20 20 20 |bout 10.|5.X |
|00000be0| 69 6e 63 68 65 73 20 28 | 58 2d 61 78 69 73 29 20 |inches (|X-axis) |
|00000bf0| 62 79 20 38 2e 30 20 69 | 6e 63 68 65 73 20 28 59 |by 8.0 i|nches (Y|
|00000c00| 2d 61 78 69 73 29 2e 0a | 58 0a 58 20 20 20 20 20 |-axis)..|X.X |
|00000c10| 54 68 65 20 5f 08 70 5f | 08 73 5f 5f 08 70 5f 08 |The _.p_|.s__.p_.|
|00000c20| 6c 5f 08 6f 5f 08 74 20 | 66 69 6c 65 20 69 73 20 |l_.o_.t |file is |
|00000c30| 70 6c 6f 74 74 65 64 20 | 75 73 69 6e 67 20 74 68 |plotted |using th|
|00000c40| 65 20 5f 08 70 5f 08 70 | 5f 08 72 28 31 29 20 63 |e _.p_.p|_.r(1) c|
|00000c50| 6f 6d 6d 61 6e 64 2e 0a | 58 20 20 20 20 20 5f 08 |ommand..|X _.|
|00000c60| 70 5f 08 73 5f 5f 08 70 | 5f 08 6c 5f 08 6f 5f 08 |p_.s__.p|_.l_.o_.|
|00000c70| 74 20 69 73 20 63 72 65 | 61 74 65 64 20 69 6e 20 |t is cre|ated in |
|00000c80| 74 68 65 20 77 6f 72 6b | 69 6e 67 20 64 69 72 65 |the work|ing dire|
|00000c90| 63 74 6f 72 79 2c 20 6f | 76 65 72 77 72 69 74 69 |ctory, o|verwriti|
|00000ca0| 6e 67 20 61 6e 79 0a 58 | 20 20 20 20 20 65 78 69 |ng any.X| exi|
|00000cb0| 73 74 69 6e 67 20 5f 08 | 70 5f 08 73 5f 5f 08 70 |sting _.|p_.s__.p|
|00000cc0| 5f 08 6c 5f 08 6f 5f 08 | 74 20 66 69 6c 65 2e 0a |_.l_.o_.|t file..|
|00000cd0| 58 0a 58 20 20 20 20 20 | 54 68 65 73 65 20 73 75 |X.X |These su|
|00000ce0| 62 72 6f 75 74 69 6e 65 | 73 20 61 72 65 20 22 43 |broutine|s are "C|
|00000cf0| 61 6c 43 6f 6d 70 2d 63 | 6f 6d 70 61 74 69 62 6c |alComp-c|ompatibl|
|00000d00| 65 22 2c 20 61 6e 64 20 | 63 6f 6d 70 61 74 69 62 |e", and |compatib|
|00000d10| 6c 65 0a 58 20 20 20 20 | 20 77 69 74 68 20 74 68 |le.X | with th|
|00000d20| 65 20 5f 08 63 5f 08 61 | 5f 08 6c 5f 08 63 5f 08 |e _.c_.a|_.l_.c_.|
|00000d30| 6f 5f 08 6d 5f 08 70 28 | 33 66 29 20 28 43 61 6c |o_.m_.p(|3f) (Cal|
|00000d40| 43 6f 6d 70 20 31 30 37 | 37 20 70 6c 6f 74 74 65 |Comp 107|7 plotte|
|00000d50| 72 29 2c 20 5f 08 68 5f | 08 6f 5f 08 75 5f 08 73 |r), _.h_|.o_.u_.s|
|00000d60| 5f 08 74 5f 08 6f 5f 08 | 6e 28 33 66 29 0a 58 20 |_.t_.o_.|n(3f).X |
|00000d70| 20 20 20 20 28 48 6f 75 | 73 74 6f 6e 20 44 50 38 | (Hou|ston DP8|
|00000d80| 2d 53 33 20 70 6c 6f 74 | 74 65 72 29 2c 20 5f 08 |-S3 plot|ter), _.|
|00000d90| 68 5f 08 70 5f 08 37 5f | 08 34 5f 08 37 5f 08 35 |h_.p_.7_|.4_.7_.5|
|00000da0| 28 33 66 29 20 28 48 50 | 20 37 34 37 35 41 20 70 |(3f) (HP| 7475A p|
|00000db0| 6c 6f 74 74 65 72 29 2c | 0a 58 20 20 20 20 20 5f |lotter),|.X _|
|00000dc0| 08 69 5f 08 6d 5f 08 70 | 5f 08 6c 5f 08 6f 5f 08 |.i_.m_.p|_.l_.o_.|
|00000dd0| 74 28 33 66 29 20 28 49 | 6d 61 67 65 6e 20 38 2f |t(3f) (I|magen 8/|
|00000de0| 33 30 30 20 6c 61 73 65 | 72 20 70 72 69 6e 74 65 |300 lase|r printe|
|00000df0| 72 29 2c 20 61 6e 64 20 | 5f 08 63 5f 08 63 5f 08 |r), and |_.c_.c_.|
|00000e00| 74 5f 08 63 5f 08 73 28 | 33 66 29 20 28 54 65 6b |t_.c_.s(|3f) (Tek|
|00000e10| 2d 0a 58 20 20 20 20 20 | 74 72 6f 6e 69 78 20 34 |-.X |tronix 4|
|00000e20| 30 31 34 20 74 65 72 6d | 69 6e 61 6c 29 20 73 75 |014 term|inal) su|
|00000e30| 62 72 6f 75 74 69 6e 65 | 73 2e 20 20 54 68 69 73 |broutine|s. This|
|00000e40| 20 6c 69 62 72 61 72 79 | 20 61 6c 73 6f 20 63 6f | library| also co|
|00000e50| 6e 2d 0a 58 20 20 20 20 | 20 74 61 69 6e 73 20 69 |n-.X | tains i|
|00000e60| 6e 74 65 72 66 61 63 65 | 73 20 66 6f 72 20 53 75 |nterface|s for Su|
|00000e70| 72 66 61 63 65 20 44 69 | 73 70 6c 61 79 20 4c 69 |rface Di|splay Li|
|00000e80| 62 72 61 72 79 20 61 6e | 64 20 6e 61 76 70 6c 74 |brary an|d navplt|
|00000e90| 2e 0a 58 20 20 20 20 20 | 59 6f 75 20 63 61 6e 20 |..X |You can |
|00000ea0| 67 65 74 20 61 20 6d 61 | 6e 75 61 6c 20 66 6f 72 |get a ma|nual for|
|00000eb0| 20 74 68 65 73 65 20 73 | 75 62 72 6f 75 74 69 6e | these s|ubroutin|
|00000ec0| 65 73 20 66 72 6f 6d 20 | 52 65 78 20 53 61 6e 64 |es from |Rex Sand|
|00000ed0| 65 72 73 0a 58 20 20 20 | 20 20 28 78 37 30 35 32 |ers.X | (x7052|
|00000ee0| 2c 20 41 32 32 30 29 2e | 0a 58 0a 58 46 49 4c 45 |, A220).|.X.XFILE|
|00000ef0| 53 0a 58 20 20 20 20 20 | 2f 75 73 72 2f 6c 6f 63 |S.X |/usr/loc|
|00000f00| 61 6c 2f 6c 69 62 2f 6c | 69 62 63 63 70 73 2e 61 |al/lib/l|ibccps.a|
|00000f10| 0a 58 0a 58 53 45 45 20 | 41 4c 53 4f 0a 58 20 20 |.X.XSEE |ALSO.X |
|00000f20| 20 20 20 63 61 6c 63 6f | 6d 70 28 33 66 29 2c 20 | calco|mp(3f), |
|00000f30| 68 6f 75 73 74 6f 6e 28 | 33 66 29 2c 20 68 70 37 |houston(|3f), hp7|
|00000f40| 34 37 35 28 33 66 29 2c | 20 69 6d 70 6c 6f 74 28 |475(3f),| implot(|
|00000f50| 33 66 29 2c 20 63 63 74 | 63 73 28 33 66 29 2c 0a |3f), cct|cs(3f),.|
|00000f60| 58 20 20 20 20 20 73 64 | 6c 28 33 66 29 2c 20 6e |X sd|l(3f), n|
|00000f70| 61 76 70 6c 74 28 31 29 | 0a 58 20 20 20 20 20 22 |avplt(1)|.X "|
|00000f80| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 43 61 6c 43 |Programm|ing CalC|
|00000f90| 6f 6d 70 20 45 6c 65 63 | 74 72 6f 6d 65 63 68 61 |omp Elec|tromecha|
|00000fa0| 6e 69 63 61 6c 20 50 6c | 6f 74 74 65 72 73 2c 20 |nical Pl|otters, |
|00000fb0| 31 39 37 36 22 0a 58 0a | 58 42 55 47 53 0a 58 20 |1976".X.|XBUGS.X |
|00000fc0| 20 20 20 20 54 68 65 72 | 65 20 69 73 20 6e 6f 20 | Ther|e is no |
|00000fd0| 77 61 79 20 74 6f 20 70 | 6c 6f 74 20 6d 6f 72 65 |way to p|lot more|
|00000fe0| 20 74 68 61 6e 20 6f 6e | 65 20 70 61 67 65 20 61 | than on|e page a|
|00000ff0| 74 20 61 20 74 69 6d 65 | 2e 0a 58 0a 58 41 55 54 |t a time|..X.XAUT|
|00001000| 48 4f 52 53 0a 58 20 20 | 20 20 20 52 65 78 20 53 |HORS.X | Rex S|
|00001010| 61 6e 64 65 72 73 2c 20 | 55 53 47 53 20 50 61 63 |anders, |USGS Pac|
|00001020| 69 66 69 63 20 4d 61 72 | 69 6e 65 20 47 65 6f 6c |ific Mar|ine Geol|
|00001030| 6f 67 79 20 2d 20 70 72 | 69 6d 61 72 79 20 61 75 |ogy - pr|imary au|
|00001040| 74 68 6f 72 2e 0a 58 20 | 20 20 20 20 50 75 62 6c |thor..X | Publ|
|00001050| 69 63 20 64 6f 6d 61 69 | 6e 20 2d 20 73 65 76 65 |ic domai|n - seve|
|00001060| 72 61 6c 20 61 75 78 69 | 6c 69 61 72 79 20 73 75 |ral auxi|liary su|
|00001070| 62 72 6f 75 74 69 6e 65 | 73 2e 0a 58 0a 58 0a 58 |broutine|s..X.X.X|
|00001080| 0a 58 0a 58 0a 58 0a 58 | 0a 58 0a 58 0a 58 0a 58 |.X.X.X.X|.X.X.X.X|
|00001090| 0a 58 0a 58 0a 58 0a 58 | 0a 58 50 72 69 6e 74 65 |.X.X.X.X|.XPrinte|
|000010a0| 64 20 33 2f 35 2f 38 37 | 09 09 20 20 20 20 20 20 |d 3/5/87|.. |
|000010b0| 4c 4f 43 41 4c 09 09 09 | 09 31 0a 58 0a 58 0a 58 |LOCAL...|.1.X.X.X|
|000010c0| 0a 53 48 41 52 5f 45 4f | 46 0a 65 63 68 6f 20 73 |.SHAR_EO|F.echo s|
|000010d0| 68 61 72 3a 20 36 32 20 | 63 6f 6e 74 72 6f 6c 20 |har: 62 |control |
|000010e0| 63 68 61 72 61 63 74 65 | 72 73 20 6d 61 79 20 62 |characte|rs may b|
|000010f0| 65 20 6d 69 73 73 69 6e | 67 20 66 72 6f 6d 20 22 |e missin|g from "|
|00001100| 27 63 63 70 73 2e 6d 61 | 6e 2e 6f 75 74 27 22 0a |'ccps.ma|n.out'".|
|00001110| 69 66 20 74 65 73 74 20 | 31 36 34 32 20 2d 6e 65 |if test |1642 -ne|
|00001120| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 63 63 70 73 | "`wc -c| < 'ccps|
|00001130| 2e 6d 61 6e 2e 6f 75 74 | 27 60 22 0a 74 68 65 6e |.man.out|'`".then|
|00001140| 0a 20 65 63 68 6f 20 73 | 68 61 72 3a 20 65 72 72 |. echo s|har: err|
|00001150| 6f 72 20 74 72 61 6e 73 | 6d 69 74 74 69 6e 67 20 |or trans|mitting |
|00001160| 22 27 63 63 70 73 2e 6d | 61 6e 2e 6f 75 74 27 22 |"'ccps.m|an.out'"|
|00001170| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|00001180| 65 65 6e 20 31 36 34 32 | 20 63 68 61 72 61 63 74 |een 1642| charact|
|00001190| 65 72 73 29 27 0a 66 69 | 0a 66 69 20 23 20 65 6e |ers)'.fi|.fi # en|
|000011a0| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|000011b0| 20 63 68 65 63 6b 0a 65 | 63 68 6f 20 73 68 61 72 | check.e|cho shar|
|000011c0| 3a 20 65 78 74 72 61 63 | 74 69 6e 67 20 22 27 63 |: extrac|ting "'c|
|000011d0| 63 70 73 2e 6d 61 6e 27 | 22 20 27 28 31 34 36 32 |cps.man'|" '(1462|
|000011e0| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 69 66 | charact|ers)'.if|
|000011f0| 20 74 65 73 74 20 2d 66 | 20 27 63 63 70 73 2e 6d | test -f| 'ccps.m|
|00001200| 61 6e 27 0a 74 68 65 6e | 0a 20 65 63 68 6f 20 73 |an'.then|. echo s|
|00001210| 68 61 72 3a 20 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: wil|l not ov|
|00001220| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00001230| 67 20 66 69 6c 65 20 22 | 27 63 63 70 73 2e 6d 61 |g file "|'ccps.ma|
|00001240| 6e 27 22 0a 65 6c 73 65 | 0a 73 65 64 20 27 73 2f |n'".else|.sed 's/|
|00001250| 5e 58 2f 2f 27 20 3c 3c | 20 5c 53 48 41 52 5f 45 |^X//' <<| \SHAR_E|
|00001260| 4f 46 20 3e 20 27 63 63 | 70 73 2e 6d 61 6e 27 0a |OF > 'cc|ps.man'.|
|00001270| 58 2e 6c 67 20 30 0a 58 | 2e 54 48 20 43 43 50 53 |X.lg 0.X|.TH CCPS|
|00001280| 20 33 46 20 4c 4f 43 41 | 4c 20 22 55 53 47 53 20 | 3F LOCA|L "USGS |
|00001290| 50 61 63 69 66 69 63 20 | 4d 61 72 69 6e 65 20 47 |Pacific |Marine G|
|000012a0| 65 6f 6c 6f 67 79 22 0a | 58 2e 53 48 20 4e 41 4d |eology".|X.SH NAM|
|000012b0| 45 0a 58 63 63 70 73 20 | 5c 2d 20 43 61 6c 43 6f |E.Xccps |\- CalCo|
|000012c0| 6d 70 2d 74 6f 2d 50 6f | 73 74 53 63 72 69 70 74 |mp-to-Po|stScript|
|000012d0| 20 70 6c 6f 74 74 69 6e | 67 20 73 75 62 72 6f 75 | plottin|g subrou|
|000012e0| 74 69 6e 65 20 6c 69 62 | 72 61 72 79 0a 58 2e 53 |tine lib|rary.X.S|
|000012f0| 48 20 55 53 41 47 45 0a | 58 5c 66 42 66 37 37 5c |H USAGE.|X\fBf77\|
|00001300| 66 52 20 20 6a 75 6e 6b | 2e 66 20 20 5c 66 42 2d |fR junk|.f \fB-|
|00001310| 6c 5c 66 49 63 63 70 73 | 5c 66 52 0a 58 2e 53 48 |l\fIccps|\fR.X.SH|
|00001320| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 58 54 68 | DESCRIP|TION.XTh|
|00001330| 65 0a 58 2e 42 20 63 63 | 70 73 0a 58 73 75 62 72 |e.X.B cc|ps.Xsubr|
|00001340| 6f 75 74 69 6e 65 73 20 | 63 61 6e 20 62 65 20 63 |outines |can be c|
|00001350| 61 6c 6c 65 64 20 74 6f | 20 67 65 6e 65 72 61 74 |alled to| generat|
|00001360| 65 20 61 20 70 6c 6f 74 | 20 66 69 6c 65 0a 58 28 |e a plot| file.X(|
|00001370| 5c 66 49 70 73 5f 70 6c | 6f 74 5c 66 52 29 20 63 |\fIps_pl|ot\fR) c|
|00001380| 6f 6e 74 61 69 6e 69 6e | 67 20 50 6f 73 74 53 63 |ontainin|g PostSc|
|00001390| 72 69 70 74 20 63 6f 6d | 6d 61 6e 64 73 0a 58 66 |ript com|mands.Xf|
|000013a0| 6f 72 20 74 68 65 20 6c | 61 73 65 72 20 70 72 69 |or the l|aser pri|
|000013b0| 6e 74 65 72 73 20 75 73 | 69 6e 67 20 74 68 65 20 |nters us|ing the |
|000013c0| 70 6f 73 74 73 63 72 69 | 70 74 20 6c 61 6e 67 75 |postscri|pt langu|
|000013d0| 61 67 65 2c 0a 58 73 75 | 63 68 20 61 73 20 74 68 |age,.Xsu|ch as th|
|000013e0| 65 20 41 70 70 6c 65 20 | 4c 61 73 65 72 57 72 69 |e Apple |LaserWri|
|000013f0| 74 65 72 2e 0a 58 54 68 | 65 20 61 76 61 69 6c 61 |ter..XTh|e availa|
|00001400| 62 6c 65 20 70 6c 6f 74 | 74 69 6e 67 20 61 72 65 |ble plot|ting are|
|00001410| 61 20 69 73 20 61 62 6f | 75 74 20 31 30 2e 35 20 |a is abo|ut 10.5 |
|00001420| 69 6e 63 68 65 73 20 28 | 58 2d 61 78 69 73 29 20 |inches (|X-axis) |
|00001430| 62 79 0a 58 38 2e 30 20 | 69 6e 63 68 65 73 20 28 |by.X8.0 |inches (|
|00001440| 59 2d 61 78 69 73 29 2e | 0a 58 2e 50 50 0a 58 54 |Y-axis).|.X.PP.XT|
|00001450| 68 65 20 5c 66 49 70 73 | 5f 70 6c 6f 74 5c 66 52 |he \fIps|_plot\fR|
|00001460| 20 66 69 6c 65 20 69 73 | 20 70 6c 6f 74 74 65 64 | file is| plotted|
|00001470| 20 75 73 69 6e 67 20 74 | 68 65 0a 58 2e 49 52 20 | using t|he.X.IR |
|00001480| 70 70 72 20 28 31 29 0a | 58 63 6f 6d 6d 61 6e 64 |ppr (1).|Xcommand|
|00001490| 2e 0a 58 5c 66 49 70 73 | 5f 70 6c 6f 74 5c 66 52 |..X\fIps|_plot\fR|
|000014a0| 20 69 73 20 63 72 65 61 | 74 65 64 20 69 6e 20 74 | is crea|ted in t|
|000014b0| 68 65 20 77 6f 72 6b 69 | 6e 67 20 64 69 72 65 63 |he worki|ng direc|
|000014c0| 74 6f 72 79 2c 0a 58 6f | 76 65 72 77 72 69 74 69 |tory,.Xo|verwriti|
|000014d0| 6e 67 20 61 6e 79 20 65 | 78 69 73 74 69 6e 67 0a |ng any e|xisting.|
|000014e0| 58 5c 66 49 70 73 5f 70 | 6c 6f 74 5c 66 52 20 66 |X\fIps_p|lot\fR f|
|000014f0| 69 6c 65 2e 0a 58 2e 50 | 50 0a 58 54 68 65 73 65 |ile..X.P|P.XThese|
|00001500| 20 73 75 62 72 6f 75 74 | 69 6e 65 73 20 61 72 65 | subrout|ines are|
|00001510| 20 5c 2a 28 6c 71 43 61 | 6c 43 6f 6d 70 2d 63 6f | \*(lqCa|lComp-co|
|00001520| 6d 70 61 74 69 62 6c 65 | 5c 2a 28 72 71 2c 0a 58 |mpatible|\*(rq,.X|
|00001530| 61 6e 64 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |and comp|atible w|
|00001540| 69 74 68 20 74 68 65 0a | 58 2e 49 52 20 63 61 6c |ith the.|X.IR cal|
|00001550| 63 6f 6d 70 20 28 33 66 | 29 0a 58 28 43 61 6c 43 |comp (3f|).X(CalC|
|00001560| 6f 6d 70 20 31 30 37 37 | 20 70 6c 6f 74 74 65 72 |omp 1077| plotter|
|00001570| 29 2c 0a 58 2e 49 52 20 | 68 6f 75 73 74 6f 6e 20 |),.X.IR |houston |
|00001580| 28 33 66 29 0a 58 28 48 | 6f 75 73 74 6f 6e 20 44 |(3f).X(H|ouston D|
|00001590| 50 38 2d 53 33 20 70 6c | 6f 74 74 65 72 29 2c 0a |P8-S3 pl|otter),.|
|000015a0| 58 2e 49 52 20 68 70 37 | 34 37 35 20 28 33 66 29 |X.IR hp7|475 (3f)|
|000015b0| 0a 58 28 48 50 20 37 34 | 37 35 41 20 70 6c 6f 74 |.X(HP 74|75A plot|
|000015c0| 74 65 72 29 2c 0a 58 2e | 49 52 20 69 6d 70 6c 6f |ter),.X.|IR implo|
|000015d0| 74 20 28 33 66 29 0a 58 | 28 49 6d 61 67 65 6e 20 |t (3f).X|(Imagen |
|000015e0| 38 2f 33 30 30 20 6c 61 | 73 65 72 20 70 72 69 6e |8/300 la|ser prin|
|000015f0| 74 65 72 29 2c 0a 58 61 | 6e 64 0a 58 2e 49 52 20 |ter),.Xa|nd.X.IR |
|00001600| 63 63 74 63 73 20 28 33 | 66 29 0a 58 28 54 65 6b |cctcs (3|f).X(Tek|
|00001610| 74 72 6f 6e 69 78 20 34 | 30 31 34 20 74 65 72 6d |tronix 4|014 term|
|00001620| 69 6e 61 6c 29 0a 58 73 | 75 62 72 6f 75 74 69 6e |inal).Xs|ubroutin|
|00001630| 65 73 2e 0a 58 54 68 69 | 73 20 6c 69 62 72 61 72 |es..XThi|s librar|
|00001640| 79 20 61 6c 73 6f 20 63 | 6f 6e 74 61 69 6e 73 20 |y also c|ontains |
|00001650| 69 6e 74 65 72 66 61 63 | 65 73 20 66 6f 72 0a 58 |interfac|es for.X|
|00001660| 53 75 72 66 61 63 65 20 | 44 69 73 70 6c 61 79 20 |Surface |Display |
|00001670| 4c 69 62 72 61 72 79 20 | 61 6e 64 20 6e 61 76 70 |Library |and navp|
|00001680| 6c 74 2e 0a 58 59 6f 75 | 20 63 61 6e 20 67 65 74 |lt..XYou| can get|
|00001690| 20 61 20 6d 61 6e 75 61 | 6c 20 66 6f 72 20 74 68 | a manua|l for th|
|000016a0| 65 73 65 20 73 75 62 72 | 6f 75 74 69 6e 65 73 0a |ese subr|outines.|
|000016b0| 58 66 72 6f 6d 20 52 65 | 78 20 53 61 6e 64 65 72 |Xfrom Re|x Sander|
|000016c0| 73 20 28 78 37 30 35 32 | 2c 20 41 32 32 30 29 2e |s (x7052|, A220).|
|000016d0| 0a 58 2e 53 48 20 46 49 | 4c 45 53 0a 58 2f 75 73 |.X.SH FI|LES.X/us|
|000016e0| 72 2f 6c 6f 63 61 6c 2f | 6c 69 62 2f 6c 69 62 63 |r/local/|lib/libc|
|000016f0| 63 70 73 2e 61 0a 58 2e | 53 48 20 53 45 45 20 41 |cps.a.X.|SH SEE A|
|00001700| 4c 53 4f 0a 58 63 61 6c | 63 6f 6d 70 28 33 66 29 |LSO.Xcal|comp(3f)|
|00001710| 2c 20 68 6f 75 73 74 6f | 6e 28 33 66 29 2c 20 68 |, housto|n(3f), h|
|00001720| 70 37 34 37 35 28 33 66 | 29 2c 20 69 6d 70 6c 6f |p7475(3f|), implo|
|00001730| 74 28 33 66 29 2c 20 63 | 63 74 63 73 28 33 66 29 |t(3f), c|ctcs(3f)|
|00001740| 2c 20 73 64 6c 28 33 66 | 29 2c 20 6e 61 76 70 6c |, sdl(3f|), navpl|
|00001750| 74 28 31 29 0a 58 2e 62 | 72 0a 58 5c 2a 28 6c 71 |t(1).X.b|r.X\*(lq|
|00001760| 50 72 6f 67 72 61 6d 6d | 69 6e 67 20 43 61 6c 43 |Programm|ing CalC|
|00001770| 6f 6d 70 20 45 6c 65 63 | 74 72 6f 6d 65 63 68 61 |omp Elec|tromecha|
|00001780| 6e 69 63 61 6c 20 50 6c | 6f 74 74 65 72 73 2c 20 |nical Pl|otters, |
|00001790| 31 39 37 36 5c 2a 28 72 | 71 0a 58 2e 53 48 20 42 |1976\*(r|q.X.SH B|
|000017a0| 55 47 53 0a 58 54 68 65 | 72 65 20 69 73 20 6e 6f |UGS.XThe|re is no|
|000017b0| 20 77 61 79 20 74 6f 20 | 70 6c 6f 74 20 6d 6f 72 | way to |plot mor|
|000017c0| 65 20 74 68 61 6e 20 6f | 6e 65 20 70 61 67 65 20 |e than o|ne page |
|000017d0| 61 74 20 61 20 74 69 6d | 65 2e 0a 58 2e 53 48 20 |at a tim|e..X.SH |
|000017e0| 41 55 54 48 4f 52 53 0a | 58 52 65 78 20 53 61 6e |AUTHORS.|XRex San|
|000017f0| 64 65 72 73 2c 20 55 53 | 47 53 20 50 61 63 69 66 |ders, US|GS Pacif|
|00001800| 69 63 20 4d 61 72 69 6e | 65 20 47 65 6f 6c 6f 67 |ic Marin|e Geolog|
|00001810| 79 20 5c 2d 20 70 72 69 | 6d 61 72 79 20 61 75 74 |y \- pri|mary aut|
|00001820| 68 6f 72 2e 0a 58 2e 62 | 72 0a 58 50 75 62 6c 69 |hor..X.b|r.XPubli|
|00001830| 63 20 64 6f 6d 61 69 6e | 20 5c 2d 20 73 65 76 65 |c domain| \- seve|
|00001840| 72 61 6c 20 61 75 78 69 | 6c 69 61 72 79 20 73 75 |ral auxi|liary su|
|00001850| 62 72 6f 75 74 69 6e 65 | 73 2e 0a 53 48 41 52 5f |broutine|s..SHAR_|
|00001860| 45 4f 46 0a 69 66 20 74 | 65 73 74 20 31 34 36 32 |EOF.if t|est 1462|
|00001870| 20 2d 6e 65 20 22 60 77 | 63 20 2d 63 20 3c 20 27 | -ne "`w|c -c < '|
|00001880| 63 63 70 73 2e 6d 61 6e | 27 60 22 0a 74 68 65 6e |ccps.man|'`".then|
|00001890| 0a 20 65 63 68 6f 20 73 | 68 61 72 3a 20 65 72 72 |. echo s|har: err|
|000018a0| 6f 72 20 74 72 61 6e 73 | 6d 69 74 74 69 6e 67 20 |or trans|mitting |
|000018b0| 22 27 63 63 70 73 2e 6d | 61 6e 27 22 20 27 28 73 |"'ccps.m|an'" '(s|
|000018c0| 68 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |hould ha|ve been |
|000018d0| 31 34 36 32 20 63 68 61 | 72 61 63 74 65 72 73 29 |1462 cha|racters)|
|000018e0| 27 0a 66 69 0a 66 69 20 | 23 20 65 6e 64 20 6f 66 |'.fi.fi |# end of|
|000018f0| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00001900| 63 6b 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |ck.echo |shar: ex|
|00001910| 74 72 61 63 74 69 6e 67 | 20 22 27 4d 61 6b 65 66 |tracting| "'Makef|
|00001920| 69 6c 65 27 22 20 27 28 | 38 36 35 20 63 68 61 72 |ile'" '(|865 char|
|00001930| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00001940| 20 2d 66 20 27 4d 61 6b | 65 66 69 6c 65 27 0a 74 | -f 'Mak|efile'.t|
|00001950| 68 65 6e 0a 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen. ech|o shar: |
|00001960| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|00001970| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|00001980| 65 20 22 27 4d 61 6b 65 | 66 69 6c 65 27 22 0a 65 |e "'Make|file'".e|
|00001990| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 58 2f 2f 27 |lse.sed |'s/^X//'|
|000019a0| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000019b0| 27 4d 61 6b 65 66 69 6c | 65 27 0a 58 23 20 4d 61 |'Makefil|e'.X# Ma|
|000019c0| 6b 65 66 69 6c 65 20 66 | 6f 72 20 50 6f 73 74 53 |kefile f|or PostS|
|000019d0| 63 72 69 70 74 20 70 72 | 69 6e 74 65 72 73 20 2d |cript pr|inters -|
|000019e0| 20 22 6c 69 62 63 63 70 | 73 2e 61 22 0a 58 23 20 | "libccp|s.a".X# |
|000019f0| 20 20 52 65 78 20 53 61 | 6e 64 65 72 73 2c 20 32 | Rex Sa|nders, 2|
|00001a00| 2f 38 37 0a 58 23 4e 6f | 74 65 3a 20 63 61 6e 6e |/87.X#No|te: cann|
|00001a10| 6f 74 20 75 73 65 20 6f | 70 74 69 6d 69 7a 65 72 |ot use o|ptimizer|
|00001a20| 20 6f 6e 20 70 66 6c 65 | 6d 76 2e 66 0a 58 23 55 | on pfle|mv.f.X#U|
|00001a30| 73 61 67 65 3a 20 27 6d | 61 6b 65 20 61 6c 6c 27 |sage: 'm|ake all'|
|00001a40| 20 2d 20 6d 61 6b 65 73 | 20 63 63 70 73 2e 61 20 | - makes| ccps.a |
|00001a50| 69 6e 20 73 6f 75 72 63 | 65 20 64 69 72 2e 0a 58 |in sourc|e dir..X|
|00001a60| 23 20 20 20 20 20 20 20 | 27 6d 61 6b 65 20 63 63 |# |'make cc|
|00001a70| 70 73 2e 61 27 0a 58 23 | 20 20 20 20 20 20 20 27 |ps.a'.X#| '|
|00001a80| 6d 61 6b 65 20 69 6e 73 | 74 61 6c 6c 27 20 2d 20 |make ins|tall' - |
|00001a90| 69 6e 73 74 61 6c 6c 73 | 20 6c 69 62 63 63 70 73 |installs| libccps|
|00001aa0| 2e 61 0a 58 23 20 20 20 | 20 20 20 20 27 6d 61 6b |.a.X# | 'mak|
|00001ab0| 65 20 63 6c 65 61 6e 27 | 20 2d 20 63 6c 65 61 6e |e clean'| - clean|
|00001ac0| 73 20 61 6c 6c 20 2e 6f | 20 66 69 6c 65 73 20 66 |s all .o| files f|
|00001ad0| 72 6f 6d 20 73 6f 75 72 | 63 65 20 64 69 72 2e 0a |rom sour|ce dir..|
|00001ae0| 58 0a 58 46 4f 42 4a 20 | 3d 20 61 78 69 73 2e 6f |X.XFOBJ |= axis.o|
|00001af0| 20 63 65 6e 74 63 68 2e | 6f 20 63 69 72 63 6c 65 | centch.|o circle|
|00001b00| 2e 6f 20 64 67 78 70 6c | 74 2e 6f 20 66 61 63 74 |.o dgxpl|t.o fact|
|00001b10| 6f 72 2e 6f 20 6c 65 74 | 74 65 72 2e 6f 20 6c 69 |or.o let|ter.o li|
|00001b20| 6e 65 2e 6f 20 5c 0a 58 | 09 6e 65 77 70 65 6e 2e |ne.o \.X|.newpen.|
|00001b30| 6f 20 6e 75 6d 62 65 72 | 2e 6f 20 70 66 6c 65 63 |o number|.o pflec|
|00001b40| 6b 2e 6f 20 70 6c 6f 74 | 2e 6f 20 70 6c 6f 74 73 |k.o plot|.o plots|
|00001b50| 2e 6f 20 5c 0a 58 09 73 | 63 61 6c 65 2e 6f 20 73 |.o \.X.s|cale.o s|
|00001b60| 70 6f 74 2e 6f 20 73 79 | 6d 62 6f 6c 2e 6f 20 77 |pot.o sy|mbol.o w|
|00001b70| 68 65 72 65 2e 6f 20 0a | 58 43 4f 42 4a 20 3d 20 |here.o .|XCOBJ = |
|00001b80| 70 6c 2e 6f 20 0a 58 46 | 46 4c 41 47 53 20 3d 20 |pl.o .XF|FLAGS = |
|00001b90| 2d 4f 0a 58 23 46 46 4c | 41 47 53 20 3d 20 2d 67 |-O.X#FFL|AGS = -g|
|00001ba0| 0a 58 43 46 4c 41 47 53 | 20 3d 20 2d 4f 0a 58 23 |.XCFLAGS| = -O.X#|
|00001bb0| 43 46 4c 41 47 53 20 3d | 20 2d 67 0a 58 0a 58 61 |CFLAGS =| -g.X.Xa|
|00001bc0| 6c 6c 20 3a 20 63 63 70 | 73 2e 61 0a 58 0a 58 63 |ll : ccp|s.a.X.Xc|
|00001bd0| 63 70 73 2e 61 20 3a 20 | 24 7b 46 4f 42 4a 7d 20 |cps.a : |${FOBJ} |
|00001be0| 70 66 6c 65 6d 76 2e 6f | 20 24 7b 43 4f 42 4a 7d |pflemv.o| ${COBJ}|
|00001bf0| 0a 58 09 61 72 20 72 75 | 20 63 63 70 73 2e 61 20 |.X.ar ru| ccps.a |
|00001c00| 24 7b 46 4f 42 4a 7d 20 | 70 66 6c 65 6d 76 2e 6f |${FOBJ} |pflemv.o|
|00001c10| 20 24 7b 43 4f 42 4a 7d | 0a 58 09 72 61 6e 6c 69 | ${COBJ}|.X.ranli|
|00001c20| 62 20 63 63 70 73 2e 61 | 0a 58 0a 58 24 7b 46 4f |b ccps.a|.X.X${FO|
|00001c30| 42 4a 7d 20 3a 0a 58 0a | 58 23 4e 6f 74 65 3a 20 |BJ} :.X.|X#Note: |
|00001c40| 63 61 6e 6e 6f 74 20 75 | 73 65 20 6f 70 74 69 6d |cannot u|se optim|
|00001c50| 69 7a 65 72 20 6f 6e 20 | 70 66 6c 65 6d 76 2e 66 |izer on |pflemv.f|
|00001c60| 0a 58 70 66 6c 65 6d 76 | 2e 6f 3a 09 70 66 6c 65 |.Xpflemv|.o:.pfle|
|00001c70| 6d 76 2e 66 0a 58 09 24 | 7b 46 43 7d 20 2d 63 20 |mv.f.X.$|{FC} -c |
|00001c80| 70 66 6c 65 6d 76 2e 66 | 0a 58 0a 58 24 7b 43 4f |pflemv.f|.X.X${CO|
|00001c90| 42 4a 7d 20 3a 0a 58 0a | 58 69 6e 73 74 61 6c 6c |BJ} :.X.|Xinstall|
|00001ca0| 20 3a 20 63 63 70 73 2e | 61 0a 58 09 69 6e 73 74 | : ccps.|a.X.inst|
|00001cb0| 61 6c 6c 20 2d 63 20 2d | 6f 20 62 69 6e 20 2d 67 |all -c -|o bin -g|
|00001cc0| 20 62 69 6e 20 2d 6d 20 | 30 34 34 34 20 63 63 70 | bin -m |0444 ccp|
|00001cd0| 73 2e 61 20 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 6c |s.a /usr|/local/l|
|00001ce0| 69 62 2f 6c 69 62 63 63 | 70 73 2e 61 0a 58 09 72 |ib/libcc|ps.a.X.r|
|00001cf0| 61 6e 6c 69 62 20 2f 75 | 73 72 2f 6c 6f 63 61 6c |anlib /u|sr/local|
|00001d00| 2f 6c 69 62 2f 6c 69 62 | 63 63 70 73 2e 61 0a 58 |/lib/lib|ccps.a.X|
|00001d10| 0a 58 63 6c 65 61 6e 3a | 0a 58 09 72 6d 20 2d 66 |.Xclean:|.X.rm -f|
|00001d20| 20 63 63 70 73 2e 61 20 | 24 7b 46 4f 42 4a 7d 20 | ccps.a |${FOBJ} |
|00001d30| 70 66 6c 65 6d 76 2e 6f | 20 24 7b 43 4f 42 4a 7d |pflemv.o| ${COBJ}|
|00001d40| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00001d50| 74 20 38 36 35 20 2d 6e | 65 20 22 60 77 63 20 2d |t 865 -n|e "`wc -|
|00001d60| 63 20 3c 20 27 4d 61 6b | 65 66 69 6c 65 27 60 22 |c < 'Mak|efile'`"|
|00001d70| 0a 74 68 65 6e 0a 20 65 | 63 68 6f 20 73 68 61 72 |.then. e|cho shar|
|00001d80| 3a 20 65 72 72 6f 72 20 | 74 72 61 6e 73 6d 69 74 |: error |transmit|
|00001d90| 74 69 6e 67 20 22 27 4d | 61 6b 65 66 69 6c 65 27 |ting "'M|akefile'|
|00001da0| 22 20 27 28 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |" '(shou|ld have |
|00001db0| 62 65 65 6e 20 38 36 35 | 20 63 68 61 72 61 63 74 |been 865| charact|
|00001dc0| 65 72 73 29 27 0a 66 69 | 0a 66 69 20 23 20 65 6e |ers)'.fi|.fi # en|
|00001dd0| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|00001de0| 20 63 68 65 63 6b 0a 65 | 63 68 6f 20 73 68 61 72 | check.e|cho shar|
|00001df0| 3a 20 65 78 74 72 61 63 | 74 69 6e 67 20 22 27 61 |: extrac|ting "'a|
|00001e00| 78 69 73 2e 66 27 22 20 | 27 28 32 38 32 32 20 63 |xis.f'" |'(2822 c|
|00001e10| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00001e20| 65 73 74 20 2d 66 20 27 | 61 78 69 73 2e 66 27 0a |est -f '|axis.f'.|
|00001e30| 74 68 65 6e 0a 20 65 63 | 68 6f 20 73 68 61 72 3a |then. ec|ho shar:|
|00001e40| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00001e50| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00001e60| 6c 65 20 22 27 61 78 69 | 73 2e 66 27 22 0a 65 6c |le "'axi|s.f'".el|
|00001e70| 73 65 0a 73 65 64 20 27 | 73 2f 5e 58 2f 2f 27 20 |se.sed '|s/^X//' |
|00001e80| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00001e90| 61 78 69 73 2e 66 27 0a | 58 20 20 20 20 20 20 73 |axis.f'.|X s|
|00001ea0| 75 62 72 6f 75 74 69 6e | 65 20 61 78 69 73 28 78 |ubroutin|e axis(x|
|00001eb0| 2c 79 2c 6c 62 6c 2c 6e | 63 2c 73 2c 74 68 65 74 |,y,lbl,n|c,s,thet|
|00001ec0| 61 2c 61 6d 69 6e 2c 64 | 65 6c 74 61 29 0a 58 09 |a,amin,d|elta).X.|
|00001ed0| 73 61 76 65 0a 58 63 0a | 58 63 20 20 20 20 20 20 |save.Xc.|Xc |
|00001ee0| 20 20 74 68 69 73 20 73 | 75 62 72 6f 75 74 69 6e | this s|ubroutin|
|00001ef0| 65 20 64 72 61 77 73 20 | 61 6e 20 61 78 69 73 20 |e draws |an axis |
|00001f00| 77 69 74 68 20 22 74 69 | 63 22 20 6d 61 72 6b 73 |with "ti|c" marks|
|00001f10| 20 61 74 20 6f 6e 65 20 | 69 6e 63 68 0a 58 63 20 | at one |inch.Xc |
|00001f20| 20 20 20 20 20 20 20 69 | 6e 74 65 72 76 61 6c 73 | i|ntervals|
|00001f30| 20 77 69 74 68 20 74 68 | 65 69 72 20 61 73 73 6f | with th|eir asso|
|00001f40| 63 69 61 74 65 64 20 76 | 61 6c 75 65 73 20 61 6e |ciated v|alues an|
|00001f50| 64 20 61 64 64 65 6c 74 | 61 20 61 20 6c 61 62 65 |d addelt|a a labe|
|00001f60| 6c 2e 0a 58 63 20 20 20 | 20 20 20 20 20 74 68 65 |l..Xc | the|
|00001f70| 20 61 72 67 75 6d 65 6e | 74 73 20 61 72 65 3a 0a | argumen|ts are:.|
|00001f80| 58 63 20 20 20 20 20 20 | 20 20 20 20 20 20 78 2c |Xc | x,|
|00001f90| 79 20 3d 20 74 68 65 20 | 63 6f 6f 72 64 69 6e 61 |y = the |coordina|
|00001fa0| 74 65 73 20 69 6e 20 69 | 6e 63 68 65 73 20 6f 66 |tes in i|nches of|
|00001fb0| 20 74 68 65 20 73 74 61 | 72 74 69 6e 67 20 70 6f | the sta|rting po|
|00001fc0| 69 6e 74 20 6f 66 0a 58 | 63 20 20 20 20 20 20 20 |int of.X|c |
|00001fd0| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 65 20 61 | | the a|
|00001fe0| 78 69 73 0a 58 63 20 20 | 20 20 20 20 20 20 20 20 |xis.Xc | |
|00001ff0| 20 20 6c 62 6c 20 3d 20 | 61 20 68 6f 6c 65 72 69 | lbl = |a holeri|
|00002000| 74 68 20 73 74 72 69 6e | 67 20 74 68 61 74 20 77 |th strin|g that w|
|00002010| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 61 73 20 74 |ill be u|sed as t|
|00002020| 68 65 20 61 78 69 73 20 | 6c 61 62 65 6c 0a 58 63 |he axis |label.Xc|
|00002030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002040| 20 20 69 74 20 69 73 20 | 63 65 6e 74 65 72 65 64 | it is |centered|
|00002050| 20 61 6e 64 20 64 72 61 | 77 6e 20 69 6e 20 30 2e | and dra|wn in 0.|
|00002060| 31 34 20 69 6e 63 68 20 | 68 69 67 68 20 6c 65 74 |14 inch |high let|
|00002070| 74 65 72 73 2e 0a 58 63 | 20 20 20 20 20 20 20 20 |ters..Xc| |
|00002080| 20 20 20 20 6e 63 20 20 | 3d 20 6e 75 6d 62 65 72 | nc |= number|
|00002090| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 73 20 69 | of char|acters i|
|000020a0| 6e 20 6c 62 6c 2e 20 69 | 66 20 70 6f 73 2c 20 6c |n lbl. i|f pos, l|
|000020b0| 61 62 65 6c 2c 20 73 63 | 61 6c 65 2c 20 26 0a 58 |abel, sc|ale, &.X|
|000020c0| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|000020d0| 20 20 20 74 69 63 20 6d | 61 72 6b 73 20 61 72 65 | tic m|arks are|
|000020e0| 20 64 72 61 77 6e 20 6f | 6e 20 63 63 77 20 73 69 | drawn o|n ccw si|
|000020f0| 64 65 20 6f 66 20 74 68 | 65 20 61 78 69 73 2e 20 |de of th|e axis. |
|00002100| 69 66 20 6e 65 67 2c 0a | 58 63 20 20 20 20 20 20 |if neg,.|Xc |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 68 65 79 | | they|
|00002120| 20 61 72 65 20 70 6c 61 | 63 65 64 20 6f 6e 20 74 | are pla|ced on t|
|00002130| 68 65 20 63 77 20 73 69 | 64 65 2e 0a 58 63 20 20 |he cw si|de..Xc |
|00002140| 20 20 20 20 20 20 20 20 | 20 20 73 20 20 20 3d 20 | | s = |
|00002150| 74 68 65 20 6c 65 6e 67 | 74 68 20 6f 66 20 74 68 |the leng|th of th|
|00002160| 65 20 61 78 69 73 20 69 | 6e 20 69 6e 63 68 65 73 |e axis i|n inches|
|00002170| 2e 0a 58 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |..Xc | |
|00002180| 74 68 65 74 61 20 3d 20 | 74 68 65 20 61 6e 67 6c |theta = |the angl|
|00002190| 65 20 69 6e 20 64 65 67 | 72 65 65 73 20 66 72 6f |e in deg|rees fro|
|000021a0| 6d 20 74 68 65 20 2b 78 | 20 64 69 72 65 63 74 69 |m the +x| directi|
|000021b0| 6f 6e 20 74 68 61 74 20 | 74 68 65 0a 58 63 20 20 |on that |the.Xc |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021d0| 61 78 69 73 20 69 73 20 | 64 72 61 77 6e 2e 20 3d |axis is |drawn. =|
|000021e0| 30 20 69 6d 70 6c 69 65 | 73 20 61 20 68 6f 72 69 |0 implie|s a hori|
|000021f0| 7a 6f 6e 74 61 6c 20 61 | 78 69 73 20 72 65 61 64 |zontal a|xis read|
|00002200| 69 6e 67 0a 58 63 20 20 | 20 20 20 20 20 20 20 20 |ing.Xc | |
|00002210| 20 20 20 20 20 20 20 20 | 6c 65 66 74 20 74 6f 20 | |left to |
|00002220| 72 69 67 68 74 2e 20 3d | 39 30 20 69 6d 70 6c 69 |right. =|90 impli|
|00002230| 65 73 20 61 20 76 65 72 | 74 69 63 6c 65 20 61 78 |es a ver|ticle ax|
|00002240| 69 73 20 72 65 61 64 69 | 6e 67 0a 58 63 20 20 20 |is readi|ng.Xc |
|00002250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00002260| 6f 74 74 6f 6d 20 74 6f | 20 74 6f 70 2e 0a 58 63 |ottom to| top..Xc|
|00002270| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 6d 69 6e | | amin|
|00002280| 20 3d 20 74 68 65 20 6d | 69 6e 69 6d 75 6d 20 76 | = the m|inimum v|
|00002290| 61 6c 75 65 20 73 68 6f | 77 6e 20 6f 6e 20 74 68 |alue sho|wn on th|
|000022a0| 65 20 61 78 69 73 2e 0a | 58 63 20 20 20 20 20 20 |e axis..|Xc |
|000022b0| 20 20 20 20 20 20 64 65 | 6c 74 61 20 20 3d 20 74 | de|lta = t|
|000022c0| 68 65 20 73 63 61 6c 65 | 20 69 6e 63 72 65 6d 65 |he scale| increme|
|000022d0| 6e 74 20 70 65 72 20 69 | 6e 63 68 20 6f 6e 20 74 |nt per i|nch on t|
|000022e0| 68 65 20 73 63 61 6c 65 | 2e 0a 58 63 0a 58 20 20 |he scale|..Xc.X |
|000022f0| 20 20 20 20 64 69 6d 65 | 6e 73 69 6f 6e 20 6c 62 | dime|nsion lb|
|00002300| 6c 28 31 29 20 2c 20 6a | 64 6c 28 31 29 0a 58 63 |l(1) , j|dl(1).Xc|
|00002310| 0a 58 63 20 20 20 20 20 | 20 20 20 20 20 20 20 6e |.Xc | n|
|00002320| 6e 20 20 3d 73 70 65 63 | 69 66 69 65 73 20 74 68 |n =spec|ifies th|
|00002330| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 64 69 67 69 |e number| of digi|
|00002340| 74 73 20 61 66 66 74 65 | 72 20 74 68 65 20 64 65 |ts affte|r the de|
|00002350| 63 69 6d 61 6c 0a 58 63 | 20 20 20 20 20 20 20 20 |cimal.Xc| |
|00002360| 20 20 20 20 20 20 20 20 | 20 70 6f 69 6e 74 20 6f | | point o|
|00002370| 6e 20 6e 75 6d 65 72 69 | 63 20 6c 65 74 74 65 72 |n numeri|c letter|
|00002380| 69 6e 67 2e 20 63 61 6c | 63 6f 6d 70 20 76 65 72 |ing. cal|comp ver|
|00002390| 73 69 6f 6e 73 20 61 6c | 6c 6f 77 0a 58 63 20 20 |sions al|low.Xc |
|000023a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|000023b0| 6e 6c 79 20 32 20 70 6f | 73 69 74 69 6f 6e 73 20 |nly 2 po|sitions |
|000023c0| 61 66 74 65 72 20 74 68 | 65 20 64 65 63 69 6d 61 |after th|e decima|
|000023d0| 6c 2e 0a 58 63 0a 58 20 | 20 20 20 20 20 64 61 74 |l..Xc.X | dat|
|000023e0| 61 20 6e 6e 2f 32 2f 2c | 6a 64 6c 2f 34 68 20 2a |a nn/2/,|jdl/4h *|
|000023f0| 31 30 2f 0a 58 20 20 20 | 20 20 20 78 62 3d 78 0a |10/.X | xb=x.|
|00002400| 58 20 20 20 20 20 20 79 | 62 3d 79 0a 58 20 20 20 |X y|b=y.X |
|00002410| 20 20 20 79 6d 69 6e 3d | 61 6d 69 6e 0a 58 20 20 | ymin=|amin.X |
|00002420| 20 20 20 20 6e 3d 73 2b | 2e 35 0a 58 20 20 20 20 | n=s+|.5.X |
|00002430| 20 20 6e 61 63 3d 69 61 | 62 73 28 6e 63 29 0a 58 | nac=ia|bs(nc).X|
|00002440| 20 20 20 20 20 20 79 79 | 64 3d 2e 35 2a 73 2d 2e | yy|d=.5*s-.|
|00002450| 30 36 2a 6e 61 63 0a 58 | 20 20 20 20 20 20 61 6e |06*nac.X| an|
|00002460| 67 72 61 64 3d 31 2e 37 | 34 35 33 32 39 33 65 2d |grad=1.7|453293e-|
|00002470| 32 2a 74 68 65 74 61 0a | 58 20 20 20 20 20 20 66 |2*theta.|X f|
|00002480| 3d 63 6f 73 28 61 6e 67 | 72 61 64 29 0a 58 20 20 |=cos(ang|rad).X |
|00002490| 20 20 20 20 67 3d 73 69 | 6e 28 61 6e 67 72 61 64 | g=si|n(angrad|
|000024a0| 29 0a 58 20 20 20 20 20 | 20 73 67 6e 3d 69 73 69 |).X | sgn=isi|
|000024b0| 67 6e 28 31 2c 6e 63 29 | 0a 58 20 20 20 20 20 20 |gn(1,nc)|.X |
|000024c0| 66 73 76 3d 73 67 6e 2a | 66 0a 58 20 20 20 20 20 |fsv=sgn*|f.X |
|000024d0| 20 67 73 76 3d 73 67 6e | 2a 67 0a 58 20 20 20 20 | gsv=sgn|*g.X |
|000024e0| 20 20 74 3d 2d 2e 30 37 | 2a 28 73 67 6e 2d 31 2e | t=-.07|*(sgn-1.|
|000024f0| 29 0a 58 20 20 20 20 20 | 20 73 68 66 74 78 3d 74 |).X | shftx=t|
|00002500| 2a 67 73 76 0a 58 20 20 | 20 20 20 20 73 68 66 74 |*gsv.X | shft|
|00002510| 79 3d 74 2a 66 73 76 0a | 58 20 20 20 20 20 20 78 |y=t*fsv.|X x|
|00002520| 61 3d 78 62 2d 2e 31 2a | 67 73 76 0a 58 20 20 20 |a=xb-.1*|gsv.X |
|00002530| 20 20 20 79 61 3d 79 62 | 2b 2e 31 2a 66 73 76 0a | ya=yb|+.1*fsv.|
|00002540| 58 20 20 20 20 20 20 78 | 63 3d 78 62 2d 2e 31 35 |X x|c=xb-.15|
|00002550| 2a 67 73 76 2d 2e 31 37 | 2a 66 2d 73 68 66 74 78 |*gsv-.17|*f-shftx|
|00002560| 0a 58 20 20 20 20 20 20 | 79 63 3d 79 62 2b 2e 31 |.X |yc=yb+.1|
|00002570| 35 2a 66 73 76 2d 2e 31 | 37 2a 67 2b 73 68 66 74 |5*fsv-.1|7*g+shft|
|00002580| 79 0a 58 20 20 20 20 20 | 20 78 64 3d 78 62 2b 79 |y.X | xd=xb+y|
|00002590| 79 64 2a 66 2d 2e 33 33 | 2a 67 73 76 2d 73 68 66 |yd*f-.33|*gsv-shf|
|000025a0| 74 78 0a 58 20 20 20 20 | 20 20 79 64 3d 79 62 2b |tx.X | yd=yb+|
|000025b0| 79 79 64 2a 67 2b 2e 33 | 33 2a 66 73 76 2b 73 68 |yyd*g+.3|3*fsv+sh|
|000025c0| 66 74 79 0a 58 20 20 20 | 20 20 20 65 78 70 3d 30 |fty.X | exp=0|
|000025d0| 2e 0a 58 20 20 20 20 20 | 20 64 64 3d 61 62 73 28 |..X | dd=abs(|
|000025e0| 64 65 6c 74 61 29 0a 58 | 20 20 20 20 20 20 69 66 |delta).X| if|
|000025f0| 20 28 64 64 2e 67 65 2e | 2e 30 31 2e 61 6e 64 2e | (dd.ge.|.01.and.|
|00002600| 64 64 2e 6c 65 2e 31 30 | 30 2e 29 20 67 6f 20 74 |dd.le.10|0.) go t|
|00002610| 6f 20 35 30 0a 58 20 20 | 20 20 20 20 6e 61 63 3d |o 50.X | nac=|
|00002620| 6e 61 63 2b 34 0a 58 20 | 20 20 31 30 20 69 66 20 |nac+4.X | 10 if |
|00002630| 28 64 64 2e 6c 74 2e 2e | 30 31 29 20 67 6f 20 74 |(dd.lt..|01) go t|
|00002640| 6f 20 34 30 0a 58 20 20 | 20 32 30 20 69 66 20 28 |o 40.X | 20 if (|
|00002650| 64 64 2e 67 74 2e 31 30 | 30 2e 29 20 67 6f 20 74 |dd.gt.10|0.) go t|
|00002660| 6f 20 33 30 0a 58 20 20 | 20 20 20 20 67 6f 20 74 |o 30.X | go t|
|00002670| 6f 20 35 30 0a 58 20 20 | 20 33 30 20 64 64 3d 64 |o 50.X | 30 dd=d|
|00002680| 64 2a 2e 31 0a 58 20 20 | 20 20 20 20 79 6d 69 6e |d*.1.X | ymin|
|00002690| 3d 79 6d 69 6e 2a 2e 31 | 0a 58 20 20 20 20 20 20 |=ymin*.1|.X |
|000026a0| 65 78 70 3d 65 78 70 2b | 31 2e 0a 58 20 20 20 20 |exp=exp+|1..X |
|000026b0| 20 20 67 6f 20 74 6f 20 | 32 30 0a 58 20 20 20 34 | go to |20.X 4|
|000026c0| 30 20 64 64 3d 64 64 2a | 31 30 2e 0a 58 20 20 20 |0 dd=dd*|10..X |
|000026d0| 20 20 20 79 6d 69 6e 3d | 79 6d 69 6e 2a 31 30 2e | ymin=|ymin*10.|
|000026e0| 0a 58 20 20 20 20 20 20 | 65 78 70 3d 65 78 70 2d |.X |exp=exp-|
|000026f0| 31 2e 0a 58 20 20 20 20 | 20 20 67 6f 20 74 6f 20 |1..X | go to |
|00002700| 31 30 0a 58 20 20 20 35 | 30 20 63 61 6c 6c 20 6e |10.X 5|0 call n|
|00002710| 75 6d 62 65 72 28 78 63 | 2c 79 63 2c 2e 31 30 35 |umber(xc|,yc,.105|
|00002720| 20 2c 79 6d 69 6e 2c 74 | 68 65 74 61 2c 6e 6e 29 | ,ymin,t|heta,nn)|
|00002730| 0a 58 20 20 20 20 20 20 | 64 64 3d 73 69 67 6e 28 |.X |dd=sign(|
|00002740| 64 64 2c 64 65 6c 74 61 | 29 0a 58 20 20 20 20 20 |dd,delta|).X |
|00002750| 20 64 6f 20 36 30 20 69 | 20 3d 20 31 2c 6e 0a 58 | do 60 i| = 1,n.X|
|00002760| 20 20 20 20 20 20 63 61 | 6c 6c 20 70 6c 6f 74 28 | ca|ll plot(|
|00002770| 78 61 2c 79 61 2c 31 29 | 0a 58 20 20 20 20 20 20 |xa,ya,1)|.X |
|00002780| 63 61 6c 6c 20 70 6c 6f | 74 28 78 62 2c 79 62 2c |call plo|t(xb,yb,|
|00002790| 32 29 0a 58 20 20 20 20 | 20 20 78 61 3d 78 61 2b |2).X | xa=xa+|
|000027a0| 66 0a 58 20 20 20 20 20 | 20 78 62 3d 78 62 2b 66 |f.X | xb=xb+f|
|000027b0| 0a 58 20 20 20 20 20 20 | 78 63 3d 78 63 2b 66 0a |.X |xc=xc+f.|
|000027c0| 58 20 20 20 20 20 20 79 | 61 3d 79 61 2b 67 0a 58 |X y|a=ya+g.X|
|000027d0| 20 20 20 20 20 20 79 62 | 3d 79 62 2b 67 0a 58 20 | yb|=yb+g.X |
|000027e0| 20 20 20 20 20 79 63 3d | 79 63 2b 67 0a 58 20 20 | yc=|yc+g.X |
|000027f0| 20 20 20 20 79 6d 69 6e | 3d 79 6d 69 6e 2b 64 64 | ymin|=ymin+dd|
|00002800| 0a 58 20 20 20 20 20 20 | 63 61 6c 6c 20 70 6c 6f |.X |call plo|
|00002810| 74 28 78 62 2c 79 62 2c | 31 29 0a 58 20 20 20 20 |t(xb,yb,|1).X |
|00002820| 20 20 63 61 6c 6c 20 70 | 6c 6f 74 28 78 61 2c 79 | call p|lot(xa,y|
|00002830| 61 2c 31 29 0a 58 20 20 | 20 36 30 20 63 61 6c 6c |a,1).X | 60 call|
|00002840| 20 6e 75 6d 62 65 72 28 | 78 63 2c 79 63 2c 2e 31 | number(|xc,yc,.1|
|00002850| 30 35 2c 79 6d 69 6e 2c | 74 68 65 74 61 2c 6e 6e |05,ymin,|theta,nn|
|00002860| 29 0a 58 20 20 20 20 20 | 20 69 66 20 28 65 78 70 |).X | if (exp|
|00002870| 29 20 38 30 2c 37 30 2c | 38 30 0a 58 20 20 20 37 |) 80,70,|80.X 7|
|00002880| 30 20 63 61 6c 6c 20 73 | 79 6d 62 6f 6c 28 78 64 |0 call s|ymbol(xd|
|00002890| 2c 79 64 2c 2e 31 34 2c | 6c 62 6c 2c 74 68 65 74 |,yd,.14,|lbl,thet|
|000028a0| 61 2c 6e 61 63 29 0a 58 | 20 20 20 20 20 20 72 65 |a,nac).X| re|
|000028b0| 74 75 72 6e 0a 58 20 20 | 20 38 30 20 6e 63 63 3d |turn.X | 80 ncc=|
|000028c0| 6e 61 63 2d 34 0a 58 20 | 20 20 20 20 20 63 61 6c |nac-4.X | cal|
|000028d0| 6c 20 73 79 6d 62 6f 6c | 28 78 64 2c 79 64 2c 2e |l symbol|(xd,yd,.|
|000028e0| 31 34 2c 6c 62 6c 2c 74 | 68 65 74 61 2c 6e 63 63 |14,lbl,t|heta,ncc|
|000028f0| 29 0a 58 20 20 20 20 20 | 20 63 61 6c 6c 20 77 68 |).X | call wh|
|00002900| 65 72 65 28 61 61 2c 62 | 62 2c 66 61 63 74 29 0a |ere(aa,b|b,fact).|
|00002910| 58 20 20 20 20 20 20 63 | 61 6c 6c 20 73 79 6d 62 |X c|all symb|
|00002920| 6f 6c 28 61 61 2c 62 62 | 2c 2e 31 34 2c 6a 64 6c |ol(aa,bb|,.14,jdl|
|00002930| 2c 74 68 65 74 61 2c 34 | 29 0a 58 20 20 20 20 20 |,theta,4|).X |
|00002940| 20 63 61 6c 6c 20 77 68 | 65 72 65 28 61 61 2c 62 | call wh|ere(aa,b|
|00002950| 62 2c 66 61 63 74 29 0a | 58 20 20 20 20 20 20 61 |b,fact).|X a|
|00002960| 61 3d 61 61 2b 63 6f 73 | 28 61 6e 67 72 61 64 29 |a=aa+cos|(angrad)|
|00002970| 2a 28 2e 30 38 29 2d 73 | 69 6e 28 61 6e 67 72 61 |*(.08)-s|in(angra|
|00002980| 64 29 2a 2e 30 38 0a 58 | 20 20 20 20 20 20 62 62 |d)*.08.X| bb|
|00002990| 3d 62 62 2b 73 69 6e 28 | 61 6e 67 72 61 64 29 2a |=bb+sin(|angrad)*|
|000029a0| 28 2e 30 38 29 2b 63 6f | 73 28 61 6e 67 72 61 64 |(.08)+co|s(angrad|
|000029b0| 29 2a 2e 30 38 0a 58 20 | 20 20 20 20 20 63 61 6c |)*.08.X | cal|
|000029c0| 6c 20 6e 75 6d 62 65 72 | 28 61 61 2c 62 62 2c 2e |l number|(aa,bb,.|
|000029d0| 30 37 2c 65 78 70 2c 74 | 68 65 74 61 2c 2d 31 29 |07,exp,t|heta,-1)|
|000029e0| 0a 58 20 20 20 20 20 20 | 72 65 74 75 72 6e 0a 58 |.X |return.X|
|000029f0| 20 20 20 20 20 20 65 6e | 64 0a 53 48 41 52 5f 45 | en|d.SHAR_E|
|00002a00| 4f 46 0a 69 66 20 74 65 | 73 74 20 32 38 32 32 20 |OF.if te|st 2822 |
|00002a10| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 3c 20 27 61 |-ne "`wc| -c < 'a|
|00002a20| 78 69 73 2e 66 27 60 22 | 0a 74 68 65 6e 0a 20 65 |xis.f'`"|.then. e|
|00002a30| 63 68 6f 20 73 68 61 72 | 3a 20 65 72 72 6f 72 20 |cho shar|: error |
|00002a40| 74 72 61 6e 73 6d 69 74 | 74 69 6e 67 20 22 27 61 |transmit|ting "'a|
|00002a50| 78 69 73 2e 66 27 22 20 | 27 28 73 68 6f 75 6c 64 |xis.f'" |'(should|
|00002a60| 20 68 61 76 65 20 62 65 | 65 6e 20 32 38 32 32 20 | have be|en 2822 |
|00002a70| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 66 69 0a |characte|rs)'.fi.|
|00002a80| 66 69 20 23 20 65 6e 64 | 20 6f 66 20 6f 76 65 72 |fi # end| of over|
|00002a90| 77 72 69 74 69 6e 67 20 | 63 68 65 63 6b 0a 65 63 |writing |check.ec|
|00002aa0| 68 6f 20 73 68 61 72 3a | 20 65 78 74 72 61 63 74 |ho shar:| extract|
|00002ab0| 69 6e 67 20 22 27 63 65 | 6e 74 63 68 2e 66 27 22 |ing "'ce|ntch.f'"|
|00002ac0| 20 27 28 39 32 33 20 63 | 68 61 72 61 63 74 65 72 | '(923 c|haracter|
|00002ad0| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00002ae0| 63 65 6e 74 63 68 2e 66 | 27 0a 74 68 65 6e 0a 20 |centch.f|'.then. |
|00002af0| 65 63 68 6f 20 73 68 61 | 72 3a 20 77 69 6c 6c 20 |echo sha|r: will |
|00002b00| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00002b10| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 22 27 63 |xisting |file "'c|
|00002b20| 65 6e 74 63 68 2e 66 27 | 22 0a 65 6c 73 65 0a 73 |entch.f'|".else.s|
|00002b30| 65 64 20 27 73 2f 5e 58 | 2f 2f 27 20 3c 3c 20 5c |ed 's/^X|//' << \|
|00002b40| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 63 65 6e 74 |SHAR_EOF| > 'cent|
|00002b50| 63 68 2e 66 27 0a 58 20 | 20 20 20 20 20 20 20 73 |ch.f'.X | s|
|00002b60| 75 62 72 6f 75 74 69 6e | 65 20 63 65 6e 74 63 68 |ubroutin|e centch|
|00002b70| 28 78 2c 79 2c 61 6e 67 | 2c 68 74 2c 78 78 2c 79 |(x,y,ang|,ht,xx,y|
|00002b80| 79 29 0a 58 63 20 2a 2a | 2a 2a 20 43 61 6c 63 75 |y).Xc **|** Calcu|
|00002b90| 6c 61 74 65 20 63 6f 6f | 72 64 73 20 6f 66 20 62 |late coo|rds of b|
|00002ba0| 6f 74 74 6f 6d 20 6c 65 | 66 74 20 6f 66 20 63 68 |ottom le|ft of ch|
|00002bb0| 61 72 20 63 65 6c 6c 0a | 58 63 20 49 6e 70 75 74 |ar cell.|Xc Input|
|00002bc0| 3a 0a 58 63 20 20 20 20 | 20 20 20 20 78 2c 79 20 |:.Xc | x,y |
|00002bd0| 3d 20 63 6f 6f 72 64 73 | 20 6f 66 20 63 65 6e 74 |= coords| of cent|
|00002be0| 65 72 20 6f 66 20 63 68 | 61 72 20 63 65 6c 6c 0a |er of ch|ar cell.|
|00002bf0| 58 63 20 20 20 20 20 20 | 20 20 61 6e 67 2c 20 68 |Xc | ang, h|
|00002c00| 74 20 3d 20 61 6e 67 6c | 65 20 28 64 65 67 72 65 |t = angl|e (degre|
|00002c10| 65 73 29 20 61 6e 64 20 | 68 65 69 67 68 74 20 28 |es) and |height (|
|00002c20| 69 6e 63 68 65 73 29 20 | 6f 66 20 63 65 6c 6c 0a |inches) |of cell.|
|00002c30| 58 0a 58 63 20 4f 75 74 | 70 75 74 3a 0a 58 63 20 |X.Xc Out|put:.Xc |
|00002c40| 20 20 20 20 20 20 20 78 | 78 2c 79 79 20 3d 20 63 | x|x,yy = c|
|00002c50| 6f 6f 72 64 73 20 6f 66 | 20 62 6f 74 74 6f 6d 2c |oords of| bottom,|
|00002c60| 20 6c 65 66 74 20 63 6f | 72 6e 65 72 0a 58 0a 58 | left co|rner.X.X|
|00002c70| 63 20 2d 2d 2d 2d 20 53 | 65 74 20 78 2c 79 20 73 |c ---- S|et x,y s|
|00002c80| 68 69 66 74 20 66 61 63 | 74 6f 72 73 20 66 6f 72 |hift fac|tors for|
|00002c90| 20 55 6e 69 78 2f 68 6f | 75 73 74 6f 6e 3a 0a 58 | Unix/ho|uston:.X|
|00002ca0| 20 20 20 20 20 20 20 20 | 20 20 70 61 72 61 6d 65 | | parame|
|00002cb0| 74 65 72 20 28 78 61 64 | 6a 3d 30 2e 33 33 33 33 |ter (xad|j=0.3333|
|00002cc0| 2c 20 79 61 64 6a 3d 30 | 2e 35 30 30 30 29 0a 58 |, yadj=0|.5000).X|
|00002cd0| 0a 58 63 20 2d 2d 2d 2d | 20 53 65 65 20 69 66 20 |.Xc ----| See if |
|00002ce0| 78 20 6f 72 20 79 20 69 | 6e 64 69 63 61 74 65 20 |x or y i|ndicate |
|00002cf0| 60 75 73 65 20 6c 61 73 | 74 20 63 6f 6f 72 64 69 |`use las|t coordi|
|00002d00| 6e 61 74 65 27 3a 0a 58 | 09 20 20 69 66 20 28 61 |nate':.X|. if (a|
|00002d10| 62 73 28 78 2d 39 39 39 | 2e 29 20 2d 20 30 2e 31 |bs(x-999|.) - 0.1|
|00002d20| 20 20 2e 6c 74 2e 20 30 | 2e 29 20 74 68 65 6e 0a | .lt. 0|.) then.|
|00002d30| 58 09 20 20 20 20 63 61 | 6c 6c 20 77 68 65 72 65 |X. ca|ll where|
|00002d40| 28 78 6c 61 73 74 2c 20 | 79 6c 61 73 74 2c 20 72 |(xlast, |ylast, r|
|00002d50| 66 61 63 74 29 0a 58 09 | 20 20 20 20 78 6c 6f 63 |fact).X.| xloc|
|00002d60| 20 3d 20 78 6c 61 73 74 | 0a 58 09 20 20 65 6c 73 | = xlast|.X. els|
|00002d70| 65 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 78 |e.X | x|
|00002d80| 6c 6f 63 20 3d 20 78 0a | 58 09 20 20 65 6e 64 20 |loc = x.|X. end |
|00002d90| 69 66 0a 58 09 20 20 69 | 66 20 28 61 62 73 28 79 |if.X. i|f (abs(y|
|00002da0| 2d 39 39 39 2e 29 20 2d | 20 30 2e 31 20 20 2e 6c |-999.) -| 0.1 .l|
|00002db0| 74 2e 20 30 2e 29 20 74 | 68 65 6e 0a 58 09 20 20 |t. 0.) t|hen.X. |
|00002dc0| 20 20 63 61 6c 6c 20 77 | 68 65 72 65 28 78 6c 61 | call w|here(xla|
|00002dd0| 73 74 2c 20 79 6c 61 73 | 74 2c 20 72 66 61 63 74 |st, ylas|t, rfact|
|00002de0| 29 0a 58 09 20 20 20 20 | 79 6c 6f 63 20 3d 20 79 |).X. |yloc = y|
|00002df0| 6c 61 73 74 0a 58 09 20 | 20 65 6c 73 65 0a 58 20 |last.X. | else.X |
|00002e00| 20 20 20 20 20 20 20 20 | 20 20 20 79 6c 6f 63 20 | | yloc |
|00002e10| 3d 20 79 0a 58 09 20 20 | 65 6e 64 20 69 66 0a 58 |= y.X. |end if.X|
|00002e20| 0a 58 63 20 2d 2d 2d 2d | 20 43 61 6c 63 75 6c 61 |.Xc ----| Calcula|
|00002e30| 74 65 20 62 6f 74 74 6f | 6d 20 6c 65 66 74 20 63 |te botto|m left c|
|00002e40| 6f 72 6e 65 72 20 66 72 | 6f 6d 20 63 65 6e 74 65 |orner fr|om cente|
|00002e50| 72 2e 20 2d 2d 2d 2d 0a | 58 09 20 20 72 61 6e 67 |r. ----.|X. rang|
|00002e60| 20 3d 20 2e 30 31 37 34 | 35 33 33 20 2a 20 61 6e | = .0174|533 * an|
|00002e70| 67 0a 58 09 20 20 63 6f | 73 61 20 3d 20 63 6f 73 |g.X. co|sa = cos|
|00002e80| 20 28 72 61 6e 67 29 0a | 58 09 20 20 73 69 6e 61 | (rang).|X. sina|
|00002e90| 20 3d 20 73 69 6e 20 28 | 72 61 6e 67 29 0a 58 09 | = sin (|rang).X.|
|00002ea0| 20 20 78 78 20 3d 20 78 | 6c 6f 63 20 2d 20 68 74 | xx = x|loc - ht|
|00002eb0| 2a 63 6f 73 61 2a 78 61 | 64 6a 20 2b 20 79 61 64 |*cosa*xa|dj + yad|
|00002ec0| 6a 2a 68 74 2a 73 69 6e | 61 0a 58 09 20 20 79 79 |j*ht*sin|a.X. yy|
|00002ed0| 20 3d 20 79 6c 6f 63 20 | 2d 20 68 74 2a 73 69 6e | = yloc |- ht*sin|
|00002ee0| 61 2a 78 61 64 6a 20 2d | 20 79 61 64 6a 2a 68 74 |a*xadj -| yadj*ht|
|00002ef0| 2a 63 6f 73 61 0a 58 20 | 20 20 20 20 20 20 20 72 |*cosa.X | r|
|00002f00| 65 74 75 72 6e 0a 58 20 | 20 20 20 20 20 20 20 65 |eturn.X | e|
|00002f10| 6e 64 0a 53 48 41 52 5f | 45 4f 46 0a 69 66 20 74 |nd.SHAR_|EOF.if t|
|00002f20| 65 73 74 20 39 32 33 20 | 2d 6e 65 20 22 60 77 63 |est 923 |-ne "`wc|
|00002f30| 20 2d 63 20 3c 20 27 63 | 65 6e 74 63 68 2e 66 27 | -c < 'c|entch.f'|
|00002f40| 60 22 0a 74 68 65 6e 0a | 20 65 63 68 6f 20 73 68 |`".then.| echo sh|
|00002f50| 61 72 3a 20 65 72 72 6f | 72 20 74 72 61 6e 73 6d |ar: erro|r transm|
|00002f60| 69 74 74 69 6e 67 20 22 | 27 63 65 6e 74 63 68 2e |itting "|'centch.|
|00002f70| 66 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |f'" '(sh|ould hav|
|00002f80| 65 20 62 65 65 6e 20 39 | 32 33 20 63 68 61 72 61 |e been 9|23 chara|
|00002f90| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 20 23 20 |cters)'.|fi.fi # |
|00002fa0| 65 6e 64 20 6f 66 20 6f | 76 65 72 77 72 69 74 69 |end of o|verwriti|
|00002fb0| 6e 67 20 63 68 65 63 6b | 0a 65 63 68 6f 20 73 68 |ng check|.echo sh|
|00002fc0| 61 72 3a 20 65 78 74 72 | 61 63 74 69 6e 67 20 22 |ar: extr|acting "|
|00002fd0| 27 63 69 72 63 6c 65 2e | 66 27 22 20 27 28 35 33 |'circle.|f'" '(53|
|00002fe0| 35 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |5 charac|ters)'.i|
|00002ff0| 66 20 74 65 73 74 20 2d | 66 20 27 63 69 72 63 6c |f test -|f 'circl|
|00003000| 65 2e 66 27 0a 74 68 65 | 6e 0a 20 65 63 68 6f 20 |e.f'.the|n. echo |
|00003010| 73 68 61 72 3a 20 77 69 | 6c 6c 20 6e 6f 74 20 6f |shar: wi|ll not o|
|00003020| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00003030| 6e 67 20 66 69 6c 65 20 | 22 27 63 69 72 63 6c 65 |ng file |"'circle|
|00003040| 2e 66 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |.f'".els|e.sed 's|
|00003050| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|00003060| 45 4f 46 20 3e 20 27 63 | 69 72 63 6c 65 2e 66 27 |EOF > 'c|ircle.f'|
|00003070| 0a 58 09 73 75 62 72 6f | 75 74 69 6e 65 20 63 69 |.X.subro|utine ci|
|00003080| 72 63 6c 65 28 78 6f 72 | 67 2c 79 6f 72 67 2c 72 |rcle(xor|g,yorg,r|
|00003090| 61 64 29 0a 58 43 0a 58 | 43 20 20 20 64 72 61 77 |ad).XC.X|C draw|
|000030a0| 20 61 20 63 69 72 63 6c | 65 20 69 6e 20 50 6f 73 | a circl|e in Pos|
|000030b0| 74 53 63 72 69 70 74 20 | 66 6f 72 20 63 63 70 73 |tScript |for ccps|
|000030c0| 20 6c 69 62 72 61 72 79 | 0a 58 43 20 20 20 20 20 | library|.XC |
|000030d0| 52 65 78 20 53 61 6e 64 | 65 72 73 2c 20 33 2f 38 |Rex Sand|ers, 3/8|
|000030e0| 37 0a 58 43 0a 58 09 63 | 6f 6d 6d 6f 6e 20 2f 63 |7.XC.X.c|ommon /c|
|000030f0| 71 70 62 6e 66 2f 20 78 | 6f 6c 64 2c 20 79 6f 6c |qpbnf/ x|old, yol|
|00003100| 64 2c 20 66 61 63 2c 20 | 69 72 65 73 0a 58 09 73 |d, fac, |ires.X.s|
|00003110| 61 76 65 20 20 20 2f 63 | 71 70 62 6e 66 2f 0a 58 |ave /c|qpbnf/.X|
|00003120| 09 72 65 61 6c 20 20 20 | 20 20 20 20 20 20 20 20 |.real | |
|00003130| 20 78 6f 6c 64 2c 20 79 | 6f 6c 64 2c 20 66 61 63 | xold, y|old, fac|
|00003140| 0a 58 09 69 6e 74 65 67 | 65 72 20 20 20 20 20 20 |.X.integ|er |
|00003150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003160| 20 20 20 20 69 72 65 73 | 0a 58 0a 58 43 0a 58 43 | ires|.X.XC.XC|
|00003170| 20 20 20 4f 75 74 70 75 | 74 20 22 73 74 72 6f 6b | Outpu|t "strok|
|00003180| 65 20 78 20 79 20 72 61 | 64 69 75 73 20 30 20 33 |e x y ra|dius 0 3|
|00003190| 36 30 20 61 72 63 20 73 | 74 72 6f 6b 65 22 0a 58 |60 arc s|troke".X|
|000031a0| 43 0a 58 09 63 61 6c 6c | 20 70 6c 73 6f 75 74 20 |C.X.call| plsout |
|000031b0| 28 22 73 74 72 6f 6b 65 | 20 22 29 0a 58 09 63 61 |("stroke| ").X.ca|
|000031c0| 6c 6c 20 70 6c 69 6f 75 | 74 20 28 6e 69 6e 74 20 |ll pliou|t (nint |
|000031d0| 28 78 6f 72 67 2a 66 61 | 63 2a 69 72 65 73 29 29 |(xorg*fa|c*ires))|
|000031e0| 0a 58 09 63 61 6c 6c 20 | 70 6c 63 6f 75 74 20 28 |.X.call |plcout (|
|000031f0| 33 32 29 0a 58 09 63 61 | 6c 6c 20 70 6c 69 6f 75 |32).X.ca|ll pliou|
|00003200| 74 20 28 6e 69 6e 74 20 | 28 79 6f 72 67 2a 66 61 |t (nint |(yorg*fa|
|00003210| 63 2a 69 72 65 73 29 29 | 0a 58 09 63 61 6c 6c 20 |c*ires))|.X.call |
|00003220| 70 6c 63 6f 75 74 20 28 | 33 32 29 0a 58 09 63 61 |plcout (|32).X.ca|
|00003230| 6c 6c 20 70 6c 69 6f 75 | 74 20 28 6e 69 6e 74 20 |ll pliou|t (nint |
|00003240| 28 72 61 64 2a 66 61 63 | 2a 69 72 65 73 29 29 0a |(rad*fac|*ires)).|
|00003250| 58 09 63 61 6c 6c 20 70 | 6c 73 6f 75 74 20 28 22 |X.call p|lsout ("|
|00003260| 20 30 20 33 36 30 20 61 | 72 63 20 73 74 72 6f 6b | 0 360 a|rc strok|
|00003270| 65 5c 6e 22 29 0a 58 09 | 63 61 6c 6c 20 70 6c 6f |e\n").X.|call plo|
|00003280| 74 28 78 6f 72 67 2c 79 | 6f 72 67 2c 33 29 0a 58 |t(xorg,y|org,3).X|
|00003290| 0a 58 09 72 65 74 75 72 | 6e 0a 58 09 65 6e 64 0a |.X.retur|n.X.end.|
|000032a0| 53 48 41 52 5f 45 4f 46 | 0a 69 66 20 74 65 73 74 |SHAR_EOF|.if test|
|000032b0| 20 35 33 35 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 | 535 -ne| "`wc -c|
|000032c0| 20 3c 20 27 63 69 72 63 | 6c 65 2e 66 27 60 22 0a | < 'circ|le.f'`".|
|000032d0| 74 68 65 6e 0a 20 65 63 | 68 6f 20 73 68 61 72 3a |then. ec|ho shar:|
|000032e0| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|000032f0| 69 6e 67 20 22 27 63 69 | 72 63 6c 65 2e 66 27 22 |ing "'ci|rcle.f'"|
|00003300| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|00003310| 65 65 6e 20 35 33 35 20 | 63 68 61 72 61 63 74 65 |een 535 |characte|
|00003320| 72 73 29 27 0a 66 69 0a | 66 69 20 23 20 65 6e 64 |rs)'.fi.|fi # end|
|00003330| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00003340| 63 68 65 63 6b 0a 65 63 | 68 6f 20 73 68 61 72 3a |check.ec|ho shar:|
|00003350| 20 65 78 74 72 61 63 74 | 69 6e 67 20 22 27 64 67 | extract|ing "'dg|
|00003360| 78 70 6c 74 2e 66 27 22 | 20 27 28 31 33 36 37 20 |xplt.f'"| '(1367 |
|00003370| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00003380| 74 65 73 74 20 2d 66 20 | 27 64 67 78 70 6c 74 2e |test -f |'dgxplt.|
|00003390| 66 27 0a 74 68 65 6e 0a | 20 65 63 68 6f 20 73 68 |f'.then.| echo sh|
|000033a0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|000033b0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000033c0| 20 66 69 6c 65 20 22 27 | 64 67 78 70 6c 74 2e 66 | file "'|dgxplt.f|
|000033d0| 27 22 0a 65 6c 73 65 0a | 73 65 64 20 27 73 2f 5e |'".else.|sed 's/^|
|000033e0| 58 2f 2f 27 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |X//' << |\SHAR_EO|
|000033f0| 46 20 3e 20 27 64 67 78 | 70 6c 74 2e 66 27 0a 58 |F > 'dgx|plt.f'.X|
|00003400| 09 73 75 62 72 6f 75 74 | 69 6e 65 20 64 67 78 70 |.subrout|ine dgxp|
|00003410| 6c 74 28 69 61 63 2c 20 | 69 75 6e 2c 20 69 76 6c |lt(iac, |iun, ivl|
|00003420| 2c 20 69 64 6d 2c 20 78 | 70 6c 2c 20 79 70 6c 29 |, idm, x|pl, ypl)|
|00003430| 0a 58 63 2a 2a 20 20 50 | 75 72 70 6f 73 65 3a 09 |.Xc** P|urpose:.|
|00003440| 53 44 4c 20 2d 3e 20 50 | 6f 73 74 53 63 72 69 70 |SDL -> P|ostScrip|
|00003450| 74 20 70 72 69 6e 74 65 | 72 20 69 6e 74 65 72 66 |t printe|r interf|
|00003460| 61 63 65 20 73 75 62 72 | 6f 75 74 69 6e 65 0a 58 |ace subr|outine.X|
|00003470| 63 2a 2a 0a 58 63 2a 2a | 20 20 41 75 74 68 6f 72 |c**.Xc**| Author|
|00003480| 3a 09 52 65 78 20 53 61 | 6e 64 65 72 73 2c 20 55 |:.Rex Sa|nders, U|
|00003490| 53 47 53 20 50 61 63 69 | 66 69 63 20 4d 61 72 69 |SGS Paci|fic Mari|
|000034a0| 6e 65 20 47 65 6f 6c 6f | 67 79 2c 20 32 2f 38 37 |ne Geolo|gy, 2/87|
|000034b0| 0a 58 09 69 6e 74 65 67 | 65 72 09 69 61 63 2c 20 |.X.integ|er.iac, |
|000034c0| 69 75 6e 2c 20 69 76 6c | 2c 20 69 64 6d 0a 58 09 |iun, ivl|, idm.X.|
|000034d0| 72 65 61 6c 09 78 70 6c | 28 69 64 6d 29 2c 20 79 |real.xpl|(idm), y|
|000034e0| 70 6c 28 69 64 6d 29 0a | 58 0a 58 63 2a 2a 20 20 |pl(idm).|X.Xc** |
|000034f0| 53 44 4c 20 63 6f 6d 6d | 6f 6e 20 62 6c 6f 63 6b |SDL comm|on block|
|00003500| 0a 58 09 63 6f 6d 6d 6f | 6e 20 2f 64 67 73 64 6c |.X.commo|n /dgsdl|
|00003510| 70 2f 20 69 70 65 6e 74 | 70 2c 20 69 70 65 6e 6c |p/ ipent|p, ipenl|
|00003520| 74 2c 20 69 70 65 6e 62 | 6c 2c 20 78 6f 6c 64 2c |t, ipenb|l, xold,|
|00003530| 20 79 6f 6c 64 2c 20 69 | 66 6c 62 6c 64 0a 58 09 | yold, i|flbld.X.|
|00003540| 69 6e 74 65 67 65 72 09 | 09 69 70 65 6e 74 70 2c |integer.|.ipentp,|
|00003550| 20 69 70 65 6e 6c 74 2c | 20 69 70 65 6e 62 6c 2c | ipenlt,| ipenbl,|
|00003560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 6c | | ifl|
|00003570| 62 6c 64 0a 58 09 72 65 | 61 6c 09 09 09 09 09 78 |bld.X.re|al.....x|
|00003580| 6f 6c 64 2c 20 79 6f 6c | 64 0a 58 0a 58 63 2a 2a |old, yol|d.X.Xc**|
|00003590| 20 20 63 63 70 73 20 63 | 6f 6d 6d 6f 6e 20 62 6c | ccps c|ommon bl|
|000035a0| 6f 63 6b 0a 58 09 63 6f | 6d 6d 6f 6e 20 2f 63 71 |ock.X.co|mmon /cq|
|000035b0| 70 62 6e 66 2f 20 78 64 | 75 6d 2c 20 79 64 75 6d |pbnf/ xd|um, ydum|
|000035c0| 2c 20 66 61 63 2c 20 69 | 72 65 73 0a 58 09 73 61 |, fac, i|res.X.sa|
|000035d0| 76 65 20 20 20 2f 63 71 | 70 62 6e 66 2f 0a 58 09 |ve /cq|pbnf/.X.|
|000035e0| 72 65 61 6c 20 20 20 20 | 20 20 20 20 20 20 20 20 |real | |
|000035f0| 78 64 75 6d 2c 20 79 64 | 75 6d 2c 20 66 61 63 0a |xdum, yd|um, fac.|
|00003600| 58 09 69 6e 74 65 67 65 | 72 20 20 20 20 20 20 20 |X.intege|r |
|00003610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003620| 20 20 20 69 72 65 73 0a | 58 0a 58 63 2a 2a 20 20 | ires.|X.Xc** |
|00003630| 4c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 73 0a |Local va|riables.|
|00003640| 58 09 69 6e 74 65 67 65 | 72 20 69 0a 58 0a 58 63 |X.intege|r i.X.Xc|
|00003650| 2a 2a 20 20 53 77 69 74 | 63 68 20 6f 6e 20 69 6e |** Swit|ch on in|
|00003660| 70 75 74 20 76 61 6c 75 | 65 20 6f 66 20 69 61 63 |put valu|e of iac|
|00003670| 20 2d 20 31 2e 2e 35 20 | 28 36 20 69 67 6e 6f 72 | - 1..5 |(6 ignor|
|00003680| 65 64 29 0a 58 63 2a 2a | 20 20 44 72 61 77 20 72 |ed).Xc**| Draw r|
|00003690| 65 67 75 6c 61 72 20 6f | 72 20 62 6f 6c 64 20 6c |egular o|r bold l|
|000036a0| 69 6e 65 0a 58 09 69 66 | 20 28 69 61 63 20 2e 65 |ine.X.if| (iac .e|
|000036b0| 71 2e 20 31 20 2e 6f 72 | 2e 20 69 61 63 20 2e 65 |q. 1 .or|. iac .e|
|000036c0| 71 2e 20 32 29 20 74 68 | 65 6e 0a 58 09 20 20 20 |q. 2) th|en.X. |
|000036d0| 20 69 66 20 28 69 61 63 | 20 2e 65 71 2e 20 31 29 | if (iac| .eq. 1)|
|000036e0| 20 63 61 6c 6c 20 6e 65 | 77 70 65 6e 28 69 70 65 | call ne|wpen(ipe|
|000036f0| 6e 6c 74 29 0a 58 09 20 | 20 20 20 69 66 20 28 69 |nlt).X. | if (i|
|00003700| 61 63 20 2e 65 71 2e 20 | 32 29 20 74 68 65 6e 0a |ac .eq. |2) then.|
|00003710| 58 09 09 69 66 20 28 69 | 70 65 6e 6c 74 20 2e 6e |X..if (i|penlt .n|
|00003720| 65 2e 20 69 70 65 6e 62 | 6c 29 20 74 68 65 6e 0a |e. ipenb|l) then.|
|00003730| 58 09 09 20 20 20 20 63 | 61 6c 6c 20 6e 65 77 70 |X.. c|all newp|
|00003740| 65 6e 28 69 70 65 6e 62 | 6c 29 0a 58 09 09 65 6c |en(ipenb|l).X..el|
|00003750| 73 65 0a 58 09 09 20 20 | 20 20 63 61 6c 6c 20 6e |se.X.. | call n|
|00003760| 65 77 70 65 6e 28 33 29 | 0a 58 09 09 65 6e 64 69 |ewpen(3)|.X..endi|
|00003770| 66 0a 58 09 20 20 20 20 | 65 6e 64 69 66 0a 58 0a |f.X. |endif.X.|
|00003780| 58 09 20 20 20 20 63 61 | 6c 6c 20 70 6c 6f 74 28 |X. ca|ll plot(|
|00003790| 78 70 6c 28 31 29 2c 20 | 79 70 6c 28 31 29 2c 20 |xpl(1), |ypl(1), |
|000037a0| 33 29 0a 58 0a 58 09 20 | 20 20 20 64 6f 20 31 30 |3).X.X. | do 10|
|000037b0| 30 20 69 20 3d 20 32 2c | 20 28 69 76 6c 20 2d 20 |0 i = 2,| (ivl - |
|000037c0| 31 29 0a 58 09 09 63 61 | 6c 6c 20 70 6c 69 6f 75 |1).X..ca|ll pliou|
|000037d0| 74 28 6e 69 6e 74 28 78 | 70 6c 28 69 29 2a 66 61 |t(nint(x|pl(i)*fa|
|000037e0| 63 2a 69 72 65 73 29 29 | 0a 58 09 09 63 61 6c 6c |c*ires))|.X..call|
|000037f0| 20 70 6c 63 6f 75 74 28 | 33 32 29 0a 58 09 09 63 | plcout(|32).X..c|
|00003800| 61 6c 6c 20 70 6c 69 6f | 75 74 28 6e 69 6e 74 28 |all plio|ut(nint(|
|00003810| 79 70 6c 28 69 29 2a 66 | 61 63 2a 69 72 65 73 29 |ypl(i)*f|ac*ires)|
|00003820| 29 0a 58 09 09 63 61 6c | 6c 20 70 6c 73 6f 75 74 |).X..cal|l plsout|
|00003830| 28 22 20 4c 5c 6e 22 29 | 0a 58 31 30 30 09 20 20 |(" L\n")|.X100. |
|00003840| 20 20 63 6f 6e 74 69 6e | 75 65 0a 58 0a 58 09 20 | contin|ue.X.X. |
|00003850| 20 20 20 63 61 6c 6c 20 | 70 6c 6f 74 28 78 70 6c | call |plot(xpl|
|00003860| 28 69 76 6c 29 2c 20 79 | 70 6c 28 69 76 6c 29 2c |(ivl), y|pl(ivl),|
|00003870| 20 32 29 0a 58 0a 58 63 | 2a 2a 20 20 49 6e 69 74 | 2).X.Xc|** Init|
|00003880| 69 61 74 65 20 70 6c 6f | 74 74 69 6e 67 0a 58 09 |iate plo|tting.X.|
|00003890| 65 6c 73 65 20 69 66 20 | 28 69 61 63 20 2e 65 71 |else if |(iac .eq|
|000038a0| 2e 20 33 29 20 74 68 65 | 6e 0a 58 09 20 20 20 20 |. 3) the|n.X. |
|000038b0| 63 61 6c 6c 20 70 6c 6f | 74 73 28 30 2c 20 30 2c |call plo|ts(0, 0,|
|000038c0| 20 38 29 0a 58 09 0a 58 | 63 2a 2a 20 20 4e 65 77 | 8).X..X|c** New|
|000038d0| 20 70 61 67 65 0a 58 09 | 65 6c 73 65 20 69 66 20 | page.X.|else if |
|000038e0| 28 69 61 63 20 2e 65 71 | 2e 20 34 29 20 74 68 65 |(iac .eq|. 4) the|
|000038f0| 6e 0a 58 09 20 20 20 20 | 63 61 6c 6c 20 70 6c 73 |n.X. |call pls|
|00003900| 6f 75 74 28 22 67 73 61 | 76 65 20 73 68 6f 77 70 |out("gsa|ve showp|
|00003910| 61 67 65 20 67 72 65 73 | 74 6f 72 65 5c 6e 22 29 |age gres|tore\n")|
|00003920| 0a 58 0a 58 63 2a 2a 20 | 20 54 65 72 6d 69 6e 61 |.X.Xc** | Termina|
|00003930| 74 65 20 70 6c 6f 74 74 | 69 6e 67 0a 58 09 65 6c |te plott|ing.X.el|
|00003940| 73 65 20 69 66 20 28 69 | 61 63 20 2e 65 71 2e 20 |se if (i|ac .eq. |
|00003950| 35 29 20 74 68 65 6e 0a | 58 09 20 20 20 20 63 61 |5) then.|X. ca|
|00003960| 6c 6c 20 70 6c 6f 74 28 | 30 2e 30 2c 20 30 2e 30 |ll plot(|0.0, 0.0|
|00003970| 2c 20 39 39 39 29 0a 58 | 09 65 6e 64 20 69 66 0a |, 999).X|.end if.|
|00003980| 58 0a 58 09 72 65 74 75 | 72 6e 0a 58 09 65 6e 64 |X.X.retu|rn.X.end|
|00003990| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|000039a0| 74 20 31 33 36 37 20 2d | 6e 65 20 22 60 77 63 20 |t 1367 -|ne "`wc |
|000039b0| 2d 63 20 3c 20 27 64 67 | 78 70 6c 74 2e 66 27 60 |-c < 'dg|xplt.f'`|
|000039c0| 22 0a 74 68 65 6e 0a 20 | 65 63 68 6f 20 73 68 61 |".then. |echo sha|
|000039d0| 72 3a 20 65 72 72 6f 72 | 20 74 72 61 6e 73 6d 69 |r: error| transmi|
|000039e0| 74 74 69 6e 67 20 22 27 | 64 67 78 70 6c 74 2e 66 |tting "'|dgxplt.f|
|000039f0| 27 22 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |'" '(sho|uld have|
|00003a00| 20 62 65 65 6e 20 31 33 | 36 37 20 63 68 61 72 61 | been 13|67 chara|
|00003a10| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 20 23 20 |cters)'.|fi.fi # |
|00003a20| 65 6e 64 20 6f 66 20 6f | 76 65 72 77 72 69 74 69 |end of o|verwriti|
|00003a30| 6e 67 20 63 68 65 63 6b | 0a 65 63 68 6f 20 73 68 |ng check|.echo sh|
|00003a40| 61 72 3a 20 65 78 74 72 | 61 63 74 69 6e 67 20 22 |ar: extr|acting "|
|00003a50| 27 66 61 63 74 6f 72 2e | 66 27 22 20 27 28 33 35 |'factor.|f'" '(35|
|00003a60| 35 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |5 charac|ters)'.i|
|00003a70| 66 20 74 65 73 74 20 2d | 66 20 27 66 61 63 74 6f |f test -|f 'facto|
|00003a80| 72 2e 66 27 0a 74 68 65 | 6e 0a 20 65 63 68 6f 20 |r.f'.the|n. echo |
|00003a90| 73 68 61 72 3a 20 77 69 | 6c 6c 20 6e 6f 74 20 6f |shar: wi|ll not o|
|00003aa0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00003ab0| 6e 67 20 66 69 6c 65 20 | 22 27 66 61 63 74 6f 72 |ng file |"'factor|
|00003ac0| 2e 66 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |.f'".els|e.sed 's|
|00003ad0| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|00003ae0| 45 4f 46 20 3e 20 27 66 | 61 63 74 6f 72 2e 66 27 |EOF > 'f|actor.f'|
|00003af0| 0a 58 09 73 75 62 72 6f | 75 74 69 6e 65 20 66 61 |.X.subro|utine fa|
|00003b00| 63 74 6f 72 20 28 66 29 | 0a 58 09 72 65 61 6c 20 |ctor (f)|.X.real |
|00003b10| 66 0a 58 43 0a 58 43 20 | 20 73 65 74 73 20 70 6c |f.XC.XC | sets pl|
|00003b20| 6f 74 20 73 69 7a 69 6e | 67 20 66 61 63 74 6f 72 |ot sizin|g factor|
|00003b30| 20 2d 0a 58 43 20 20 20 | 20 69 66 20 66 20 3d 20 | -.XC | if f = |
|00003b40| 32 2e 30 20 74 68 65 6e | 20 61 6c 6c 20 73 75 62 |2.0 then| all sub|
|00003b50| 73 65 71 75 65 6e 74 20 | 70 65 6e 20 6d 6f 76 65 |sequent |pen move|
|00003b60| 6d 65 6e 74 73 20 77 69 | 6c 6c 20 62 65 20 74 77 |ments wi|ll be tw|
|00003b70| 69 63 65 20 6e 6f 72 6d | 61 6c 20 73 69 7a 65 0a |ice norm|al size.|
|00003b80| 58 43 20 20 20 20 69 66 | 20 66 20 69 73 20 72 65 |XC if| f is re|
|00003b90| 73 65 74 20 74 6f 20 31 | 2e 30 2c 20 61 6c 6c 20 |set to 1|.0, all |
|00003ba0| 70 6c 6f 74 74 69 6e 67 | 20 72 65 74 75 72 6e 73 |plotting| returns|
|00003bb0| 20 74 6f 20 6e 6f 72 6d | 61 6c 20 73 69 7a 65 0a | to norm|al size.|
|00003bc0| 58 43 0a 58 0a 58 09 63 | 6f 6d 6d 6f 6e 20 2f 63 |XC.X.X.c|ommon /c|
|00003bd0| 71 70 62 6e 66 2f 20 78 | 6f 6c 64 2c 20 79 6f 6c |qpbnf/ x|old, yol|
|00003be0| 64 2c 20 66 61 63 2c 20 | 69 72 65 73 0a 58 09 73 |d, fac, |ires.X.s|
|00003bf0| 61 76 65 20 20 20 2f 63 | 71 70 62 6e 66 2f 0a 58 |ave /c|qpbnf/.X|
|00003c00| 09 72 65 61 6c 20 20 20 | 20 20 20 20 20 20 20 20 |.real | |
|00003c10| 20 78 6f 6c 64 2c 20 79 | 6f 6c 64 2c 20 66 61 63 | xold, y|old, fac|
|00003c20| 0a 58 09 69 6e 74 65 67 | 65 72 20 20 20 20 20 20 |.X.integ|er |
|00003c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c40| 20 20 20 20 69 72 65 73 | 0a 58 0a 58 09 66 61 63 | ires|.X.X.fac|
|00003c50| 20 3d 20 66 0a 58 09 72 | 65 74 75 72 6e 0a 58 09 | = f.X.r|eturn.X.|
|00003c60| 65 6e 64 0a 53 48 41 52 | 5f 45 4f 46 0a 69 66 20 |end.SHAR|_EOF.if |
|00003c70| 74 65 73 74 20 33 35 35 | 20 2d 6e 65 20 22 60 77 |test 355| -ne "`w|
|00003c80| 63 20 2d 63 20 3c 20 27 | 66 61 63 74 6f 72 2e 66 |c -c < '|factor.f|
|00003c90| 27 60 22 0a 74 68 65 6e | 0a 20 65 63 68 6f 20 73 |'`".then|. echo s|
|00003ca0| 68 61 72 3a 20 65 72 72 | 6f 72 20 74 72 61 6e 73 |har: err|or trans|
|00003cb0| 6d 69 74 74 69 6e 67 20 | 22 27 66 61 63 74 6f 72 |mitting |"'factor|
|00003cc0| 2e 66 27 22 20 27 28 73 | 68 6f 75 6c 64 20 68 61 |.f'" '(s|hould ha|
|00003cd0| 76 65 20 62 65 65 6e 20 | 33 35 35 20 63 68 61 72 |ve been |355 char|
|00003ce0| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 66 69 20 23 |acters)'|.fi.fi #|
|00003cf0| 20 65 6e 64 20 6f 66 20 | 6f 76 65 72 77 72 69 74 | end of |overwrit|
|00003d00| 69 6e 67 20 63 68 65 63 | 6b 0a 65 63 68 6f 20 73 |ing chec|k.echo s|
|00003d10| 68 61 72 3a 20 65 78 74 | 72 61 63 74 69 6e 67 20 |har: ext|racting |
|00003d20| 22 27 6c 65 74 74 65 72 | 2e 66 27 22 20 27 28 32 |"'letter|.f'" '(2|
|00003d30| 35 38 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |58 chara|cters)'.|
|00003d40| 69 66 20 74 65 73 74 20 | 2d 66 20 27 6c 65 74 74 |if test |-f 'lett|
|00003d50| 65 72 2e 66 27 0a 74 68 | 65 6e 0a 20 65 63 68 6f |er.f'.th|en. echo|
|00003d60| 20 73 68 61 72 3a 20 77 | 69 6c 6c 20 6e 6f 74 20 | shar: w|ill not |
|00003d70| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00003d80| 69 6e 67 20 66 69 6c 65 | 20 22 27 6c 65 74 74 65 |ing file| "'lette|
|00003d90| 72 2e 66 27 22 0a 65 6c | 73 65 0a 73 65 64 20 27 |r.f'".el|se.sed '|
|00003da0| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |s/^X//' |<< \SHAR|
|00003db0| 5f 45 4f 46 20 3e 20 27 | 6c 65 74 74 65 72 2e 66 |_EOF > '|letter.f|
|00003dc0| 27 0a 58 09 73 75 62 72 | 6f 75 74 69 6e 65 20 6c |'.X.subr|outine l|
|00003dd0| 65 74 74 65 72 20 28 6e | 63 68 72 2c 69 68 74 2c |etter (n|chr,iht,|
|00003de0| 69 61 6e 67 2c 78 2c 79 | 2c 73 74 72 29 0a 58 63 |iang,x,y|,str).Xc|
|00003df0| 20 2d 2d 2d 2d 20 54 72 | 61 6e 73 6c 61 74 65 20 | ---- Tr|anslate |
|00003e00| 70 61 72 61 6d 65 74 65 | 72 73 20 66 72 6f 6d 20 |paramete|rs from |
|00003e10| 6f 6c 64 20 42 65 6e 73 | 6f 6e 2d 4c 65 68 6e 65 |old Bens|on-Lehne|
|00003e20| 72 20 6c 65 74 74 65 72 | 20 63 61 6c 6c 73 0a 58 |r letter| calls.X|
|00003e30| 63 20 2d 2d 2d 2d 20 20 | 74 6f 20 68 70 20 70 61 |c ---- |to hp pa|
|00003e40| 72 61 6d 65 74 65 72 73 | 20 61 6e 64 20 63 61 6c |rameters| and cal|
|00003e50| 6c 20 73 79 6d 62 6f 6c | 2e 20 2d 2d 2d 2d 0a 58 |l symbol|. ----.X|
|00003e60| 09 63 68 61 72 61 63 74 | 65 72 20 73 74 72 2a 28 |.charact|er str*(|
|00003e70| 2a 29 0a 58 0a 58 09 68 | 74 20 3d 20 69 68 74 20 |*).X.X.h|t = iht |
|00003e80| 2a 20 2e 30 36 0a 58 09 | 61 6e 67 20 3d 20 66 6c |* .06.X.|ang = fl|
|00003e90| 6f 61 74 20 28 69 61 6e | 67 29 0a 58 09 63 61 6c |oat (ian|g).X.cal|
|00003ea0| 6c 20 73 79 6d 62 6f 6c | 20 28 78 2c 79 2c 68 74 |l symbol| (x,y,ht|
|00003eb0| 2c 73 74 72 2c 61 6e 67 | 2c 6e 63 68 72 29 0a 58 |,str,ang|,nchr).X|
|00003ec0| 09 72 65 74 75 72 6e 0a | 58 09 65 6e 64 0a 53 48 |.return.|X.end.SH|
|00003ed0| 41 52 5f 45 4f 46 0a 69 | 66 20 74 65 73 74 20 32 |AR_EOF.i|f test 2|
|00003ee0| 35 38 20 2d 6e 65 20 22 | 60 77 63 20 2d 63 20 3c |58 -ne "|`wc -c <|
|00003ef0| 20 27 6c 65 74 74 65 72 | 2e 66 27 60 22 0a 74 68 | 'letter|.f'`".th|
|00003f00| 65 6e 0a 20 65 63 68 6f | 20 73 68 61 72 3a 20 65 |en. echo| shar: e|
|00003f10| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|00003f20| 67 20 22 27 6c 65 74 74 | 65 72 2e 66 27 22 20 27 |g "'lett|er.f'" '|
|00003f30| 28 73 68 6f 75 6c 64 20 | 68 61 76 65 20 62 65 65 |(should |have bee|
|00003f40| 6e 20 32 35 38 20 63 68 | 61 72 61 63 74 65 72 73 |n 258 ch|aracters|
|00003f50| 29 27 0a 66 69 0a 66 69 | 20 23 20 65 6e 64 20 6f |)'.fi.fi| # end o|
|00003f60| 66 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 63 68 |f overwr|iting ch|
|00003f70| 65 63 6b 0a 65 63 68 6f | 20 73 68 61 72 3a 20 65 |eck.echo| shar: e|
|00003f80| 78 74 72 61 63 74 69 6e | 67 20 22 27 6c 69 6e 65 |xtractin|g "'line|
|00003f90| 2e 66 27 22 20 27 28 31 | 35 32 30 20 63 68 61 72 |.f'" '(1|520 char|
|00003fa0| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00003fb0| 20 2d 66 20 27 6c 69 6e | 65 2e 66 27 0a 74 68 65 | -f 'lin|e.f'.the|
|00003fc0| 6e 0a 20 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n. echo |shar: wi|
|00003fd0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00003fe0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00003ff0| 22 27 6c 69 6e 65 2e 66 | 27 22 0a 65 6c 73 65 0a |"'line.f|'".else.|
|00004000| 73 65 64 20 27 73 2f 5e | 58 2f 2f 27 20 3c 3c 20 |sed 's/^|X//' << |
|00004010| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 6c 69 6e |\SHAR_EO|F > 'lin|
|00004020| 65 2e 66 27 0a 58 20 20 | 20 20 20 20 73 75 62 72 |e.f'.X | subr|
|00004030| 6f 75 74 69 6e 65 20 20 | 6c 69 6e 65 28 78 61 2c |outine |line(xa,|
|00004040| 79 61 2c 6e 2c 6b 2c 6c | 74 79 70 65 2c 69 6e 75 |ya,n,k,l|type,inu|
|00004050| 6d 29 0a 58 09 73 61 76 | 65 0a 58 63 0a 58 63 20 |m).X.sav|e.Xc.Xc |
|00004060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00004070| 72 61 77 20 6c 69 6e 65 | 20 63 6f 6e 6e 65 63 74 |raw line| connect|
|00004080| 69 6e 67 20 64 61 74 61 | 20 70 6f 69 6e 74 20 63 |ing data| point c|
|00004090| 6f 6f 72 64 69 6e 61 74 | 65 73 20 61 72 72 61 79 |oordinat|es array|
|000040a0| 20 76 61 6c 75 65 0a 58 | 63 20 20 20 20 20 20 20 | value.X|c |
|000040b0| 20 20 20 20 20 20 20 20 | 20 2a 2a 20 78 61 28 6e | | ** xa(n|
|000040c0| 2a 6b 2b 31 29 20 20 6d | 75 73 74 20 63 6f 6e 74 |*k+1) m|ust cont|
|000040d0| 61 69 6e 20 6d 69 6e 69 | 6d 75 6d 20 78 20 73 63 |ain mini|mum x sc|
|000040e0| 61 6c 65 20 76 61 6c 75 | 65 20 28 69 6e 63 68 29 |ale valu|e (inch)|
|000040f0| 0a 58 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.Xc | |
|00004100| 20 20 20 2a 2a 20 79 61 | 28 6e 2a 6b 2b 31 29 20 | ** ya|(n*k+1) |
|00004110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004120| 20 20 20 20 20 20 79 0a | 58 63 20 20 20 20 20 20 | y.|Xc |
|00004130| 20 20 20 20 20 20 20 20 | 20 20 2a 2a 20 78 61 28 | | ** xa(|
|00004140| 6e 2a 6b 2b 6b 2b 31 29 | 20 20 6d 75 73 74 20 63 |n*k+k+1)| must c|
|00004150| 6f 6e 74 61 69 6e 20 64 | 65 6c 74 61 20 78 20 76 |ontain d|elta x v|
|00004160| 61 6c 75 65 20 28 70 65 | 72 20 69 6e 63 68 29 0a |alue (pe|r inch).|
|00004170| 58 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |Xc | |
|00004180| 20 20 2a 2a 20 79 61 28 | 6e 2a 6b 2b 6b 2b 31 29 | ** ya(|n*k+k+1)|
|00004190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041a0| 20 20 20 20 20 79 0a 58 | 63 0a 58 20 20 20 20 20 | y.X|c.X |
|000041b0| 20 64 69 6d 65 6e 73 69 | 6f 6e 20 20 78 61 28 31 | dimensi|on xa(1|
|000041c0| 29 2c 79 61 28 31 29 0a | 58 63 20 20 20 20 20 20 |),ya(1).|Xc |
|000041d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6e 73 3d | | ns=|
|000041e0| 20 63 6f 75 6e 74 20 74 | 6f 20 70 6c 6f 74 20 73 | count t|o plot s|
|000041f0| 79 6d 62 6f 6c 0a 58 63 | 20 20 20 20 20 20 20 20 |ymbol.Xc| |
|00004200| 20 20 20 20 20 20 20 20 | 20 20 20 69 6c 3d 20 66 | | il= f|
|00004210| 6c 61 67 20 74 6f 20 70 | 6c 6f 74 20 6c 69 6e 65 |lag to p|lot line|
|00004220| 0a 58 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.Xc | |
|00004230| 20 20 20 20 20 20 69 73 | 3d 20 66 6c 61 67 20 74 | is|= flag t|
|00004240| 6f 20 70 6c 6f 74 20 73 | 79 6d 62 6f 6c 0a 58 63 |o plot s|ymbol.Xc|
|00004250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004260| 20 20 6c 69 6d 3d 20 6c | 61 73 74 20 28 78 2c 79 | lim= l|ast (x,y|
|00004270| 29 20 70 6f 69 6e 74 20 | 74 6f 20 70 6c 6f 74 0a |) point |to plot.|
|00004280| 58 20 20 20 20 20 20 6e | 73 3d 20 69 61 62 73 28 |X n|s= iabs(|
|00004290| 6c 74 79 70 65 29 0a 58 | 20 20 20 20 20 20 69 6c |ltype).X| il|
|000042a0| 3d 20 30 0a 58 20 20 20 | 20 20 20 69 66 28 6c 74 |= 0.X | if(lt|
|000042b0| 79 70 65 2e 67 65 2e 30 | 29 20 20 69 6c 3d 31 0a |ype.ge.0|) il=1.|
|000042c0| 58 20 20 20 20 20 20 69 | 73 3d 20 31 0a 58 20 20 |X i|s= 1.X |
|000042d0| 20 20 20 20 69 66 28 6c | 74 79 70 65 2e 65 71 2e | if(l|type.eq.|
|000042e0| 30 29 20 20 69 73 3d 30 | 0a 58 20 20 20 20 20 20 |0) is=0|.X |
|000042f0| 6c 69 6d 3d 20 20 6e 2a | 6b 0a 58 20 20 20 20 20 |lim= n*|k.X |
|00004300| 20 78 6d 69 6e 3d 20 20 | 78 61 28 6c 69 6d 2b 31 | xmin= |xa(lim+1|
|00004310| 29 0a 58 20 20 20 20 20 | 20 79 6d 69 6e 3d 20 20 |).X | ymin= |
|00004320| 79 61 28 6c 69 6d 2b 31 | 29 0a 58 20 20 20 20 20 |ya(lim+1|).X |
|00004330| 20 78 69 6e 63 3d 20 20 | 78 61 28 6c 69 6d 2b 6b | xinc= |xa(lim+k|
|00004340| 2b 31 29 0a 58 20 20 20 | 20 20 20 79 69 6e 63 3d |+1).X | yinc=|
|00004350| 20 20 79 61 28 6c 69 6d | 2b 6b 2b 31 29 0a 58 63 | ya(lim|+k+1).Xc|
|00004360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004380| 20 20 70 65 6e 20 75 70 | 20 74 6f 20 31 73 74 20 | pen up| to 1st |
|00004390| 70 6f 69 6e 74 0a 58 20 | 20 20 20 20 20 78 20 3d |point.X | x =|
|000043a0| 20 20 28 78 61 28 31 29 | 2d 78 6d 69 6e 29 20 2f | (xa(1)|-xmin) /|
|000043b0| 20 78 69 6e 63 0a 58 20 | 20 20 20 20 20 79 20 3d | xinc.X | y =|
|000043c0| 20 20 28 79 61 28 31 29 | 2d 79 6d 69 6e 29 20 2f | (ya(1)|-ymin) /|
|000043d0| 20 79 69 6e 63 0a 58 20 | 20 20 20 20 20 63 61 6c | yinc.X | cal|
|000043e0| 6c 20 20 70 6c 6f 74 20 | 28 78 2c 79 2c 20 33 29 |l plot |(x,y, 3)|
|000043f0| 0a 58 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.Xc | |
|00004400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004410| 70 6c 6f 74 20 61 72 72 | 61 79 20 6f 66 20 28 78 |plot arr|ay of (x|
|00004420| 2c 79 29 20 63 6f 6f 72 | 64 2e 20 70 6f 69 6e 74 |,y) coor|d. point|
|00004430| 73 0a 58 20 20 20 20 20 | 20 69 66 20 28 69 6c 2e |s.X | if (il.|
|00004440| 65 71 2e 30 29 20 67 6f | 20 74 6f 20 32 30 0a 58 |eq.0) go| to 20.X|
|00004450| 20 20 20 20 20 20 64 6f | 20 31 30 20 69 20 3d 20 | do| 10 i = |
|00004460| 31 2c 6c 69 6d 2c 6b 0a | 58 20 20 20 20 20 20 20 |1,lim,k.|X |
|00004470| 78 3d 20 28 78 61 28 69 | 29 2d 78 6d 69 6e 29 2f |x= (xa(i|)-xmin)/|
|00004480| 20 78 69 6e 63 0a 58 20 | 20 20 20 20 20 20 79 3d | xinc.X | y=|
|00004490| 20 28 79 61 28 69 29 2d | 79 6d 69 6e 29 2f 20 79 | (ya(i)-|ymin)/ y|
|000044a0| 69 6e 63 0a 58 63 20 20 | 20 20 20 20 20 20 20 20 |inc.Xc | |
|000044b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 6c 6f | | plo|
|000044d0| 74 20 6c 69 6e 65 0a 58 | 20 20 20 20 20 20 20 63 |t line.X| c|
|000044e0| 61 6c 6c 20 20 70 6c 6f | 74 20 28 78 2c 79 2c 32 |all plo|t (x,y,2|
|000044f0| 29 0a 58 20 20 20 31 30 | 20 63 6f 6e 74 69 6e 75 |).X 10| continu|
|00004500| 65 0a 58 63 0a 58 20 20 | 20 32 30 20 69 66 20 28 |e.Xc.X | 20 if (|
|00004510| 69 73 2e 65 71 2e 30 29 | 20 67 6f 20 74 6f 20 34 |is.eq.0)| go to 4|
|00004520| 30 0a 58 20 20 20 20 20 | 20 6a 3d 31 0a 58 20 20 |0.X | j=1.X |
|00004530| 20 20 20 20 64 6f 20 33 | 30 20 69 20 3d 20 31 2c | do 3|0 i = 1,|
|00004540| 6c 69 6d 2c 6b 0a 58 20 | 20 20 20 20 20 20 6a 3d |lim,k.X | j=|
|00004550| 20 6a 2d 31 0a 58 20 20 | 20 20 20 20 69 66 20 28 | j-1.X | if (|
|00004560| 6a 2e 67 74 2e 30 29 20 | 67 6f 20 74 6f 20 33 30 |j.gt.0) |go to 30|
|00004570| 0a 58 20 20 20 20 20 20 | 20 6a 3d 20 6e 73 0a 58 |.X | j= ns.X|
|00004580| 20 20 20 20 20 20 20 78 | 3d 20 28 78 61 28 69 29 | x|= (xa(i)|
|00004590| 2d 78 6d 69 6e 29 2f 20 | 78 69 6e 63 0a 58 20 20 |-xmin)/ |xinc.X |
|000045a0| 20 20 20 20 20 79 3d 20 | 28 79 61 28 69 29 2d 79 | y= |(ya(i)-y|
|000045b0| 6d 69 6e 29 2f 20 79 69 | 6e 63 0a 58 63 20 20 20 |min)/ yi|nc.Xc |
|000045c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045e0| 20 20 20 20 70 6c 6f 74 | 20 20 73 79 6d 62 6f 6c | plot| symbol|
|000045f0| 0a 58 20 20 20 20 20 20 | 20 63 61 6c 6c 20 20 73 |.X | call s|
|00004600| 79 6d 62 6f 6c 20 28 78 | 2c 79 2c 2e 30 38 20 2c |ymbol (x|,y,.08 ,|
|00004610| 69 6e 75 6d 2c 30 2e 30 | 2c 20 2d 31 29 0a 58 20 |inum,0.0|, -1).X |
|00004620| 20 20 33 30 20 63 6f 6e | 74 69 6e 75 65 0a 58 20 | 30 con|tinue.X |
|00004630| 20 20 34 30 20 72 65 74 | 75 72 6e 0a 58 20 20 20 | 40 ret|urn.X |
|00004640| 20 20 20 65 6e 64 0a 53 | 48 41 52 5f 45 4f 46 0a | end.S|HAR_EOF.|
|00004650| 69 66 20 74 65 73 74 20 | 31 35 32 30 20 2d 6e 65 |if test |1520 -ne|
|00004660| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 6c 69 6e 65 | "`wc -c| < 'line|
|00004670| 2e 66 27 60 22 0a 74 68 | 65 6e 0a 20 65 63 68 6f |.f'`".th|en. echo|
|00004680| 20 73 68 61 72 3a 20 65 | 72 72 6f 72 20 74 72 61 | shar: e|rror tra|
|00004690| 6e 73 6d 69 74 74 69 6e | 67 20 22 27 6c 69 6e 65 |nsmittin|g "'line|
|000046a0| 2e 66 27 22 20 27 28 73 | 68 6f 75 6c 64 20 68 61 |.f'" '(s|hould ha|
|000046b0| 76 65 20 62 65 65 6e 20 | 31 35 32 30 20 63 68 61 |ve been |1520 cha|
|000046c0| 72 61 63 74 65 72 73 29 | 27 0a 66 69 0a 66 69 20 |racters)|'.fi.fi |
|000046d0| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|000046e0| 74 69 6e 67 20 63 68 65 | 63 6b 0a 65 63 68 6f 20 |ting che|ck.echo |
|000046f0| 73 68 61 72 3a 20 65 78 | 74 72 61 63 74 69 6e 67 |shar: ex|tracting|
|00004700| 20 22 27 6e 65 77 70 65 | 6e 2e 66 27 22 20 27 28 | "'newpe|n.f'" '(|
|00004710| 35 30 39 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |509 char|acters)'|
|00004720| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 6e 65 77 |.if test| -f 'new|
|00004730| 70 65 6e 2e 66 27 0a 74 | 68 65 6e 0a 20 65 63 68 |pen.f'.t|hen. ech|
|00004740| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00004750| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00004760| 74 69 6e 67 20 66 69 6c | 65 20 22 27 6e 65 77 70 |ting fil|e "'newp|
|00004770| 65 6e 2e 66 27 22 0a 65 | 6c 73 65 0a 73 65 64 20 |en.f'".e|lse.sed |
|00004780| 27 73 2f 5e 58 2f 2f 27 | 20 3c 3c 20 5c 53 48 41 |'s/^X//'| << \SHA|
|00004790| 52 5f 45 4f 46 20 3e 20 | 27 6e 65 77 70 65 6e 2e |R_EOF > |'newpen.|
|000047a0| 66 27 0a 58 09 73 75 62 | 72 6f 75 74 69 6e 65 20 |f'.X.sub|routine |
|000047b0| 6e 65 77 70 65 6e 20 28 | 69 70 65 6e 29 0a 58 09 |newpen (|ipen).X.|
|000047c0| 69 6e 74 65 67 65 72 20 | 20 20 20 20 20 20 20 20 |integer | |
|000047d0| 20 20 20 69 70 65 6e 0a | 58 43 0a 58 43 20 20 53 | ipen.|XC.XC S|
|000047e0| 65 6c 65 63 74 73 20 6e | 65 77 20 70 65 6e 20 61 |elects n|ew pen a|
|000047f0| 73 20 69 6e 64 69 63 61 | 74 65 64 20 62 79 20 69 |s indica|ted by i|
|00004800| 70 65 6e 0a 58 43 20 20 | 57 68 65 72 65 3a 0a 58 |pen.XC |Where:.X|
|00004810| 43 09 69 70 65 6e 20 3d | 20 31 2e 2e 6e 20 69 6e |C.ipen =| 1..n in|
|00004820| 64 69 63 61 74 69 6e 67 | 20 70 65 6e 20 31 20 2d |dicating| pen 1 -|
|00004830| 20 6e 0a 58 43 20 20 53 | 69 6d 75 6c 61 74 65 64 | n.XC S|imulated|
|00004840| 20 62 79 20 63 68 61 6e | 67 69 6e 67 20 6c 69 6e | by chan|ging lin|
|00004850| 65 20 77 69 64 74 68 20 | 66 6f 72 20 50 6f 73 74 |e width |for Post|
|00004860| 53 63 72 69 70 74 20 70 | 72 69 6e 74 65 72 73 0a |Script p|rinters.|
|00004870| 58 43 0a 58 0a 58 09 69 | 6e 74 65 67 65 72 20 6e |XC.X.X.i|nteger n|
|00004880| 70 65 6e 0a 58 09 69 6e | 74 65 67 65 72 20 75 73 |pen.X.in|teger us|
|00004890| 65 70 65 6e 0a 58 09 69 | 6e 74 65 67 65 72 20 73 |epen.X.i|nteger s|
|000048a0| 61 76 70 65 6e 0a 58 09 | 73 61 76 65 09 73 61 76 |avpen.X.|save.sav|
|000048b0| 70 65 6e 0a 58 09 64 61 | 74 61 09 73 61 76 70 65 |pen.X.da|ta.savpe|
|000048c0| 6e 20 2f 31 2f 0a 58 0a | 58 09 6e 70 65 6e 20 3d |n /1/.X.|X.npen =|
|000048d0| 20 6d 61 78 20 28 69 70 | 65 6e 2c 20 31 29 0a 58 | max (ip|en, 1).X|
|000048e0| 09 69 66 20 28 6e 70 65 | 6e 20 2e 6e 65 2e 20 73 |.if (npe|n .ne. s|
|000048f0| 61 76 70 65 6e 29 20 74 | 68 65 6e 0a 58 43 0a 58 |avpen) t|hen.XC.X|
|00004900| 43 09 57 61 6e 74 20 70 | 65 6e 20 77 69 64 74 68 |C.Want p|en width|
|00004910| 20 74 6f 20 62 65 20 6f | 64 64 20 6e 75 6d 62 65 | to be o|dd numbe|
|00004920| 72 20 6f 66 20 70 69 78 | 65 6c 73 20 77 69 64 65 |r of pix|els wide|
|00004930| 0a 58 43 0a 58 09 20 20 | 20 20 75 73 65 70 65 6e |.XC.X. | usepen|
|00004940| 20 3d 20 28 28 6e 70 65 | 6e 20 2d 31 29 20 2a 20 | = ((npe|n -1) * |
|00004950| 32 29 20 2b 20 31 0a 58 | 09 20 20 20 20 63 61 6c |2) + 1.X|. cal|
|00004960| 6c 20 70 6c 69 6f 75 74 | 20 28 75 73 65 70 65 6e |l pliout| (usepen|
|00004970| 29 0a 58 09 20 20 20 20 | 63 61 6c 6c 20 70 6c 73 |).X. |call pls|
|00004980| 6f 75 74 20 28 22 20 57 | 5c 6e 22 29 0a 58 0a 58 |out (" W|\n").X.X|
|00004990| 09 20 20 20 20 73 61 76 | 70 65 6e 20 3d 20 6e 70 |. sav|pen = np|
|000049a0| 65 6e 0a 58 09 65 6e 64 | 20 69 66 0a 58 0a 58 09 |en.X.end| if.X.X.|
|000049b0| 72 65 74 75 72 6e 0a 58 | 09 65 6e 64 0a 53 48 41 |return.X|.end.SHA|
|000049c0| 52 5f 45 4f 46 0a 69 66 | 20 74 65 73 74 20 35 30 |R_EOF.if| test 50|
|000049d0| 39 20 2d 6e 65 20 22 60 | 77 63 20 2d 63 20 3c 20 |9 -ne "`|wc -c < |
|000049e0| 27 6e 65 77 70 65 6e 2e | 66 27 60 22 0a 74 68 65 |'newpen.|f'`".the|
|000049f0| 6e 0a 20 65 63 68 6f 20 | 73 68 61 72 3a 20 65 72 |n. echo |shar: er|
|00004a00| 72 6f 72 20 74 72 61 6e | 73 6d 69 74 74 69 6e 67 |ror tran|smitting|
|00004a10| 20 22 27 6e 65 77 70 65 | 6e 2e 66 27 22 20 27 28 | "'newpe|n.f'" '(|
|00004a20| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e |should h|ave been|
|00004a30| 20 35 30 39 20 63 68 61 | 72 61 63 74 65 72 73 29 | 509 cha|racters)|
|00004a40| 27 0a 66 69 0a 66 69 20 | 23 20 65 6e 64 20 6f 66 |'.fi.fi |# end of|
|00004a50| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00004a60| 63 6b 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |ck.echo |shar: ex|
|00004a70| 74 72 61 63 74 69 6e 67 | 20 22 27 6e 75 6d 62 65 |tracting| "'numbe|
|00004a80| 72 2e 66 27 22 20 27 28 | 31 34 36 39 20 63 68 61 |r.f'" '(|1469 cha|
|00004a90| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00004aa0| 74 20 2d 66 20 27 6e 75 | 6d 62 65 72 2e 66 27 0a |t -f 'nu|mber.f'.|
|00004ab0| 74 68 65 6e 0a 20 65 63 | 68 6f 20 73 68 61 72 3a |then. ec|ho shar:|
|00004ac0| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00004ad0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00004ae0| 6c 65 20 22 27 6e 75 6d | 62 65 72 2e 66 27 22 0a |le "'num|ber.f'".|
|00004af0| 65 6c 73 65 0a 73 65 64 | 20 27 73 2f 5e 58 2f 2f |else.sed| 's/^X//|
|00004b00| 27 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |' << \SH|AR_EOF >|
|00004b10| 20 27 6e 75 6d 62 65 72 | 2e 66 27 0a 58 20 20 20 | 'number|.f'.X |
|00004b20| 20 20 20 73 75 62 72 6f | 75 74 69 6e 65 20 6e 75 | subro|utine nu|
|00004b30| 6d 62 65 72 20 28 78 70 | 61 67 65 2c 20 79 70 61 |mber (xp|age, ypa|
|00004b40| 67 65 2c 20 68 65 69 67 | 68 74 2c 20 66 70 6e 2c |ge, heig|ht, fpn,|
|00004b50| 20 61 6e 67 6c 65 2c 20 | 6e 64 65 63 29 0a 58 20 | angle, |ndec).X |
|00004b60| 20 20 20 20 20 72 65 61 | 6c 20 20 20 20 20 20 20 | rea|l |
|00004b70| 20 20 20 20 20 20 20 20 | 78 70 61 67 65 2c 20 79 | |xpage, y|
|00004b80| 70 61 67 65 2c 20 68 65 | 69 67 68 74 2c 20 66 70 |page, he|ight, fp|
|00004b90| 6e 2c 20 61 6e 67 6c 65 | 0a 58 20 20 20 20 20 20 |n, angle|.X |
|00004ba0| 69 6e 74 65 67 65 72 20 | 20 20 20 20 20 20 20 20 |integer | |
|00004bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004bd0| 20 20 20 20 20 6e 64 65 | 63 0a 58 43 0a 58 43 20 | nde|c.XC.XC |
|00004be0| 20 20 43 6f 6e 76 65 72 | 74 20 66 6c 6f 61 74 69 | Conver|t floati|
|00004bf0| 6e 67 20 70 6f 69 6e 74 | 20 6e 75 6d 62 65 72 20 |ng point| number |
|00004c00| 69 6e 74 6f 20 6e 75 6d | 62 65 72 73 20 6f 6e 20 |into num|bers on |
|00004c10| 67 72 61 70 68 0a 58 43 | 0a 58 43 20 20 20 4c 69 |graph.XC|.XC Li|
|00004c20| 6d 69 74 3a 20 66 31 39 | 2e 39 20 6d 61 78 69 6d |mit: f19|.9 maxim|
|00004c30| 75 6d 20 6e 75 6d 62 65 | 72 20 70 72 69 6e 74 61 |um numbe|r printa|
|00004c40| 62 6c 65 0a 58 43 09 49 | 66 20 74 68 69 73 20 6c |ble.XC.I|f this l|
|00004c50| 69 6d 69 74 20 69 73 20 | 72 61 69 73 65 64 2c 20 |imit is |raised, |
|00004c60| 73 74 72 69 6e 67 20 6c | 65 6e 67 74 68 73 20 61 |string l|engths a|
|00004c70| 6e 64 20 66 6f 72 6d 61 | 74 73 20 6d 75 73 74 20 |nd forma|ts must |
|00004c80| 62 65 20 63 68 61 6e 67 | 65 64 0a 58 43 0a 58 43 |be chang|ed.XC.XC|
|00004c90| 20 20 20 42 61 73 69 63 | 20 6d 65 74 68 6f 64 3a | Basic| method:|
|00004ca0| 20 20 62 75 69 6c 64 20 | 70 72 6f 70 65 72 20 73 | build |proper s|
|00004cb0| 74 72 69 6e 67 2c 20 68 | 61 6e 64 20 74 6f 20 73 |tring, h|and to s|
|00004cc0| 79 6d 62 6f 6c 0a 58 43 | 0a 58 43 20 20 20 52 65 |ymbol.XC|.XC Re|
|00004cd0| 78 20 53 61 6e 64 65 72 | 73 2c 20 55 53 47 53 2c |x Sander|s, USGS,|
|00004ce0| 20 33 2f 38 37 0a 58 43 | 0a 58 09 63 68 61 72 61 | 3/87.XC|.X.chara|
|00004cf0| 63 74 65 72 2a 31 39 20 | 66 6c 6f 61 74 73 0a 58 |cter*19 |floats.X|
|00004d00| 09 63 68 61 72 61 63 74 | 65 72 2a 20 37 20 66 6f |.charact|er* 7 fo|
|00004d10| 72 6d 74 73 0a 58 09 69 | 6e 74 65 67 65 72 20 20 |rmts.X.i|nteger |
|00004d20| 20 20 6d 61 78 6e 70 6c | 2c 20 20 20 20 20 6d 61 | maxnpl|, ma|
|00004d30| 78 6e 70 72 0a 58 09 70 | 61 72 61 6d 65 74 65 72 |xnpr.X.p|arameter|
|00004d40| 20 28 6d 61 78 6e 70 6c | 20 3d 20 39 2c 20 6d 61 | (maxnpl| = 9, ma|
|00004d50| 78 6e 70 72 20 3d 20 39 | 29 0a 58 0a 58 09 72 65 |xnpr = 9|).X.X.re|
|00004d60| 61 6c 09 61 66 70 6e 0a | 58 09 69 6e 74 65 67 65 |al.afpn.|X.intege|
|00004d70| 72 09 6e 70 6c 2c 20 6e | 70 72 2c 20 6e 63 68 61 |r.npl, n|pr, ncha|
|00004d80| 72 2c 20 6e 74 72 75 6e | 63 2c 20 69 6e 75 6d 0a |r, ntrun|c, inum.|
|00004d90| 58 0a 58 09 61 66 70 6e | 09 3d 20 61 62 73 20 28 |X.X.afpn|.= abs (|
|00004da0| 66 70 6e 29 0a 58 43 0a | 58 43 20 20 20 46 69 72 |fpn).XC.|XC Fir|
|00004db0| 73 74 20 63 75 74 20 6f | 6e 20 23 20 70 6c 61 63 |st cut o|n # plac|
|00004dc0| 65 73 20 6c 65 66 74 20 | 6f 66 20 64 65 63 69 6d |es left |of decim|
|00004dd0| 61 6c 20 70 6f 69 6e 74 | 0a 58 43 0a 58 09 69 66 |al point|.XC.X.if|
|00004de0| 20 20 20 20 20 20 28 66 | 70 6e 20 2e 65 71 2e 20 | (f|pn .eq. |
|00004df0| 30 29 20 74 68 65 6e 0a | 58 09 20 20 20 20 6e 70 |0) then.|X. np|
|00004e00| 6c 20 3d 20 31 0a 58 09 | 65 6c 73 65 20 69 66 20 |l = 1.X.|else if |
|00004e10| 28 66 70 6e 20 2e 67 74 | 2e 20 30 29 20 74 68 65 |(fpn .gt|. 0) the|
|00004e20| 6e 0a 58 09 20 20 20 20 | 6e 70 6c 20 3d 20 6d 61 |n.X. |npl = ma|
|00004e30| 78 20 28 69 6e 74 20 28 | 6c 6f 67 31 30 20 28 66 |x (int (|log10 (f|
|00004e40| 70 6e 29 29 2c 20 30 29 | 20 20 2b 20 31 0a 58 09 |pn)), 0)| + 1.X.|
|00004e50| 65 6c 73 65 20 69 66 20 | 28 66 70 6e 20 2e 6c 74 |else if |(fpn .lt|
|00004e60| 2e 20 30 29 20 74 68 65 | 6e 0a 58 09 20 20 20 20 |. 0) the|n.X. |
|00004e70| 6e 70 6c 20 3d 20 6d 61 | 78 20 28 69 6e 74 20 28 |npl = ma|x (int (|
|00004e80| 6c 6f 67 31 30 20 28 61 | 66 70 6e 29 29 2c 20 30 |log10 (a|fpn)), 0|
|00004e90| 29 20 2b 20 32 0a 58 09 | 65 6e 64 69 66 0a 58 43 |) + 2.X.|endif.XC|
|00004ea0| 0a 58 43 20 20 20 47 75 | 61 72 61 6e 74 65 65 64 |.XC Gu|aranteed|
|00004eb0| 20 61 20 64 65 63 69 6d | 61 6c 20 70 6f 69 6e 74 | a decim|al point|
|00004ec0| 0a 58 43 0a 58 09 69 66 | 20 28 6e 64 65 63 20 2e |.XC.X.if| (ndec .|
|00004ed0| 67 65 2e 20 30 29 20 74 | 68 65 6e 0a 58 09 20 20 |ge. 0) t|hen.X. |
|00004ee0| 20 20 6e 70 6c 20 3d 20 | 6d 69 6e 20 28 6e 70 6c | npl = |min (npl|
|00004ef0| 2c 20 20 6d 61 78 6e 70 | 6c 29 0a 58 09 20 20 20 |, maxnp|l).X. |
|00004f00| 20 6e 70 72 20 3d 20 6d | 69 6e 20 28 6e 64 65 63 | npr = m|in (ndec|
|00004f10| 2c 20 6d 61 78 6e 70 72 | 29 0a 58 09 20 20 20 20 |, maxnpr|).X. |
|00004f20| 6e 63 68 61 72 20 3d 20 | 6e 70 6c 20 2b 20 6e 70 |nchar = |npl + np|
|00004f30| 72 20 2b 20 31 0a 58 09 | 20 20 20 20 77 72 69 74 |r + 1.X.| writ|
|00004f40| 65 28 66 6f 72 6d 74 73 | 2c 20 31 30 31 29 20 6e |e(formts|, 101) n|
|00004f50| 63 68 61 72 2c 20 6e 70 | 72 0a 58 31 30 31 09 20 |char, np|r.X101. |
|00004f60| 20 20 20 66 6f 72 6d 61 | 74 28 27 28 66 27 2c 20 | forma|t('(f', |
|00004f70| 69 32 2c 20 27 2e 27 2c | 20 69 31 2c 20 27 29 27 |i2, '.',| i1, ')'|
|00004f80| 29 0a 58 09 20 20 20 20 | 77 72 69 74 65 28 66 6c |).X. |write(fl|
|00004f90| 6f 61 74 73 2c 20 66 6f | 72 6d 74 73 29 20 66 70 |oats, fo|rmts) fp|
|00004fa0| 6e 0a 58 43 0a 58 43 20 | 20 20 4e 6f 20 64 65 63 |n.XC.XC | No dec|
|00004fb0| 69 6d 61 6c 20 70 6f 69 | 6e 74 2c 20 77 72 69 74 |imal poi|nt, writ|
|00004fc0| 65 20 61 73 20 69 6e 74 | 65 67 65 72 0a 58 43 0a |e as int|eger.XC.|
|00004fd0| 58 09 65 6c 73 65 0a 58 | 09 20 20 20 20 6e 74 72 |X.else.X|. ntr|
|00004fe0| 75 6e 63 20 3d 20 61 62 | 73 20 28 6e 64 65 63 29 |unc = ab|s (ndec)|
|00004ff0| 20 2d 20 31 0a 58 09 20 | 20 20 20 6e 70 6c 20 3d | - 1.X. | npl =|
|00005000| 20 6d 61 78 20 28 6d 69 | 6e 20 28 6e 70 6c 20 2d | max (mi|n (npl -|
|00005010| 20 6e 74 72 75 6e 63 2c | 20 6d 61 78 6e 70 6c 29 | ntrunc,| maxnpl)|
|00005020| 2c 20 31 29 0a 58 09 20 | 20 20 20 77 72 69 74 65 |, 1).X. | write|
|00005030| 28 66 6f 72 6d 74 73 2c | 20 31 30 32 29 20 6e 70 |(formts,| 102) np|
|00005040| 6c 0a 58 31 30 32 09 20 | 20 20 20 66 6f 72 6d 61 |l.X102. | forma|
|00005050| 74 28 27 28 69 27 2c 20 | 69 31 2c 20 27 29 27 29 |t('(i', |i1, ')')|
|00005060| 0a 58 09 20 20 20 20 0a | 58 09 20 20 20 20 69 6e |.X. .|X. in|
|00005070| 75 6d 20 3d 20 6e 69 6e | 74 28 66 70 6e 2f 28 31 |um = nin|t(fpn/(1|
|00005080| 30 2a 2a 6e 74 72 75 6e | 63 29 29 0a 58 09 20 20 |0**ntrun|c)).X. |
|00005090| 20 20 77 72 69 74 65 28 | 66 6c 6f 61 74 73 2c 20 | write(|floats, |
|000050a0| 66 6f 72 6d 74 73 29 20 | 69 6e 75 6d 0a 58 09 20 |formts) |inum.X. |
|000050b0| 20 20 20 6e 63 68 61 72 | 20 3d 20 6e 70 6c 0a 58 | nchar| = npl.X|
|000050c0| 09 65 6e 64 69 66 0a 58 | 0a 58 09 63 61 6c 6c 20 |.endif.X|.X.call |
|000050d0| 73 79 6d 62 6f 6c 20 28 | 78 70 61 67 65 2c 20 79 |symbol (|xpage, y|
|000050e0| 70 61 67 65 2c 20 68 65 | 69 67 68 74 2c 20 66 6c |page, he|ight, fl|
|000050f0| 6f 61 74 73 2c 20 61 6e | 67 6c 65 2c 20 6e 63 68 |oats, an|gle, nch|
|00005100| 61 72 29 0a 58 0a 58 09 | 72 65 74 75 72 6e 0a 58 |ar).X.X.|return.X|
|00005110| 09 65 6e 64 0a 53 48 41 | 52 5f 45 4f 46 0a 69 66 |.end.SHA|R_EOF.if|
|00005120| 20 74 65 73 74 20 31 34 | 36 39 20 2d 6e 65 20 22 | test 14|69 -ne "|
|00005130| 60 77 63 20 2d 63 20 3c | 20 27 6e 75 6d 62 65 72 |`wc -c <| 'number|
|00005140| 2e 66 27 60 22 0a 74 68 | 65 6e 0a 20 65 63 68 6f |.f'`".th|en. echo|
|00005150| 20 73 68 61 72 3a 20 65 | 72 72 6f 72 20 74 72 61 | shar: e|rror tra|
|00005160| 6e 73 6d 69 74 74 69 6e | 67 20 22 27 6e 75 6d 62 |nsmittin|g "'numb|
|00005170| 65 72 2e 66 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |er.f'" '|(should |
|00005180| 68 61 76 65 20 62 65 65 | 6e 20 31 34 36 39 20 63 |have bee|n 1469 c|
|00005190| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 66 |haracter|s)'.fi.f|
|000051a0| 69 20 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i # end |of overw|
|000051b0| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 65 63 68 |riting c|heck.ech|
|000051c0| 6f 20 73 68 61 72 3a 20 | 65 78 74 72 61 63 74 69 |o shar: |extracti|
|000051d0| 6e 67 20 22 27 70 66 6c | 65 63 6b 2e 66 27 22 20 |ng "'pfl|eck.f'" |
|000051e0| 27 28 39 36 39 20 63 68 | 61 72 61 63 74 65 72 73 |'(969 ch|aracters|
|000051f0| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 70 |)'.if te|st -f 'p|
|00005200| 66 6c 65 63 6b 2e 66 27 | 0a 74 68 65 6e 0a 20 65 |fleck.f'|.then. e|
|00005210| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|00005220| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00005230| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 70 66 |isting f|ile "'pf|
|00005240| 6c 65 63 6b 2e 66 27 22 | 0a 65 6c 73 65 0a 73 65 |leck.f'"|.else.se|
|00005250| 64 20 27 73 2f 5e 58 2f | 2f 27 20 3c 3c 20 5c 53 |d 's/^X/|/' << \S|
|00005260| 48 41 52 5f 45 4f 46 20 | 3e 20 27 70 66 6c 65 63 |HAR_EOF |> 'pflec|
|00005270| 6b 2e 66 27 0a 58 09 73 | 75 62 72 6f 75 74 69 6e |k.f'.X.s|ubroutin|
|00005280| 65 20 70 66 6c 65 63 6b | 20 28 6c 73 74 6f 70 29 |e pfleck| (lstop)|
|00005290| 0a 58 63 20 2a 2a 2a 20 | 53 75 62 72 6f 75 74 69 |.Xc *** |Subrouti|
|000052a0| 6e 65 20 74 6f 20 73 65 | 65 20 69 66 20 66 69 6c |ne to se|e if fil|
|000052b0| 65 20 22 70 73 5f 70 6c | 6f 74 22 20 65 78 69 73 |e "ps_pl|ot" exis|
|000052c0| 74 73 0a 58 63 20 2d 2d | 2d 2d 20 52 65 74 75 72 |ts.Xc --|-- Retur|
|000052d0| 6e 73 20 74 72 75 65 20 | 69 66 20 66 69 6c 65 20 |ns true |if file |
|000052e0| 65 78 69 73 74 73 20 61 | 6e 64 20 75 73 65 72 20 |exists a|nd user |
|000052f0| 64 6f 65 73 20 6e 6f 74 | 20 77 61 6e 74 20 74 6f |does not| want to|
|00005300| 0a 58 63 20 2d 2d 2d 2d | 20 20 6f 76 65 72 77 72 |.Xc ----| overwr|
|00005310| 69 74 65 20 69 74 2c 0a | 58 63 20 2d 2d 2d 2d 20 |ite it,.|Xc ---- |
|00005320| 65 6c 73 65 20 72 65 74 | 75 72 6e 73 20 66 61 6c |else ret|urns fal|
|00005330| 73 65 2e 20 2d 2d 2d 2d | 0a 58 0a 58 63 20 2d 2d |se. ----|.X.Xc --|
|00005340| 2d 2d 20 47 72 61 69 67 | 20 4d 63 48 65 6e 64 72 |-- Graig| McHendr|
|00005350| 69 65 2c 20 55 53 47 53 | 2c 20 4a 75 6e 65 20 36 |ie, USGS|, June 6|
|00005360| 2c 20 31 39 38 34 20 2d | 20 6f 72 69 67 69 6e 61 |, 1984 -| origina|
|00005370| 6c 20 66 6f 72 20 48 6f | 75 73 74 6f 6e 20 70 6c |l for Ho|uston pl|
|00005380| 6f 74 74 65 72 0a 58 63 | 20 2d 2d 2d 2d 20 52 65 |otter.Xc| ---- Re|
|00005390| 78 20 53 61 6e 64 65 72 | 73 2c 20 55 53 47 53 2c |x Sander|s, USGS,|
|000053a0| 20 46 65 62 72 75 61 72 | 79 20 31 39 38 37 20 2d | Februar|y 1987 -|
|000053b0| 20 6d 6f 64 69 66 69 65 | 64 20 66 6f 72 20 50 6f | modifie|d for Po|
|000053c0| 73 74 53 63 72 69 70 74 | 20 70 72 69 6e 74 65 72 |stScript| printer|
|000053d0| 73 0a 58 0a 58 09 6c 6f | 67 69 63 61 6c 20 6c 73 |s.X.X.lo|gical ls|
|000053e0| 74 6f 70 0a 58 0a 58 09 | 65 78 74 65 72 6e 61 6c |top.X.X.|external|
|000053f0| 20 73 79 73 74 65 6d 2c | 67 65 74 79 6e 61 0a 58 | system,|getyna.X|
|00005400| 09 6c 6f 67 69 63 61 6c | 20 73 79 73 74 65 6d 0a |.logical| system.|
|00005410| 58 09 6c 6f 67 69 63 61 | 6c 20 6c 61 6e 73 0a 58 |X.logica|l lans.X|
|00005420| 09 63 68 61 72 61 63 74 | 65 72 20 70 66 6c 65 6e |.charact|er pflen|
|00005430| 6d 2a 38 0a 58 0a 58 63 | 20 2d 2d 2d 2d 20 53 65 |m*8.X.Xc| ---- Se|
|00005440| 74 20 6e 61 6d 65 20 6f | 66 20 66 69 6c 65 20 74 |t name o|f file t|
|00005450| 6f 20 62 65 20 63 68 65 | 63 6b 65 64 2e 20 2d 2d |o be che|cked. --|
|00005460| 2d 2d 0a 58 09 70 66 6c | 65 6e 6d 20 3d 20 27 70 |--.X.pfl|enm = 'p|
|00005470| 73 5f 70 6c 6f 74 27 0a | 58 0a 58 63 20 2d 2d 2d |s_plot'.|X.Xc ---|
|00005480| 2d 20 49 66 20 66 69 6c | 65 20 64 6f 65 73 6e 27 |- If fil|e doesn'|
|00005490| 74 20 65 78 69 73 74 2c | 20 72 65 74 75 72 6e 20 |t exist,| return |
|000054a0| 66 61 6c 73 65 2e 20 2d | 2d 2d 2d 0a 58 09 69 66 |false. -|---.X.if|
|000054b0| 20 28 73 79 73 74 65 6d | 20 28 27 74 65 73 74 20 | (system| ('test |
|000054c0| 2d 73 20 27 20 2f 2f 20 | 70 66 6c 65 6e 6d 29 29 |-s ' // |pflenm))|
|000054d0| 20 74 68 65 6e 0a 58 09 | 20 20 6c 73 74 6f 70 20 | then.X.| lstop |
|000054e0| 3d 20 2e 66 61 6c 73 65 | 2e 0a 58 0a 58 63 20 2d |= .false|..X.Xc -|
|000054f0| 2d 2d 2d 20 49 66 20 66 | 69 6c 65 20 64 6f 65 73 |--- If f|ile does|
|00005500| 20 65 78 69 73 74 2c 20 | 73 65 65 20 69 66 20 75 | exist, |see if u|
|00005510| 73 65 72 20 77 61 6e 74 | 73 20 74 6f 20 63 6f 6e |ser want|s to con|
|00005520| 74 69 6e 75 65 20 61 6e | 79 77 61 79 2e 20 2d 2d |tinue an|yway. --|
|00005530| 2d 2d 0a 58 09 65 6c 73 | 65 0a 58 09 20 20 77 72 |--.X.els|e.X. wr|
|00005540| 69 74 65 28 2a 2c 31 30 | 30 29 20 70 66 6c 65 6e |ite(*,10|0) pflen|
|00005550| 6d 0a 58 31 30 30 09 20 | 20 66 6f 72 6d 61 74 28 |m.X100. | format(|
|00005560| 27 46 69 6c 65 20 27 27 | 27 2c 20 61 2c 20 27 27 |'File ''|', a, ''|
|00005570| 27 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |' alread|y exists|
|00005580| 2e 27 2c 0a 58 20 20 20 | 20 20 26 20 20 20 20 27 |.',.X | & '|
|00005590| 20 20 20 43 6f 6e 74 69 | 6e 75 69 6e 67 20 77 69 | Conti|nuing wi|
|000055a0| 6c 6c 20 64 65 73 74 72 | 6f 79 20 69 74 2e 27 2f |ll destr|oy it.'/|
|000055b0| 0a 58 20 20 20 20 20 26 | 20 20 20 20 27 20 20 44 |.X &| ' D|
|000055c0| 6f 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 63 6f |o you wa|nt to co|
|000055d0| 6e 74 69 6e 75 65 20 20 | 28 79 2f 6e 29 20 20 3f |ntinue |(y/n) ?|
|000055e0| 27 24 29 0a 58 09 20 20 | 63 61 6c 6c 20 67 65 74 |'$).X. |call get|
|000055f0| 79 6e 61 28 6c 61 6e 73 | 29 0a 58 63 20 2d 2d 2d |yna(lans|).Xc ---|
|00005600| 2d 20 52 65 74 75 72 6e | 20 66 61 6c 73 65 20 69 |- Return| false i|
|00005610| 66 20 61 6e 73 77 65 72 | 65 64 20 79 65 73 2c 20 |f answer|ed yes, |
|00005620| 74 72 75 65 20 69 66 20 | 6e 6f 2e 20 2d 2d 2d 2d |true if |no. ----|
|00005630| 0a 58 09 20 20 6c 73 74 | 6f 70 20 3d 20 2e 6e 6f |.X. lst|op = .no|
|00005640| 74 2e 20 6c 61 6e 73 0a | 58 09 65 6e 64 20 69 66 |t. lans.|X.end if|
|00005650| 0a 58 09 72 65 74 75 72 | 6e 0a 58 09 65 6e 64 0a |.X.retur|n.X.end.|
|00005660| 53 48 41 52 5f 45 4f 46 | 0a 65 63 68 6f 20 73 68 |SHAR_EOF|.echo sh|
|00005670| 61 72 3a 20 31 20 63 6f | 6e 74 72 6f 6c 20 63 68 |ar: 1 co|ntrol ch|
|00005680| 61 72 61 63 74 65 72 20 | 6d 61 79 20 62 65 20 6d |aracter |may be m|
|00005690| 69 73 73 69 6e 67 20 66 | 72 6f 6d 20 22 27 70 66 |issing f|rom "'pf|
|000056a0| 6c 65 63 6b 2e 66 27 22 | 0a 69 66 20 74 65 73 74 |leck.f'"|.if test|
|000056b0| 20 39 36 39 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 | 969 -ne| "`wc -c|
|000056c0| 20 3c 20 27 70 66 6c 65 | 63 6b 2e 66 27 60 22 0a | < 'pfle|ck.f'`".|
|000056d0| 74 68 65 6e 0a 20 65 63 | 68 6f 20 73 68 61 72 3a |then. ec|ho shar:|
|000056e0| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|000056f0| 69 6e 67 20 22 27 70 66 | 6c 65 63 6b 2e 66 27 22 |ing "'pf|leck.f'"|
|00005700| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|00005710| 65 65 6e 20 39 36 39 20 | 63 68 61 72 61 63 74 65 |een 969 |characte|
|00005720| 72 73 29 27 0a 66 69 0a | 66 69 20 23 20 65 6e 64 |rs)'.fi.|fi # end|
|00005730| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00005740| 63 68 65 63 6b 0a 65 63 | 68 6f 20 73 68 61 72 3a |check.ec|ho shar:|
|00005750| 20 65 78 74 72 61 63 74 | 69 6e 67 20 22 27 70 66 | extract|ing "'pf|
|00005760| 6c 65 6d 76 2e 66 27 22 | 20 27 28 31 36 33 30 20 |lemv.f'"| '(1630 |
|00005770| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00005780| 74 65 73 74 20 2d 66 20 | 27 70 66 6c 65 6d 76 2e |test -f |'pflemv.|
|00005790| 66 27 0a 74 68 65 6e 0a | 20 65 63 68 6f 20 73 68 |f'.then.| echo sh|
|000057a0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|000057b0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000057c0| 20 66 69 6c 65 20 22 27 | 70 66 6c 65 6d 76 2e 66 | file "'|pflemv.f|
|000057d0| 27 22 0a 65 6c 73 65 0a | 73 65 64 20 27 73 2f 5e |'".else.|sed 's/^|
|000057e0| 58 2f 2f 27 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |X//' << |\SHAR_EO|
|000057f0| 46 20 3e 20 27 70 66 6c | 65 6d 76 2e 66 27 0a 58 |F > 'pfl|emv.f'.X|
|00005800| 09 73 75 62 72 6f 75 74 | 69 6e 65 20 70 66 6c 65 |.subrout|ine pfle|
|00005810| 6d 76 20 28 6e 65 77 66 | 6c 65 29 0a 58 63 20 2a |mv (newf|le).Xc *|
|00005820| 2a 2a 2a 20 53 75 62 72 | 6f 75 74 69 6e 65 20 74 |*** Subr|outine t|
|00005830| 6f 20 72 65 6e 61 6d 65 | 20 74 68 65 20 70 73 5f |o rename| the ps_|
|00005840| 70 6c 6f 74 20 66 69 6c | 65 2e 0a 58 63 20 2d 2d |plot fil|e..Xc --|
|00005850| 2d 2d 20 6e 65 77 66 69 | 6c 65 20 3d 20 6e 65 77 |-- newfi|le = new|
|00005860| 20 6e 61 6d 65 20 66 6f | 72 20 66 69 6c 65 2e 20 | name fo|r file. |
|00005870| 2d 2d 2d 2d 0a 58 0a 58 | 63 20 47 72 61 69 67 20 |----.X.X|c Graig |
|00005880| 4d 63 48 65 6e 64 72 69 | 65 2c 20 55 53 47 53 2c |McHendri|e, USGS,|
|00005890| 20 46 65 62 20 36 2c 20 | 31 39 38 35 20 2d 20 6f | Feb 6, |1985 - o|
|000058a0| 72 69 67 69 6e 61 6c 20 | 66 6f 72 20 48 6f 75 73 |riginal |for Hous|
|000058b0| 74 6f 6e 20 70 6c 6f 74 | 74 65 72 0a 58 63 20 52 |ton plot|ter.Xc R|
|000058c0| 65 78 20 53 61 6e 64 65 | 72 73 2c 20 55 53 47 53 |ex Sande|rs, USGS|
|000058d0| 2c 20 46 65 62 72 75 61 | 72 79 20 31 39 38 37 20 |, Februa|ry 1987 |
|000058e0| 2d 20 6d 6f 64 69 66 69 | 65 64 20 66 6f 72 20 50 |- modifi|ed for P|
|000058f0| 6f 73 74 53 63 72 69 70 | 74 20 70 72 69 6e 74 65 |ostScrip|t printe|
|00005900| 72 73 0a 58 0a 58 09 65 | 78 74 65 72 6e 61 6c 20 |rs.X.X.e|xternal |
|00005910| 73 79 73 74 65 6d 2c 67 | 65 74 79 6e 61 0a 58 09 |system,g|etyna.X.|
|00005920| 69 6e 74 65 67 65 72 20 | 73 79 73 74 65 6d 0a 58 |integer |system.X|
|00005930| 09 6c 6f 67 69 63 61 6c | 20 6c 61 6e 73 2c 6c 6d |.logical| lans,lm|
|00005940| 76 69 74 0a 58 09 63 68 | 61 72 61 63 74 65 72 20 |vit.X.ch|aracter |
|00005950| 6e 65 77 66 6c 65 2a 28 | 2a 29 2c 20 74 63 6d 64 |newfle*(|*), tcmd|
|00005960| 2a 34 38 2c 20 6d 63 6d | 64 2a 34 38 2c 20 67 70 |*48, mcm|d*48, gp|
|00005970| 69 66 2a 33 32 0a 58 20 | 20 20 20 20 20 20 20 63 |if*32.X | c|
|00005980| 68 61 72 61 63 74 65 72 | 2a 38 20 70 66 6c 65 6e |haracter|*8 pflen|
|00005990| 6d 0a 58 0a 58 20 20 20 | 20 20 20 20 20 70 66 6c |m.X.X | pfl|
|000059a0| 65 6e 6d 20 3d 20 27 70 | 73 5f 70 6c 6f 74 27 0a |enm = 'p|s_plot'.|
|000059b0| 58 0a 58 63 20 2d 2d 2d | 2d 20 42 75 69 6c 64 20 |X.Xc ---|- Build |
|000059c0| 63 6f 6d 6d 61 6e 64 73 | 20 66 6f 72 20 74 65 73 |commands| for tes|
|000059d0| 74 20 61 6e 64 20 6d 6f | 76 65 20 6f 70 65 72 61 |t and mo|ve opera|
|000059e0| 74 69 6f 6e 73 2e 20 2d | 2d 2d 2d 0a 58 09 74 63 |tions. -|---.X.tc|
|000059f0| 6d 64 20 3d 20 27 74 65 | 73 74 20 2d 73 20 27 20 |md = 'te|st -s ' |
|00005a00| 2f 2f 20 6e 65 77 66 6c | 65 0a 58 09 6d 63 6d 64 |// newfl|e.X.mcmd|
|00005a10| 20 3d 20 27 6d 76 20 27 | 20 2f 2f 20 70 66 6c 65 | = 'mv '| // pfle|
|00005a20| 6e 6d 20 2f 2f 20 6e 65 | 77 66 6c 65 0a 58 09 6c |nm // ne|wfle.X.l|
|00005a30| 6d 76 69 74 20 3d 20 2e | 66 61 6c 73 65 2e 0a 58 |mvit = .|false..X|
|00005a40| 0a 58 63 20 2d 2d 2d 2d | 20 50 65 72 66 6f 72 6d |.Xc ----| Perform|
|00005a50| 20 74 65 73 74 20 63 6f | 6d 6d 61 6e 64 20 6f 6e | test co|mmand on|
|00005a60| 20 6e 65 77 20 6e 61 6d | 65 2e 20 20 49 66 20 66 | new nam|e. If f|
|00005a70| 69 6c 65 20 64 6f 65 73 | 6e 27 74 20 65 78 69 73 |ile does|n't exis|
|00005a80| 74 2c 0a 58 63 20 2d 2d | 2d 2d 20 27 69 63 64 65 |t,.Xc --|-- 'icde|
|00005a90| 27 20 77 69 6c 6c 20 62 | 65 20 31 20 61 6e 64 20 |' will b|e 1 and |
|00005aa0| 69 74 20 69 73 20 6f 6b | 20 74 6f 20 72 65 6e 61 |it is ok| to rena|
|00005ab0| 6d 65 20 68 5f 70 6c 6f | 74 2e 0a 58 09 69 63 64 |me h_plo|t..X.icd|
|00005ac0| 65 20 3d 20 73 79 73 74 | 65 6d 20 28 74 63 6d 64 |e = syst|em (tcmd|
|00005ad0| 29 0a 58 09 69 66 20 28 | 69 63 64 65 20 2e 6e 65 |).X.if (|icde .ne|
|00005ae0| 2e 20 30 29 20 74 68 65 | 6e 0a 58 09 20 20 6c 6d |. 0) the|n.X. lm|
|00005af0| 76 69 74 20 3d 20 2e 74 | 72 75 65 2e 0a 58 63 20 |vit = .t|rue..Xc |
|00005b00| 2d 2d 2d 2d 20 46 69 6c | 65 20 61 6c 72 65 61 64 |---- Fil|e alread|
|00005b10| 79 20 65 78 69 73 74 73 | 2e 20 2d 2d 2d 2d 0a 58 |y exists|. ----.X|
|00005b20| 09 65 6c 73 65 0a 58 09 | 20 20 77 72 69 74 65 28 |.else.X.| write(|
|00005b30| 2a 2c 31 30 30 29 20 6e | 65 77 66 6c 65 2c 20 70 |*,100) n|ewfle, p|
|00005b40| 66 6c 65 6e 6d 0a 58 31 | 30 30 09 20 20 66 6f 72 |flenm.X1|00. for|
|00005b50| 6d 61 74 28 2f 27 20 27 | 2c 61 2c 20 27 20 61 6c |mat(/' '|,a, ' al|
|00005b60| 72 65 61 64 79 20 65 78 | 69 73 74 73 2e 27 2f 0a |ready ex|ists.'/.|
|00005b70| 58 20 20 20 20 20 26 27 | 20 52 65 6e 61 6d 69 6e |X &'| Renamin|
|00005b80| 67 20 27 27 27 2c 61 2c | 27 27 27 20 74 6f 20 74 |g ''',a,|''' to t|
|00005b90| 68 69 73 20 6e 61 6d 65 | 20 77 69 6c 6c 20 64 65 |his name| will de|
|00005ba0| 73 74 72 6f 79 20 74 68 | 65 20 6f 6c 64 20 76 65 |stroy th|e old ve|
|00005bb0| 72 73 69 6f 6e 2e 27 2f | 0a 58 20 20 20 20 20 26 |rsion.'/|.X &|
|00005bc0| 20 20 20 20 27 20 49 73 | 20 74 68 61 74 20 61 63 | ' Is| that ac|
|00005bd0| 63 65 70 74 61 62 6c 65 | 20 20 28 79 2f 6e 29 20 |ceptable| (y/n) |
|00005be0| 20 3f 27 24 29 0a 58 09 | 20 20 63 61 6c 6c 20 67 | ?'$).X.| call g|
|00005bf0| 65 74 79 6e 61 28 6c 61 | 6e 73 29 0a 58 63 20 2d |etyna(la|ns).Xc -|
|00005c00| 2d 2d 2d 20 46 69 6e 64 | 20 6f 75 74 20 69 66 20 |--- Find| out if |
|00005c10| 75 73 65 72 20 77 61 6e | 74 73 20 74 6f 20 6f 76 |user wan|ts to ov|
|00005c20| 65 72 77 72 69 74 65 20 | 74 68 65 20 65 78 69 73 |erwrite |the exis|
|00005c30| 74 69 6e 67 20 66 69 6c | 65 2e 20 2d 2d 2d 2d 0a |ting fil|e. ----.|
|00005c40| 58 09 20 20 69 66 20 28 | 6c 61 6e 73 29 20 74 68 |X. if (|lans) th|
|00005c50| 65 6e 0a 58 09 20 20 20 | 20 6c 6d 76 69 74 20 3d |en.X. | lmvit =|
|00005c60| 20 2e 74 72 75 65 2e 0a | 58 09 20 20 65 6c 73 65 | .true..|X. else|
|00005c70| 0a 58 09 20 20 20 20 67 | 70 69 66 20 3d 20 70 66 |.X. g|pif = pf|
|00005c80| 6c 65 6e 6d 0a 58 09 20 | 20 65 6e 64 20 69 66 0a |lenm.X. | end if.|
|00005c90| 58 09 65 6e 64 20 69 66 | 0a 58 09 0a 58 63 20 2d |X.end if|.X..Xc -|
|00005ca0| 2d 2d 2d 20 49 74 27 73 | 20 6f 6b 20 74 6f 20 72 |--- It's| ok to r|
|00005cb0| 65 6e 61 6d 65 20 68 5f | 70 6c 6f 74 20 74 6f 20 |ename h_|plot to |
|00005cc0| 6e 65 77 66 69 6c 65 2e | 20 2d 2d 2d 2d 0a 58 09 |newfile.| ----.X.|
|00005cd0| 69 66 20 28 6c 6d 76 69 | 74 29 20 74 68 65 6e 0a |if (lmvi|t) then.|
|00005ce0| 58 09 20 20 69 63 64 65 | 20 3d 20 73 79 73 74 65 |X. icde| = syste|
|00005cf0| 6d 20 28 6d 63 6d 64 29 | 0a 58 09 20 20 69 66 20 |m (mcmd)|.X. if |
|00005d00| 28 69 63 64 65 20 2e 6e | 65 2e 20 30 29 20 74 68 |(icde .n|e. 0) th|
|00005d10| 65 6e 0a 58 09 20 20 20 | 20 77 72 69 74 65 28 2a |en.X. | write(*|
|00005d20| 2c 39 30 29 20 6d 63 6d | 64 2c 69 63 64 65 0a 58 |,90) mcm|d,icde.X|
|00005d30| 39 30 09 20 20 20 20 66 | 6f 72 6d 61 74 28 27 20 |90. f|ormat(' |
|00005d40| 54 68 65 72 65 20 77 61 | 73 20 61 20 73 79 73 74 |There wa|s a syst|
|00005d50| 65 6d 20 70 72 6f 62 6c | 65 6d 20 77 69 74 68 20 |em probl|em with |
|00005d60| 74 68 65 20 63 6f 6d 6d | 61 6e 64 3a 27 2f 0a 58 |the comm|and:'/.X|
|00005d70| 20 20 20 20 20 26 20 20 | 20 20 20 20 27 20 27 2c | & | ' ',|
|00005d80| 61 2f 0a 58 20 20 20 20 | 20 26 20 20 20 20 20 20 |a/.X | & |
|00005d90| 27 20 54 68 65 20 65 72 | 72 6f 72 20 72 65 74 75 |' The er|ror retu|
|00005da0| 72 6e 20 63 6f 64 65 20 | 77 61 73 20 27 2c 69 35 |rn code |was ',i5|
|00005db0| 29 0a 58 09 20 20 20 20 | 67 70 69 66 20 3d 20 70 |).X. |gpif = p|
|00005dc0| 66 6c 65 6e 6d 0a 58 09 | 20 20 65 6c 73 65 0a 58 |flenm.X.| else.X|
|00005dd0| 09 20 20 20 20 67 70 69 | 66 20 3d 20 6e 65 77 66 |. gpi|f = newf|
|00005de0| 6c 65 0a 58 09 20 20 65 | 6e 64 20 69 66 0a 58 09 |le.X. e|nd if.X.|
|00005df0| 65 6e 64 20 69 66 0a 58 | 0a 58 63 20 2d 2d 2d 2d |end if.X|.Xc ----|
|00005e00| 20 57 72 69 74 65 20 74 | 6f 20 73 74 61 6e 64 61 | Write t|o standa|
|00005e10| 72 64 5f 6f 75 74 70 75 | 74 20 74 68 65 20 66 69 |rd_outpu|t the fi|
|00005e20| 6e 61 6c 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |nal name| of the |
|00005e30| 70 6c 6f 74 20 66 69 6c | 65 2e 20 2d 2d 2d 2d 0a |plot fil|e. ----.|
|00005e40| 58 09 77 72 69 74 65 28 | 2a 2c 31 32 30 29 20 67 |X.write(|*,120) g|
|00005e50| 70 69 66 0a 58 31 32 30 | 09 66 6f 72 6d 61 74 28 |pif.X120|.format(|
|00005e60| 2f 27 20 54 68 65 20 70 | 6c 6f 74 20 66 69 6c 65 |/' The p|lot file|
|00005e70| 20 66 72 6f 6d 20 74 68 | 69 73 20 72 75 6e 20 69 | from th|is run i|
|00005e80| 73 3a 20 27 2c 61 29 0a | 58 09 72 65 74 75 72 6e |s: ',a).|X.return|
|00005e90| 0a 58 09 65 6e 64 0a 53 | 48 41 52 5f 45 4f 46 0a |.X.end.S|HAR_EOF.|
|00005ea0| 65 63 68 6f 20 73 68 61 | 72 3a 20 31 20 63 6f 6e |echo sha|r: 1 con|
|00005eb0| 74 72 6f 6c 20 63 68 61 | 72 61 63 74 65 72 20 6d |trol cha|racter m|
|00005ec0| 61 79 20 62 65 20 6d 69 | 73 73 69 6e 67 20 66 72 |ay be mi|ssing fr|
|00005ed0| 6f 6d 20 22 27 70 66 6c | 65 6d 76 2e 66 27 22 0a |om "'pfl|emv.f'".|
|00005ee0| 69 66 20 74 65 73 74 20 | 31 36 33 30 20 2d 6e 65 |if test |1630 -ne|
|00005ef0| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 70 66 6c 65 | "`wc -c| < 'pfle|
|00005f00| 6d 76 2e 66 27 60 22 0a | 74 68 65 6e 0a 20 65 63 |mv.f'`".|then. ec|
|00005f10| 68 6f 20 73 68 61 72 3a | 20 65 72 72 6f 72 20 74 |ho shar:| error t|
|00005f20| 72 61 6e 73 6d 69 74 74 | 69 6e 67 20 22 27 70 66 |ransmitt|ing "'pf|
|00005f30| 6c 65 6d 76 2e 66 27 22 | 20 27 28 73 68 6f 75 6c |lemv.f'"| '(shoul|
|00005f40| 64 20 68 61 76 65 20 62 | 65 65 6e 20 31 36 33 30 |d have b|een 1630|
|00005f50| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 66 69 | charact|ers)'.fi|
|00005f60| 0a 66 69 20 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi # en|d of ove|
|00005f70| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 65 |rwriting| check.e|
|00005f80| 63 68 6f 20 73 68 61 72 | 3a 20 65 78 74 72 61 63 |cho shar|: extrac|
|00005f90| 74 69 6e 67 20 22 27 70 | 6c 2e 63 27 22 20 27 28 |ting "'p|l.c'" '(|
|00005fa0| 39 39 33 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |993 char|acters)'|
|00005fb0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 70 6c 2e |.if test| -f 'pl.|
|00005fc0| 63 27 0a 74 68 65 6e 0a | 20 65 63 68 6f 20 73 68 |c'.then.| echo sh|
|00005fd0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|00005fe0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00005ff0| 20 66 69 6c 65 20 22 27 | 70 6c 2e 63 27 22 0a 65 | file "'|pl.c'".e|
|00006000| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 58 2f 2f 27 |lse.sed |'s/^X//'|
|00006010| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00006020| 27 70 6c 2e 63 27 0a 58 | 2f 2a 0a 58 20 2a 20 6c |'pl.c'.X|/*.X * l|
|00006030| 6f 77 2d 6c 65 76 65 6c | 20 69 2f 6f 20 72 6f 75 |ow-level| i/o rou|
|00006040| 74 69 6e 65 73 20 66 6f | 72 20 74 68 65 20 63 63 |tines fo|r the cc|
|00006050| 70 73 20 70 6c 6f 74 74 | 69 6e 67 20 70 61 63 6b |ps plott|ing pack|
|00006060| 61 67 65 0a 58 20 2a 0a | 58 20 2a 20 20 52 65 78 |age.X *.|X * Rex|
|00006070| 20 53 61 6e 64 65 72 73 | 2c 20 55 53 47 53 2c 20 | Sanders|, USGS, |
|00006080| 32 2f 38 37 0a 58 20 2a | 0a 58 20 2a 2f 0a 58 0a |2/87.X *|.X */.X.|
|00006090| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |X#includ|e <stdio|
|000060a0| 2e 68 3e 0a 58 0a 58 73 | 74 61 74 69 63 20 46 49 |.h>.X.Xs|tatic FI|
|000060b0| 4c 45 20 2a 66 70 3b 0a | 58 0a 58 76 6f 69 64 0a |LE *fp;.|X.Xvoid.|
|000060c0| 58 70 6c 62 65 67 6e 5f | 28 29 0a 58 7b 0a 58 0a |Xplbegn_|().X{.X.|
|000060d0| 58 20 20 20 20 63 68 61 | 72 20 2a 66 6e 61 6d 65 |X cha|r *fname|
|000060e0| 20 3d 20 22 70 73 5f 70 | 6c 6f 74 22 3b 0a 58 20 | = "ps_p|lot";.X |
|000060f0| 20 20 20 6c 6f 6e 67 20 | 74 3b 0a 58 0a 58 20 20 | long |t;.X.X |
|00006100| 20 20 69 66 20 28 28 66 | 70 20 3d 20 66 6f 70 65 | if ((f|p = fope|
|00006110| 6e 28 66 6e 61 6d 65 2c | 20 22 77 22 29 29 20 3d |n(fname,| "w")) =|
|00006120| 3d 20 4e 55 4c 4c 29 0a | 58 20 20 20 20 7b 0a 58 |= NULL).|X {.X|
|00006130| 20 20 20 20 09 66 70 72 | 69 6e 74 66 28 73 74 64 | .fpr|intf(std|
|00006140| 65 72 72 2c 20 22 70 6c | 62 65 67 6e 3a 20 63 61 |err, "pl|begn: ca|
|00006150| 6e 27 74 20 6f 70 65 6e | 20 25 73 5c 6e 22 2c 20 |n't open| %s\n", |
|00006160| 66 6e 61 6d 65 29 3b 0a | 58 20 20 20 20 09 65 78 |fname);.|X .ex|
|00006170| 69 74 28 31 29 3b 0a 58 | 20 20 20 20 7d 0a 58 0a |it(1);.X| }.X.|
|00006180| 58 20 20 20 20 66 70 75 | 74 73 20 28 22 25 21 5c |X fpu|ts ("%!\|
|00006190| 6e 22 2c 20 66 70 29 3b | 0a 58 20 20 20 20 66 70 |n", fp);|.X fp|
|000061a0| 75 74 73 20 28 22 25 20 | 50 6f 73 74 73 63 72 69 |uts ("% |Postscri|
|000061b0| 70 74 20 6f 75 74 70 75 | 74 20 66 72 6f 6d 20 63 |pt outpu|t from c|
|000061c0| 63 70 73 20 6c 69 62 72 | 61 72 79 5c 6e 22 2c 20 |cps libr|ary\n", |
|000061d0| 66 70 29 3b 0a 58 20 20 | 20 20 74 20 3d 20 74 69 |fp);.X | t = ti|
|000061e0| 6d 65 28 30 29 3b 0a 58 | 20 20 20 20 66 70 72 69 |me(0);.X| fpri|
|000061f0| 6e 74 66 20 28 66 70 2c | 20 22 25 25 20 43 72 65 |ntf (fp,| "%% Cre|
|00006200| 61 74 65 64 3a 20 25 73 | 22 2c 20 63 74 69 6d 65 |ated: %s|", ctime|
|00006210| 28 26 74 29 29 3b 0a 58 | 0a 58 7d 0a 58 0a 58 76 |(&t));.X|.X}.X.Xv|
|00006220| 6f 69 64 0a 58 70 6c 64 | 6f 6e 65 5f 28 29 0a 58 |oid.Xpld|one_().X|
|00006230| 7b 0a 58 20 20 20 20 66 | 70 75 74 73 20 28 22 25 |{.X f|puts ("%|
|00006240| 20 65 6e 64 20 6f 66 20 | 63 63 70 73 20 6f 75 74 | end of |ccps out|
|00006250| 70 75 74 5c 6e 22 2c 20 | 66 70 29 3b 0a 58 20 20 |put\n", |fp);.X |
|00006260| 20 20 66 63 6c 6f 73 65 | 28 66 70 29 3b 0a 58 7d | fclose|(fp);.X}|
|00006270| 0a 58 0a 58 76 6f 69 64 | 0a 58 70 6c 63 6f 75 74 |.X.Xvoid|.Xplcout|
|00006280| 5f 28 63 29 0a 58 63 68 | 61 72 20 2a 63 3b 0a 58 |_(c).Xch|ar *c;.X|
|00006290| 7b 0a 58 2f 2a 0a 58 20 | 2a 20 73 65 6e 64 20 6f |{.X/*.X |* send o|
|000062a0| 6e 65 20 63 68 61 72 20 | 74 6f 20 70 6c 6f 74 20 |ne char |to plot |
|000062b0| 66 69 6c 65 0a 58 20 2a | 2f 0a 58 20 20 20 20 70 |file.X *|/.X p|
|000062c0| 75 74 63 28 2a 63 2c 20 | 66 70 29 3b 0a 58 7d 0a |utc(*c, |fp);.X}.|
|000062d0| 58 0a 58 76 6f 69 64 0a | 58 70 6c 69 6f 75 74 5f |X.Xvoid.|Xpliout_|
|000062e0| 28 69 29 0a 58 69 6e 74 | 20 2a 69 3b 0a 58 7b 0a |(i).Xint| *i;.X{.|
|000062f0| 58 2f 2a 0a 58 20 2a 20 | 73 65 6e 64 20 6f 6e 65 |X/*.X * |send one|
|00006300| 20 69 6e 74 65 67 65 72 | 20 76 61 6c 75 65 20 74 | integer| value t|
|00006310| 6f 20 70 6c 6f 74 20 66 | 69 6c 65 0a 58 20 2a 2f |o plot f|ile.X */|
|00006320| 0a 58 20 20 20 20 66 70 | 72 69 6e 74 66 28 66 70 |.X fp|rintf(fp|
|00006330| 2c 20 22 25 64 22 2c 20 | 2a 69 29 3b 0a 58 7d 0a |, "%d", |*i);.X}.|
|00006340| 58 0a 58 76 6f 69 64 0a | 58 70 6c 66 6f 75 74 5f |X.Xvoid.|Xplfout_|
|00006350| 28 66 29 0a 58 66 6c 6f | 61 74 20 2a 66 3b 0a 58 |(f).Xflo|at *f;.X|
|00006360| 7b 0a 58 2f 2a 0a 58 20 | 2a 20 73 65 6e 64 20 6f |{.X/*.X |* send o|
|00006370| 6e 65 20 66 6c 6f 61 74 | 20 76 61 6c 75 65 20 74 |ne float| value t|
|00006380| 6f 20 70 6c 6f 74 20 66 | 69 6c 65 0a 58 20 2a 2f |o plot f|ile.X */|
|00006390| 0a 58 20 20 20 20 66 70 | 72 69 6e 74 66 28 66 70 |.X fp|rintf(fp|
|000063a0| 2c 20 22 25 2e 33 66 22 | 2c 20 2a 66 29 3b 0a 58 |, "%.3f"|, *f);.X|
|000063b0| 7d 0a 58 76 6f 69 64 0a | 58 70 6c 73 6f 75 74 5f |}.Xvoid.|Xplsout_|
|000063c0| 28 73 2c 20 6c 29 0a 58 | 63 68 61 72 20 2a 73 3b |(s, l).X|char *s;|
|000063d0| 0a 58 6c 6f 6e 67 20 69 | 6e 74 20 6c 3b 0a 58 7b |.Xlong i|nt l;.X{|
|000063e0| 0a 58 2f 2a 0a 58 20 2a | 20 73 65 6e 64 20 61 20 |.X/*.X *| send a |
|000063f0| 73 74 72 69 6e 67 20 74 | 6f 20 70 6c 6f 74 20 66 |string t|o plot f|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.