-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathezget1.2_doc_tex.tar
18828 lines (17897 loc) · 513 KB
/
ezget1.2_doc_tex.tar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
README 0100644 0021161 0000055 00000042767 07061053266 0013156 0 ustar 00ktaylor climate 0000040 0000006 ***************************
EzGet Summary
***************************
You have acquired from the Program for Climate Model Diagnosis and
Intercomparison (PCMDI) software known as EzGet, which facilitates
retrieval of data stored in popular formats (including DRS, netCDF,
GrADS, and if a control file is supplied, GRIB). EzGET (pronounced
easy-get) is specifically designed to access climate data and climate
model output. You can specify how the data should be structured and
whether it should undergo a grid transformation before you receive it,
even when you know little about the structure of the stored data
(i.e., its dimension order, grid, and domain).
EzGet comprises a set of subroutines that can be linked to any FORTRAN
program. EzGet reads files through the cdunif interface, but use of
EzGet does not require familiarity with cdunif. The main advantages of
using this software instead of the lower level cdunif library include:
* Substantial error trapping capabilities and detailed error messages
* Versatile capability of conveniently selecting data from specified
regions (e.g., oceans, North America, all land areas north of 45
degrees latitude, etc.)
* Ability to map data to a new grid at the time it is retrieved by
EzGet
* Automatic creation of ``weights'' for use in subsequent averaging
or masking of data
* Increased control in specifying the domain, grid and structure of
the retrieved data.
Taken together these capabilities will simplify the process of writing
programs for accessing data stored in different formats and structures,
including all the observed data sets and the model output from various
model intercomparison projects (AMIP, PMIP, CMIP, etc.) archived at
PCMDI.
EzGet software and documentation are are available through the PCMDI
web site:
home page: http: //www-pcmdi.llnl.gov/
EzGet location: http://www-pcmdi.llnl.gov/ktaylor/ezget/ezget.html
The software currently is available for the following
platforms/operating systems:
Sun/SunOS 4.1.3
Sun/Solaris 2.4
IBM RS6000/AIX 3.2
HP/HP-UX 9.0
SGI IRIX 5.3
LINEX
Cray/Unicos
It should also be available shortly on:
DEC Alpha/OSF
***************************
Installation
***************************
Obtain from the PCMDI web site the tarred and compressed file
containing the EZGET, DRS and cdunif libraries appropriate to the
platform (computer) you will be using along with documentation,
geography data from AMIP models, examples and sample data.
You should uncompress the tar files. For example for the HP version
enter:
uncompress ezget1.1.3_doc.tar.Z
uncompress amip_geog.tar.Z
uncompress ezget_examples.tar.Z
uncompress ezget1.1.3_hp.tar.Z
Then you should extract the files from the tarred library files,
examples files, and document files. For example for the HP version
enter:
tar -xvf ezget1.1.3_doc.tar
tar -xvf amip_geog.tar
tar -xvf ezget_examples.tar
tar -xvf ezget1.1.3_hp.tar
You should now have the following files in your directory:
3 fortran libraries:
libcdms.a
libdrs.a
libezget.a
Documentation:
README
colorgeog.ps
ezget.ps
ezget.pdf (if you downloaded the pdf tar file)
ezget.tex (if you downloaded the tex tar file; this is
the ascii file that latex uses to create ezget.ps)
Geography data for AMIP models:
sftbyrgn_bmr.dat
sftbyrgn_bmr.dic
sftbyrgn_ccc.dat
sftbyrgn_ccc.dic
sftbyrgn_cnr.dat
sftbyrgn_cnr.dic
.
.
.
.
sftbyrgn_ukm.dat
sftbyrgn_ukm.dic
sftbyrgn_yon.dat
sftbyrgn_yon.dic
Sample programs:
4738 Mar 22 14:28 areamean.f
12443 Mar 22 14:28 extract.f
3894 Mar 22 14:28 extract_shrt.f
5761 Mar 22 14:27 getregn.f
5472 Mar 22 14:28 maxmin.f
5499 Mar 22 14:28 meandiff.f
6493 Mar 22 14:28 regrding.f
8638 Mar 22 14:28 rmscalc.f
5820 Mar 22 14:28 smmaxmin.f
Input data (DRS format) for sample programs:
1589760 Feb 2 11:18 nasa-amip_t.dat
1536 Feb 2 11:18 nasa-amip_t.dic
13312 Feb 6 15:49 sftbyrgn_gla.dat
1536 Feb 6 15:49 sftbyrgn_gla.dic
If you will be reading netCDF files, you will need to acquire the
netCDF library from the web site:
ftp://ftp.unidata.ucar.edu/pub/netcdf/
Once you have placed the libraries where you want them, you may have to
execute "ranlib" on some platforms:
ranlib libcdms
ranlib libdrs
ranlib libezget
ranlib libnetcdf
A surface air temperature data set and a detailed geography mask in DRS
format are included in the examples file. All the examples (documented
in the ezget.ps file) should run on your platform, except rmscalc.f,
which requires input files from 30 different models. Before compiling
and running these sample applications, you will need to edit the files,
specifying the correct paths to the input data (check all the calls to
subroutine defvar).
For various platforms, typical lines for compiling and linking to the
libraries are given here (you will need to change the path to the
libraries):
Sun/SunOS:
f77 extract.f -L$PCMDI/Sunos/lib -lezget -lcdms -ldrs -lnetcdf -o extract
Sun/Solaris
f77 extract.f -L$PCMDI/Solaris/lib -lezget -lcdms -ldrs -lnetcdf -o extract
IBM RS6000/AIX
xlf extract.f -L$PCMDI/Ibm/lib -lezget -lcdms -ldrs -lnetcdf -o extract
HP/HP-UX
fort77 +U77 extract.f -L$PCMDI/Hp/lib -lezget -lcdms -ldrs -lm -lnetcdf \
-o extract
SGI
f77 extract.f -L$PCMDI/Sgi/lib -lezget -lcdms -ldrs -lnetcdf -o extract
*************************************
Bugs, Updates, and Limitations
*************************************
*************
EzGet Bugs
*************
Bugs in Version 1.0: A rarely encountered bug was discovered that
sometimes caused an EzGet internal table (where dimension information
is stored) to fill up prematurely. This bug would be obvious to any
user who encountered it and was corrected in version 1.1.2. Another
bug was found which affects masking of geographical regions. If a
geography mask were stored with more than the longitude and latitude
dimensions explicitly defined (e.g., if the mask were a function of
time), but if in fact this third dimension contained only one element
(i.e., "time" might actually only be a dummy dimension and therefore
the data stored would only be 2-dimensional), and if the field that
EzGet was instructed to mask was in fact a function of time, then EzGet
will obtain masking information for most of the field from some
unpredictable location in the computer's memory and garbage will be
produced, which may or may not be evident to the user. This bug was
corrected in Version 1.1.3. A bug that affects mapping data to a
target grid when the domain for the longitude dimension requires use of
the "cycle" length information (usually 360 degrees) prevents proper
regridding in some cases. This bug was fixed in Version 1.1.4.
Bugs in Version 1.1: Several bugs were found having primarily to do
with masking geographical regions under the newly implemented option to
use land fraction data (expressed as a percentage). The worst problem
found was that land data would be masked when ocean data should have
been masked and vice versa. Most of these bugs were corrected in
Version 1.1.2. Also the second bug found in Version 1.0 remained in
Version 1.1, but was corrected in Version 1.1.3, and the third bug
found in Version 1.0 remained in Version 1.1, but was corrected in
Version 1.1.4.
Bugs in Version 1.1.2: Two bugs related to the newly implemented
option to use land fraction data (expressed as a percentage) were
discovered. Also the second bug found in Version 1.0 remained in
Version 1.1.2. These bug were corrected in Version 1.1.3. The third
bug found in Version 1.0 remained in Version 1.1.2, but was corrected
in Version 1.1.4.
Bugs in Version 1.1.3: The third bug found in Version 1.0 remained in
Version 1.1.3, but was corrected in Version 1.1.4. A bug
(introduced into Version 1.1.3) that affects geography masking in the
case that the land fraction data are stored as INTEGERS (0 to 100)
leads to incorrect masking results. All known PCMDI land fraction data
masks are stored as real (0.0 to 100.0), not integer, so this bug
should not have had any affect on data processed at PCMDI. This error
was also corrected in Version 1.1.4.
Bugs in Version 1.1.4: Minor bugs in the selection of geographical
regions were found; these bugs should be obvious if encountered because
the code crashes. A bug in the regridding option that allows mapping to
a user-specified gaussian grid was found. An error in overriding
cycle=0. when regridding was found. A few other errors were found, but
documentation is unavailable.
Bugs in Version 1.2: No bugs have been reported in the most recent
release of EzGet (Version 1.2; 11 February 2000). Users should
report suspected bugs to [email protected]. Also all users should
register by email at [email protected], indicating name, location, and
platform, so that they can be immediately informed if significant bugs
are found. New releases of EzGet will be announced by email to all
those registered.
*************
EzGet Updates
*************
Version 1.0 was the original version of EzGet to be publicly released
in March 1996. It had been thoroughly tested at PCMDI over a two year
period.
Version 1.1 was released in September 1996. Programs using version 1.0
should run successfully under version 1.1, but the newer version
differs in the following respects:
* The capability for selecting (or masking) data from specific
geographical regions was extended so that output from the Atmospheric
Model Intercomparison Project 2 (AMIP 2) and Paleoclimate Modeling
Intercomparison Project (PMIP) could be used in unmodified form. In
addition to the types of geographical data that were previously
permitted, version 1.1 makes it possible for EzGet to read land
fraction data (expressed as a percent) or sea ice fraction data
(expressed as a percent), making it easy to mask out data from land,
ocean or sea ice regions in analyses of the intercomparison project
output. In addition, when data is extracted, for example, from land
areas only, the weights created by EzGet, which can be used to
calculate area averages, are properly generated even for models in
which individual grid cells are partly land and partly ocean. See
documentation of subroutines defgeog, getgeog, and defmisc for further
details.
* The capability of extracting integer data was expanded by allowing
for proper identification of missing integer data. See documentation
of subroutine defmisc for further details.
* A bug in the assignment of aliases for the longitude and latitude
coordinates (accomplished through calls to subroutine defmisc) was
corrected. See documentation of subroutine defmisc for further
information.
* The assignment of weights for the LMCE and LMD models was corrected
and generalized to allow for different model resolutions.
* In calls to subroutine defdim, EzGet now recognizes that the model
acronym 'ech*' (where * can represent any group of characters)
indicates a gaussian grid. See appendix A of the documentation.
* A bug was found and corrected, so that EzGet now correctly recognizes
the equivalence of the strings, 'sea ice', 'sea-ice', and 'seaice',
which are used to select data from regions with sea ice. If this bug
was encountered in the previous version, an explicit error message
would be written so the user would have known about it.
* Documentation was updated to account for all these changes.
Significant changes were made in the sections on subroutines defgeog,
demisc, and getgeog.
Version 1.1.2 was released in 11 November 1996. It differs from
Version 1.1 in the following respects:
* A few bugs were corrected, primarily having to do with masking
geographical regions under the newest option to use land fraction data
(expressed as a percentage). The worst bug was that in version 1.1
land data would be masked when ocean data should have been masked and
vice versa. Also an option is now available to specify explicitly that
the geography data set contains land fraction data (expressed as a
percentage). See documentation of subroutine defmisc for further
details.
* A bug involving an internal dimension table created by EzGet was
corrected, which makes it less likely that this table will become
filled.
Version 1.1.3 was released in 9 December 1996. It differs from
Version 1.1.2 in the following respects:
The two bugs described at the beginning of this page were eliminated.
Version 1.1.4 was released on 16 May 1997. It differs from Version
1.1.3 in the following respects:
* A bug in all previous versions that prevented proper mapping of
data to a target grid when the longitude domain required information on
the "cycle" length (usually 360 degrees) was corrected. Another bug
was fixed which now allows the user to reset the geography masking
"off" by specifying "0 " as the mask-index in a call to defgeog (as
described in the documentation). This error was present in all
previous versions. In addition the specification of the parameter,
'data size', by a call to subroutine defmisc, which was inadvertantly
required by previous versions in order to correctly retrieve data
through subroutine getvdata, is no longer required, but continues to be
recommended. A bug in Version 1.1.3, which affected land/sea masking
when land fraction data was stored as integers (0 to 100), was
corrected.
* A new subroutine was added to EzGet: subroutine getnogap, which allows
the user to extract data and place it in contiguous memory. This
subroutine is nearly the same as subroutine getvdata, but the user can
instruct EzGet (through one of the subroutine arguments) to check that
the data extracted will not exceed the size of the arrays the user has
defined to receive the data. Thus instead of defining 'data size' by
calling defmisc followed by a call to getvdata, the user can more
concisely simply call getnogap. This subroutine is described in the
latest documentation.
* The maximum length allowed for variable names was increased from
16 to 64 characters.
* A change was made in the behavior of EzGet in the case of a dimension
that is length 1. For example, consider a file containing a variable
that is a function of longitude, latitude and time, but all data in the
file are from a single time "slice". In this case (in which a
dimension is defined in a file, but has a length of one) EzGet no
longer requires the user to call subroutine defdim for this dimension.
If the dimension is not defined by the user, EzGet will assume the user
wants to retrieve the single time "slice" of data from the file and
will apply unit "weighting" for this dimension.
* In the EzGet documentation, all references to subroutine getvdata
were removed because this subroutine is nearly identical to subroutine
getnogap, which is now fully documented. The documentation was also
revised to be consistent with all software changes made since Version
1.1.2.
Version 1.2 was released on 11 February 2000. It differs from Version
1.1.4 in the following respects:
* Bugs were fixed as described above.
* A capability was added to calls to subroutines defvar and defvarex,
which allows the user to to check that a file exists before attempting
to retrieve data. When this option is invoked, an error flag is
returned to the user indicating whether or not the variable was found.
In previous ezget versions, the code would error exit if a variable or
file did not exist. The latest EzGet documentation explains this feature.
* A subroutine was added (diminfo) which returns descriptive
information about a dimension (e.g., units, title, source, etc.). The
latest EzGet documentation explains this feature.
**********
EzGet limitations:
**********
Current limitations include:
* EzGet has not been ported to the DEC Alpha computers.
* The full capabilities of EzGet apply only to 4-byte floating point
(real*4) data. Double precision and integer data, for example, can be
extracted, but cannot be interpolated to new grids within EzGet.
Missing data values can be recognized for integer data, but not double
precision data.
* The names of fields that will be extracted by EzGet should be no longer
than 64 characters long. All standard names for AMIP and PMIP are well
within this limit.
* Coordinates are converted to single precision when extracted by
EzGet, and currently it is only possible to specify the domain of data
to be extracted in single precision. This may lead to problems if, for
example, the time domain of some hourly data you want to extract is
for years 1000 through 1001 (i.e. hours 8,760,000 through 8,768,760).
Single precision floating point numbers are unable to resolve 1 part in
8.7x10**6, so it would not be possible to properly extract this data by
specifying a domain with subroutine defdim. (Note, however, subroutine
defdimi could be used to specify a domain and retrieve the data
successfully, but if it were necessary to retrieve the coordinate
values getcoord), they would be truncated.
* Geography maps used to specify regions such as "North America",
"Australia", "South Pacific", etc. are currently available for AMIP 1
models, but they are not yet available for all PMIP, CMIP, or AMIP 2
models.
***************************
Software Support
***************************
If you have questions contact:
TAYLOR Karl E. Lawrence Livermore National Laboratory
P.O. Box 808, L-264
Livermore, CA 94550
or (for Federal Express)
L-264
7000 East Ave.
Livermore, CA 94550
Tel.: 1 (510) 423-3623
Fax.: 1 (510) 422-7675
email: [email protected]
</ul>
s to incocolorgeog.ps 0100644 0021161 0000055 00001077375 06124107737 0014630 0 ustar 00ktaylor climate 0000040 0000006 %!PS-Adobe-3.0
%%BoundingBox: (atend)
%%Pages: (atend)
%%PageOrder: (atend)
%%DocumentFonts: (atend)
%%Creator: Frame 4.0
%%DocumentData: Clean7Bit
%%EndComments
%%BeginProlog
%
% Frame ps_prolog 4.0, for use with Frame 4.0 products
% This ps_prolog file is Copyright (c) 1986-1993 Frame Technology
% Corporation. All rights reserved. This ps_prolog file may be
% freely copied and distributed in conjunction with documents created
% using FrameMaker, FrameBuilder and FrameViewer as long as this
% copyright notice is preserved.
%
% Frame products normally print colors as their true color on a color printer
% or as shades of gray, based on luminance, on a black-and white printer. The
% following flag, if set to True, forces all non-white colors to print as pure
% black. This has no effect on bitmap images.
/FMPrintAllColorsAsBlack false def
%
% Frame products can either set their own line screens or use a printer's
% default settings. Three flags below control this separately for no
% separations, spot separations and process separations. If a flag
% is true, then the default printer settings will not be changed. If it is
% false, Frame products will use their own settings from a table based on
% the printer's resolution.
/FMUseDefaultNoSeparationScreen true def
/FMUseDefaultSpotSeparationScreen true def
/FMUseDefaultProcessSeparationScreen false def
%
% For any given PostScript printer resolution, Frame products have two sets of
% screen angles and frequencies for printing process separations, which are
% recomended by Adobe. The following variable chooses the higher frequencies
% when set to true or the lower frequencies when set to false. This is only
% effective if the appropriate FMUseDefault...SeparationScreen flag is false.
/FMUseHighFrequencyScreens true def
%
% PostScript Level 2 printers contain an "Accurate Screens" feature which can
% improve process separation rendering at the expense of compute time. This
% flag is ignored by PostScript Level 1 printers.
/FMUseAcccurateScreens true def
%
% The following PostScript procedure defines the spot function that Frame
% products will use for process separations. You may un-comment-out one of
% the alternative functions below, or use your own.
%
% Dot function
/FMSpotFunction {abs exch abs 2 copy add 1 gt
{1 sub dup mul exch 1 sub dup mul add 1 sub }
{dup mul exch dup mul add 1 exch sub }ifelse } def
%
% Line function
% /FMSpotFunction { pop } def
%
% Elipse function
% /FMSpotFunction { dup 5 mul 8 div mul exch dup mul exch add
% sqrt 1 exch sub } def
%
%
/FMversion (4.0) def
/FMLevel1 /languagelevel where {pop languagelevel} {1} ifelse 2 lt def
/FMPColor
FMLevel1 {
false
/colorimage where {pop pop true} if
} {
true
} ifelse
def
/FrameDict 400 dict def
systemdict /errordict known not {/errordict 10 dict def
errordict /rangecheck {stop} put} if
% The readline in PS 23.0 doesn't recognize cr's as nl's on AppleTalk
FrameDict /tmprangecheck errordict /rangecheck get put
errordict /rangecheck {FrameDict /bug true put} put
FrameDict /bug false put
mark
% Some PS machines read past the CR, so keep the following 3 lines together!
currentfile 5 string readline
00
0000000000
cleartomark
errordict /rangecheck FrameDict /tmprangecheck get put
FrameDict /bug get {
/readline {
/gstring exch def
/gfile exch def
/gindex 0 def
{
gfile read pop
dup 10 eq {exit} if
dup 13 eq {exit} if
gstring exch gindex exch put
/gindex gindex 1 add def
} loop
pop
gstring 0 gindex getinterval true
} bind def
} if
/FMshowpage /showpage load def
/FMquit /quit load def
/FMFAILURE {
dup = flush
FMshowpage
/Helvetica findfont 12 scalefont setfont
72 200 moveto
show FMshowpage
FMquit
} def
/FMVERSION {
FMversion ne {
(Frame product version does not match ps_prolog!) FMFAILURE
} if
} def
/FMBADEPSF {
(PostScript Lang. Ref. Man., 2nd Ed., H.2.4 says EPS must not call X )
dup dup (X) search pop exch pop exch pop length
4 -1 roll
putinterval
FMFAILURE
} def
/FMLOCAL {
FrameDict begin
0 def
end
} def
/concatprocs
{
/proc2 exch cvlit def/proc1 exch cvlit def/newproc proc1 length proc2 length add array def
newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval newproc cvx
}def
FrameDict begin
/FMnone 0 def
/FMcyan 1 def
/FMmagenta 2 def
/FMyellow 3 def
/FMblack 4 def
/FMcustom 5 def
/FrameNegative false def
/FrameSepIs FMnone def
/FrameSepBlack 0 def
/FrameSepYellow 0 def
/FrameSepMagenta 0 def
/FrameSepCyan 0 def
/FrameSepRed 1 def
/FrameSepGreen 1 def
/FrameSepBlue 1 def
/FrameCurGray 1 def
/FrameCurPat null def
/FrameCurColors [ 0 0 0 1 0 0 0 ] def
/FrameColorEpsilon .001 def
/eqepsilon {
sub dup 0 lt {neg} if
FrameColorEpsilon le
} bind def
/FrameCmpColorsCMYK {
2 copy 0 get exch 0 get eqepsilon {
2 copy 1 get exch 1 get eqepsilon {
2 copy 2 get exch 2 get eqepsilon {
3 get exch 3 get eqepsilon
} {pop pop false} ifelse
}{pop pop false} ifelse
} {pop pop false} ifelse
} bind def
/FrameCmpColorsRGB {
2 copy 4 get exch 0 get eqepsilon {
2 copy 5 get exch 1 get eqepsilon {
6 get exch 2 get eqepsilon
}{pop pop false} ifelse
} {pop pop false} ifelse
} bind def
/RGBtoCMYK {
1 exch sub
3 1 roll
1 exch sub
3 1 roll
1 exch sub
3 1 roll
3 copy
2 copy
le { pop } { exch pop } ifelse
2 copy
le { pop } { exch pop } ifelse
dup dup dup
6 1 roll
4 1 roll
7 1 roll
sub
6 1 roll
sub
5 1 roll
sub
4 1 roll
} bind def
/CMYKtoRGB {
dup dup 4 -1 roll add
5 1 roll 3 -1 roll add
4 1 roll add
1 exch sub dup 0 lt {pop 0} if 3 1 roll
1 exch sub dup 0 lt {pop 0} if exch
1 exch sub dup 0 lt {pop 0} if exch
} bind def
/FrameSepInit {
1.0 RealSetgray
} bind def
/FrameSetSepColor {
/FrameSepBlue exch def
/FrameSepGreen exch def
/FrameSepRed exch def
/FrameSepBlack exch def
/FrameSepYellow exch def
/FrameSepMagenta exch def
/FrameSepCyan exch def
/FrameSepIs FMcustom def
setCurrentScreen
} bind def
/FrameSetCyan {
/FrameSepBlue 1.0 def
/FrameSepGreen 1.0 def
/FrameSepRed 0.0 def
/FrameSepBlack 0.0 def
/FrameSepYellow 0.0 def
/FrameSepMagenta 0.0 def
/FrameSepCyan 1.0 def
/FrameSepIs FMcyan def
setCurrentScreen
} bind def
/FrameSetMagenta {
/FrameSepBlue 1.0 def
/FrameSepGreen 0.0 def
/FrameSepRed 1.0 def
/FrameSepBlack 0.0 def
/FrameSepYellow 0.0 def
/FrameSepMagenta 1.0 def
/FrameSepCyan 0.0 def
/FrameSepIs FMmagenta def
setCurrentScreen
} bind def
/FrameSetYellow {
/FrameSepBlue 0.0 def
/FrameSepGreen 1.0 def
/FrameSepRed 1.0 def
/FrameSepBlack 0.0 def
/FrameSepYellow 1.0 def
/FrameSepMagenta 0.0 def
/FrameSepCyan 0.0 def
/FrameSepIs FMyellow def
setCurrentScreen
} bind def
/FrameSetBlack {
/FrameSepBlue 0.0 def
/FrameSepGreen 0.0 def
/FrameSepRed 0.0 def
/FrameSepBlack 1.0 def
/FrameSepYellow 0.0 def
/FrameSepMagenta 0.0 def
/FrameSepCyan 0.0 def
/FrameSepIs FMblack def
setCurrentScreen
} bind def
/FrameNoSep {
/FrameSepIs FMnone def
setCurrentScreen
} bind def
/FrameSetSepColors {
FrameDict begin
[ exch 1 add 1 roll ]
/FrameSepColors
exch def end
} bind def
/FrameColorInSepListCMYK {
FrameSepColors {
exch dup 3 -1 roll
FrameCmpColorsCMYK
{ pop true exit } if
} forall
dup true ne {pop false} if
} bind def
/FrameColorInSepListRGB {
FrameSepColors {
exch dup 3 -1 roll
FrameCmpColorsRGB
{ pop true exit } if
} forall
dup true ne {pop false} if
} bind def
/RealSetgray /setgray load def
/RealSetrgbcolor /setrgbcolor load def
/RealSethsbcolor /sethsbcolor load def
end
/setgray {
FrameDict begin
FrameSepIs FMnone eq
{ RealSetgray }
{
FrameSepIs FMblack eq
{ RealSetgray }
{ FrameSepIs FMcustom eq
FrameSepRed 0 eq and
FrameSepGreen 0 eq and
FrameSepBlue 0 eq and {
RealSetgray
} {
1 RealSetgray pop
} ifelse
} ifelse
} ifelse
end
} bind def
/setrgbcolor {
FrameDict begin
FrameSepIs FMnone eq
{ RealSetrgbcolor }
{
3 copy [ 4 1 roll ]
FrameColorInSepListRGB
{
FrameSepBlue eq exch
FrameSepGreen eq and exch
FrameSepRed eq and
{ 0 } { 1 } ifelse
}
{
FMPColor {
RealSetrgbcolor
currentcmykcolor
} {
RGBtoCMYK
} ifelse
FrameSepIs FMblack eq
{1.0 exch sub 4 1 roll pop pop pop} {
FrameSepIs FMyellow eq
{pop 1.0 exch sub 3 1 roll pop pop} {
FrameSepIs FMmagenta eq
{pop pop 1.0 exch sub exch pop } {
FrameSepIs FMcyan eq
{pop pop pop 1.0 exch sub }
{pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse
} ifelse
RealSetgray
}
ifelse
end
} bind def
/sethsbcolor {
FrameDict begin
FrameSepIs FMnone eq
{ RealSethsbcolor }
{
RealSethsbcolor
currentrgbcolor
setrgbcolor
}
ifelse
end
} bind def
FrameDict begin
/setcmykcolor where {
pop /RealSetcmykcolor /setcmykcolor load def
} {
/RealSetcmykcolor {
4 1 roll
3 { 3 index add 0 max 1 min 1 exch sub 3 1 roll} repeat
setrgbcolor pop
} bind def
} ifelse
userdict /setcmykcolor {
FrameDict begin
FrameSepIs FMnone eq
{ RealSetcmykcolor }
{
4 copy [ 5 1 roll ]
FrameColorInSepListCMYK
{
FrameSepBlack eq exch
FrameSepYellow eq and exch
FrameSepMagenta eq and exch
FrameSepCyan eq and
{ 0 } { 1 } ifelse
}
{
FrameSepIs FMblack eq
{1.0 exch sub 4 1 roll pop pop pop} {
FrameSepIs FMyellow eq
{pop 1.0 exch sub 3 1 roll pop pop} {
FrameSepIs FMmagenta eq
{pop pop 1.0 exch sub exch pop } {
FrameSepIs FMcyan eq
{pop pop pop 1.0 exch sub }
{pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse
} ifelse
RealSetgray
}
ifelse
end
} bind put
FMLevel1 not {
/patProcDict 5 dict dup begin
<0f1e3c78f0e1c387> { 3 setlinewidth -1 -1 moveto 9 9 lineto stroke
4 -4 moveto 12 4 lineto stroke
-4 4 moveto 4 12 lineto stroke} bind def
<0f87c3e1f0783c1e> { 3 setlinewidth -1 9 moveto 9 -1 lineto stroke
-4 4 moveto 4 -4 lineto stroke
4 12 moveto 12 4 lineto stroke} bind def
<8142241818244281> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke
-1 -1 moveto 9 9 lineto stroke } bind def
<03060c183060c081> { 1 setlinewidth -1 -1 moveto 9 9 lineto stroke
4 -4 moveto 12 4 lineto stroke
-4 4 moveto 4 12 lineto stroke} bind def
<8040201008040201> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke
-4 4 moveto 4 -4 lineto stroke
4 12 moveto 12 4 lineto stroke} bind def
end def
/patDict 15 dict dup begin
/PatternType 1 def
/PaintType 2 def
/TilingType 3 def
/BBox [ 0 0 8 8 ] def
/XStep 8 def
/YStep 8 def
/PaintProc {
begin
patProcDict bstring known {
patProcDict bstring get exec
} {
8 8 true [1 0 0 -1 0 8] bstring imagemask
} ifelse
end
} bind def
end def
} if
/combineColor {
FrameSepIs FMnone eq
{
graymode FMLevel1 or not {
[/Pattern [/DeviceCMYK]] setcolorspace
FrameCurColors 0 4 getinterval aload pop FrameCurPat setcolor
} {
FrameCurColors 3 get 1.0 ge {
FrameCurGray RealSetgray
} {
FMPColor graymode and {
0 1 3 {
FrameCurColors exch get
1 FrameCurGray sub mul
} for
RealSetcmykcolor
} {
4 1 6 {
FrameCurColors exch get
graymode {
1 exch sub 1 FrameCurGray sub mul 1 exch sub
} {
1.0 lt {FrameCurGray} {1} ifelse
} ifelse
} for
RealSetrgbcolor
} ifelse
} ifelse
} ifelse
} {
FrameCurColors 0 4 getinterval aload
FrameColorInSepListCMYK {
FrameSepBlack eq exch
FrameSepYellow eq and exch
FrameSepMagenta eq and exch
FrameSepCyan eq and
FrameSepIs FMcustom eq and
{ FrameCurGray } { 1 } ifelse
} {
FrameSepIs FMblack eq
{FrameCurGray 1.0 exch sub mul 1.0 exch sub 4 1 roll pop pop pop} {
FrameSepIs FMyellow eq
{pop FrameCurGray 1.0 exch sub mul 1.0 exch sub 3 1 roll pop pop} {
FrameSepIs FMmagenta eq
{pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub exch pop } {
FrameSepIs FMcyan eq
{pop pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub }
{pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse
} ifelse
graymode FMLevel1 or not {
[/Pattern [/DeviceGray]] setcolorspace
FrameCurPat setcolor
} {
graymode not FMLevel1 and {
dup 1 lt {pop FrameCurGray} if
} if
RealSetgray
} ifelse
} ifelse
} bind def
/savematrix {
orgmatrix currentmatrix pop
} bind def
/restorematrix {
orgmatrix setmatrix
} bind def
/dmatrix matrix def
/dpi 72 0 dmatrix defaultmatrix dtransform
dup mul exch dup mul add sqrt def
/freq dpi dup 72 div round dup 0 eq {pop 1} if 8 mul div def
/sangle 1 0 dmatrix defaultmatrix dtransform exch atan def
/dpiranges [ 2540 2400 1693 1270 1200 635 600 0 ] def
/CMLowFreqs [ 100.402 94.8683 89.2289 100.402 94.8683 66.9349 63.2456 47.4342 ] def
/YLowFreqs [ 95.25 90.0 84.65 95.25 90.0 70.5556 66.6667 50.0 ] def
/KLowFreqs [ 89.8026 84.8528 79.8088 89.8026 84.8528 74.8355 70.7107 53.033 ] def
/CLowAngles [ 71.5651 71.5651 71.5651 71.5651 71.5651 71.5651 71.5651 71.5651 ] def
/MLowAngles [ 18.4349 18.4349 18.4349 18.4349 18.4349 18.4349 18.4349 18.4349 ] def
/YLowTDot [ true true false true true false false false ] def
/CMHighFreqs [ 133.87 126.491 133.843 108.503 102.523 100.402 94.8683 63.2456 ] def
/YHighFreqs [ 127.0 120.0 126.975 115.455 109.091 95.25 90.0 60.0 ] def
/KHighFreqs [ 119.737 113.137 119.713 128.289 121.218 89.8026 84.8528 63.6395 ] def
/CHighAngles [ 71.5651 71.5651 71.5651 70.0169 70.0169 71.5651 71.5651 71.5651 ] def
/MHighAngles [ 18.4349 18.4349 18.4349 19.9831 19.9831 18.4349 18.4349 18.4349 ] def
/YHighTDot [ false false true false false true true false ] def
/PatFreq [ 10.5833 10.0 9.4055 10.5833 10.0 10.5833 10.0 9.375 ] def
/screenIndex {
0 1 dpiranges length 1 sub { dup dpiranges exch get 1 sub dpi le {exit} {pop} ifelse } for
} bind def
/getCyanScreen {