-
Notifications
You must be signed in to change notification settings - Fork 0
/
unit_star_database.pas
2970 lines (2802 loc) · 82.2 KB
/
unit_star_database.pas
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
unit unit_star_database;
{HNSKY reads star databases type .290 and 1476}
{Copyright (C) 2017, 2021 by Han Kleijn, www.hnsky.org
email: han.k.. at...hnsky.org
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/. }
{$mode delphi}
interface
uses
Classes, SysUtils, math;
var
cos_telescope_dec : double;{store here the cos(telescope_dec) value before and read series}
database2 : array[0..(11*10)] of ansichar;{info star database, length 110 char equals 10x11 bytes}
// telescope_ra, telescope_dec [radians], contains to center position of the field of interest
// field_diameter [radians], FOV diameter of field of interest. This is ignored in searchmode=T}
// ra, dec [radians], reported star position
// mag2 [magnitude*10] reported star magnitude
// result [true/false] if reported true more stars available. If false no more stars available
// extra outputs:
// naam2, string containing the star Tycho/UCAC4 designation for record size above 7
// database2 : array[0..(11*10)] of ansichar;{text info star database used}
// preconditions:
// cos_telescope_dec, double variable should contains the cos(telescope_dec) to detect if star read is within the FOV diameter}
function select_star_database(database:string;fov:double): boolean; {select a star database, report false if none is found}
procedure find_areas(ra1,dec1,fov :double; out area1,area2,area3,area4 :integer; out frac1,frac2,frac3,frac4:double);{find up to four star database areas for the square image. Maximum size is a little lesse the one database field 9.5x9.5 degrees for .290 files and 5.14 x 5.14 degrees for .1476 files}
function readdatabase290(telescope_ra,telescope_dec, field_diameter:double; out ra2,dec2, mag2,Bp_Rp : double): boolean; inline;{star 290 file database search}
procedure close_star_database;{Close the tfilestream}
function open_database(telescope_dec: double; area290: integer): boolean; {open database file}
// The format of the 290 star databases is described in the HNSKY help file
//
// The sky is divided in 290 areas of equal surface except for the poles which are half of that size.
// The stars are stored in these 290 separate files and sorted from bright to faint. Each file starts with a header of 110 bytes of which the first part contains
// a textual description and the last byte contains the record size 5, 6, 7, 10 or 11 bytes. The source of the utility program to make star databases is provided.
//
// The 290 area's:
// The areas are based on an mathematical method described in a paper of the PHILLIPS LABORATORY called "THE DIVISION OF A CIRCLE OR SPHERICAL SURFACE INTO EQUAL-AREA CELLS OR PIXELS"
// by Irving I. Gringorten Penelope J. Yepez on 30 June 1992
// First circles of constant declination are assumed. The first sphere segment defined by circle with number 1 has a height h1 from the pole and a surface of pi*sqr(h1).
// If the second circle of constant declination has a sphere segment with a height of 3*h1 then the surface area of the second sphere segment is nine times higher equal pi*sqr(3*h1).
// If the area between circle 1 en 2 is divided in 8 segments then these eight have the same area as the area of the first segment.
// The same is possible for the third circle by diving it in 16 segments, then in 24, 32, 40, 48, 56, 64 segments.
// The area of the third segment is pi*sqr(5*h1) so 25 times larger, where 25 equals 1+8+16. So the sphere segments have a height of h1, 3*h1, 5*h1, 7*h1.
// The height of h1=1-sin(declination). All areas are equal area but rectangle.
// In HNSKY all area's are a combination of two except for the polar areas to have a more square shape especially around the equator.
// The south pole is stored in file 0101.290 Area A2 and A3 are stored in file 02_01.290, area A4 and A5 are stored in file 0202.290.
// The distances between the circles is pretty constant and around 10 to 12 degrees. The distance between the area centres is around 15 degrees maximum.
// The declinations are calculated by arcsin (1-1/289), arcsin(1-(1+8)/289), arcsin (1-(1+8+16)/289), arcsin(1-(1+8+16+24)/289)...
//
// Ring declination declination Areas HNSKY
// minimum maximum equal area's
// size
// 0-1 -90 -85.23224404 1 1 {arcsin(1-1/289)}
// 1-2 -85.23224404 -75.66348756 8 4 {arcsin(1-(1+8)/289)}
// 2-3 -75.66348756 -65.99286637 16 8 {arcsin (1-(1+8+16)/289)}
// 4-5 -65.99286637 -56.14497387 24 12
// 6-7 -56.14497387 -46.03163067 32 16
// 7-8 -46.03163067 -35.54307745 40 20
// 8-9 -35.54307745 -24.53348115 48 24
// 7-8 -24.53348115 -12.79440589 56 28
// 8-9 -12.79440589 0 64 32
// 9-10 0 12.79440589 64 32
// 10-11 12.79440589 24.53348115 56 28
// 11-12 24.53348115 35.54307745 48 24
// 12-13 35.54307745 46.03163067 40 20
// 13-14 46.03163067 56.14497387 32 16
// 14-15 56.14497387 65.99286637 24 12
// 15-16 65.99286637 75.66348756 16 8
// 16-17 75.66348756 85.23224404 8 4
// 17-18 85.23224404 90 1 1
// ----------------------------------------------------
// Total 578 290
// The new 1476 format
// The sky is devided in 1476 areas of around 5 degrees (90/17.5) using ring of constant declination=DEC.
// Each ring is divided by lines of constant RA such that the minimum width in RA is about 5 degrees (deltaRA*cos(DEC).
// Declination Declination Ring RA RA step RA step DEC step Files
// minimum maximum cells distance distance distance
// north[degr] south[degr]
// -90.00000000 -87.42857143 0-1 1 0101.1476
// -87.42857143 -82.28571429 1-2 3 5.38377964 16.10799190 -2.57142857 {=90/(2*17.5)} 0201.1476, 0202.1476, 0203.1476
// -82.28571429 -77.14285714 2-3 9 5.36933063 8.90083736 -5.14285714 {=90/17.5} 0301.1476, . . . . . , 0309.1476
// -77.14285714 -72.00000000 3-4 15 5.34050241 7.41640786 -5.14285714 {=90/17.5} 0401.1476, . . . . . , 0415.1476
// -72.00000000 -66.85714286 4-5 21 5.29743419 6.73757197 -5.14285714 0501.1476, . . . . . , 0521.1476
// -66.85714286 -61.71428571 5-6 27 5.24033376 6.31824883 -5.14285714 06 . . .
// -61.71428571 -56.57142857 6-7 33 5.16947632 6.00978525 -5.14285714 07 . . .
// -56.57142857 -51.42857143 7-8 38 5.21902403 5.90674549 -5.14285714 08 . . .
// -51.42857143 -46.28571429 8-9 43 5.21991462 5.78564078 -5.14285714 09 . . .
// -46.28571429 -41.14285714 9-10 48 5.18296987 5.64803600 -5.14285714 10 . . .
// -41.14285714 -36.00000000 10-11 52 5.21357169 5.60088688 -5.14285714 11 . . .
// -36.00000000 -30.85714286 11-12 56 5.20082354 5.51859939 -5.14285714 12 . . .
// -30.85714286 -25.71428571 12-13 60 5.15069276 5.40581321 -5.14285714 13 . . .
// -25.71428571 -20.57142857 13-14 63 5.14839353 5.34991355 -5.14285714 14 . . .
// -20.57142857 -15.42857143 14-15 65 5.18530082 5.33887123 -5.14285714 15 . . .
// -15.42857143 -10.28571429 15-16 67 5.17950194 5.28678585 -5.14285714 16 . . .
// -10.28571429 -5.14285714 16-17 68 5.20903900 5.27280509 -5.14285714 17 . . .
// -5.14285714 0.00000000 17-18 69 5.19638762 5.21739130 -5.14285714 18 . . .
//
// 0.00000000 5.14285714 18-19 69 5.21739130 5.19638762 -5.14285714 19 . . .
// 5.14285714 10.28571429 19-20 68 5.27280509 5.20903900 -5.14285714 20 . . .
// 10.28571429 15.42857143 20-21 67 5.28678585 5.17950194 -5.14285714 21 . . .
// 15.42857143 20.57142857 21-22 65 5.33887123 5.18530082 -5.14285714 22 . . .
// 20.57142857 25.71428571 22-23 63 5.34991355 5.14839353 -5.14285714 23 . . .
// 25.71428571 30.85714286 23-24 60 5.40581321 5.15069276 -5.14285714 24 . . .
// 30.85714286 36.00000000 24-25 56 5.51859939 5.20082354 -5.14285714 25 . . .
// 36.00000000 41.14285714 25-26 52 5.60088688 5.21357169 -5.14285714 26 . . .
// 41.14285714 46.28571429 26-27 48 5.64803600 5.18296987 -5.14285714 27 . . .
// 46.28571429 51.42857143 27-28 43 5.78564078 5.21991462 -5.14285714 28 . . .
// 51.42857143 56.57142857 28-29 38 5.90674549 5.21902403 -5.14285714 29 . . .
// 56.57142857 61.71428571 29-30 33 6.00978525 5.16947632 -5.14285714 30 . . .
// 61.71428571 66.85714286 30-31 27 6.31824883 5.24033376 -5.14285714 31 . . .
// 66.85714286 72.00000000 31-32 21 6.73757197 5.29743419 -5.14285714 32 . . .
// 72.00000000 77.14285714 32-33 15 7.41640786 5.34050241 -5.14285714 33 . . .
// 77.14285714 82.28571429 33-34 9 8.90083736 5.36933063 -5.14285714 34 . . .
// 82.28571429 87.42857143 34-35 3 16.10799190 5.38377964 -5.14285714 3501.1476, 3502.1476, 3503.1476
// 87.42857143 90.00000000 36-37 1 3601.1476
//
//
// Total 1476 cells/areas
//The 1476 star records are the same as for the 290 file format.
{Magnitude: The stars are sorted with an accuracy of 0.1 magnitude. Prior to each group a special record is written where RA is $FFFFFF and DEC contains the magnitude}
type
hnskyhdr290_6 = packed record {G16 for storing Rp-Bp. This format is the same as 290_5 but Gaia color information added in an extra shortint}
ra7 : byte; {The RA is stored as a 3 bytes word. The DEC position is stored as a two's complement (=standard), three bytes integer. The resolution of this three byte storage will be for RA: 360*60*60/((256*256*256)-1) = 0.077 arc seconds. For the DEC value it will be: 90*60*60/((128*256*256)-1) = 0.039 arc seconds.}
ra8 : byte;
ra9 : byte;
dec7: byte;
dec8: byte;
B_R: shortint;{Gaia Bp-Rp}
end;
hnskyhdr290_5 = packed record {Most compact format, used for Gaia}
ra7 : byte;
ra8 : byte;
ra9 : byte;
dec7: byte;
dec8: byte;
end;
// The .290 format divides the sky in 290 area's and 290 corresponding files with the extension .290. The 290 areas of similar area size except for the poles which are half of that size. Each star is stored in a record of 5 bytes. The files start 110 byte header with textual description and the record size binary stored in byte 110.
// The .1476 format divides the sky in 1476 area's and 1476 corresponding files with the extension .1476. The 1476 areas of similar area size except for the poles which are half of that size. Each star is stored in a record of 5 bytes. The files start 110 byte header with textual description and the record size binary stored in byte 110.
//
// The RA is stored as a 3 bytes word. The DEC position is stored as a two's complement (=standard), three bytes integer. The resolution of this three byte storage will be for RA: 360*60*60/((256*256*256)-1) = 0.077 arc seconds. For the DEC value it will be: 90*60*60/((128*256*256)-1) = 0.039 arc seconds. The starts are sorted on magnitude and the magnitude is stored in a byte of the special preceding header with an offset to make all values positive.
//
// Example of star Sirius RA and DEC position:
// The RA position is stored as C3 06 48 equals: (195+6*256+72*256*256)*24/((256*256*256)-1)=6.75247662 hours equals: 6:45:8.9
// The DEC position is stored as D7 39 E8, equals: 215 57 -24. The DEC is then (215+57*256-24*256*256)*90/((128*256*256)-1)=-16.7161401 degrees equals -16d 42 58
//
// Stars are sorted from bright to faint in the "0.1" magnitude steps. Within the magnitude range, the stars are additional sorted in DEC. For a series of stars with the same DEC9 value, a header-record
// is preceding containing the DEC9 value stored at location DEC7. Since the stars are already sorted in 290 areas, the number of DEC9 values is already limited by a factor 18.
// 1476-5 header-record example: FF FF FF 20 06 This indicates the following records have a DEC9 value of 20 -128 offset and a magnitude of (06 - 16)/10 equals -1.0 (new method, +16 offset).
//
//The shorter records methods become only space efficient for very large star collection of a few million stars. In these large collections many stars can be found with the same magnitude and DEC9 shortint. The Gaia database is only issued in the 1476-5 format of 5 bytes per star. or in an older format 290-6 (V17) or 290-5. The 290-6 has one more byte for the colour information. This is documented in the HNSKY planetarium program help file.
//So the record sequence will be as follows:
//
//header-record {new section will start with a different magnitude and dec9}
//record
//record
//record
//record
//header-record {new section will start with a different magnitude and dec9}
//record
//record
var
name_database : string;{name star database}
cache_valid_pos : integer;
database_type : integer;
var {################# initialised variables #########################}
file_open: boolean=false;{file is not open}
area2 : double=1*pi/180; {search area}
old_area : integer=9999999;
cache_position : integer=0;
implementation
uses astap_main, unit_stack {for memo2_message};
var {################# initialised variables #########################}
filenames290 : array[1..290] of string= {}
(('0101.290'),
('0201.290'), {combined cells from 8}
('0202.290'),
('0203.290'),
('0204.290'),
('0301.290'),
('0302.290'),
('0303.290'),
('0304.290'),
('0305.290'),
('0306.290'),
('0307.290'),
('0308.290'),
('0401.290'),
('0402.290'),
('0403.290'),
('0404.290'),
('0405.290'),
('0406.290'),
('0407.290'),
('0408.290'),
('0409.290'),
('0410.290'),
('0411.290'),
('0412.290'),
('0501.290'),
('0502.290'),
('0503.290'),
('0504.290'),
('0505.290'),
('0506.290'),
('0507.290'),
('0508.290'),
('0509.290'),
('0510.290'),
('0511.290'),
('0512.290'),
('0513.290'),
('0514.290'),
('0515.290'),
('0516.290'),
('0601.290'),
('0602.290'),
('0603.290'),
('0604.290'),
('0605.290'),
('0606.290'),
('0607.290'),
('0608.290'),
('0609.290'),
('0610.290'),
('0611.290'),
('0612.290'),
('0613.290'),
('0614.290'),
('0615.290'),
('0616.290'),
('0617.290'),
('0618.290'),
('0619.290'),
('0620.290'),
('0701.290'),
('0702.290'),
('0703.290'),
('0704.290'),
('0705.290'),
('0706.290'),
('0707.290'),
('0708.290'),
('0709.290'),
('0710.290'),
('0711.290'),
('0712.290'),
('0713.290'),
('0714.290'),
('0715.290'),
('0716.290'),
('0717.290'),
('0718.290'),
('0719.290'),
('0720.290'),
('0721.290'),
('0722.290'),
('0723.290'),
('0724.290'),
('0801.290'),
('0802.290'),
('0803.290'),
('0804.290'),
('0805.290'),
('0806.290'),
('0807.290'),
('0808.290'),
('0809.290'),
('0810.290'),
('0811.290'),
('0812.290'),
('0813.290'),
('0814.290'),
('0815.290'),
('0816.290'),
('0817.290'),
('0818.290'),
('0819.290'),
('0820.290'),
('0821.290'),
('0822.290'),
('0823.290'),
('0824.290'),
('0825.290'),
('0826.290'),
('0827.290'),
('0828.290'),
('0901.290'),
('0902.290'),
('0903.290'),
('0904.290'),
('0905.290'),
('0906.290'),
('0907.290'),
('0908.290'),
('0909.290'),
('0910.290'),
('0911.290'),
('0912.290'),
('0913.290'),
('0914.290'),
('0915.290'),
('0916.290'),
('0917.290'),
('0918.290'),
('0919.290'),
('0920.290'),
('0921.290'),
('0922.290'),
('0923.290'),
('0924.290'),
('0925.290'),
('0926.290'),
('0927.290'),
('0928.290'),
('0929.290'),
('0930.290'),
('0931.290'),
('0932.290'),
('1001.290'),
('1002.290'),
('1003.290'),
('1004.290'),
('1005.290'),
('1006.290'),
('1007.290'),
('1008.290'),
('1009.290'),
('1010.290'),
('1011.290'),
('1012.290'),
('1013.290'),
('1014.290'),
('1015.290'),
('1016.290'),
('1017.290'),
('1018.290'),
('1019.290'),
('1020.290'),
('1021.290'),
('1022.290'),
('1023.290'),
('1024.290'),
('1025.290'),
('1026.290'),
('1027.290'),
('1028.290'),
('1029.290'),
('1030.290'),
('1031.290'),
('1032.290'),
('1101.290'),
('1102.290'),
('1103.290'),
('1104.290'),
('1105.290'),
('1106.290'),
('1107.290'),
('1108.290'),
('1109.290'),
('1110.290'),
('1111.290'),
('1112.290'),
('1113.290'),
('1114.290'),
('1115.290'),
('1116.290'),
('1117.290'),
('1118.290'),
('1119.290'),
('1120.290'),
('1121.290'),
('1122.290'),
('1123.290'),
('1124.290'),
('1125.290'),
('1126.290'),
('1127.290'),
('1128.290'),
('1201.290'),
('1202.290'),
('1203.290'),
('1204.290'),
('1205.290'),
('1206.290'),
('1207.290'),
('1208.290'),
('1209.290'),
('1210.290'),
('1211.290'),
('1212.290'),
('1213.290'),
('1214.290'),
('1215.290'),
('1216.290'),
('1217.290'),
('1218.290'),
('1219.290'),
('1220.290'),
('1221.290'),
('1222.290'),
('1223.290'),
('1224.290'),
('1301.290'),
('1302.290'),
('1303.290'),
('1304.290'),
('1305.290'),
('1306.290'),
('1307.290'),
('1308.290'),
('1309.290'),
('1310.290'),
('1311.290'),
('1312.290'),
('1313.290'),
('1314.290'),
('1315.290'),
('1316.290'),
('1317.290'),
('1318.290'),
('1319.290'),
('1320.290'),
('1401.290'),
('1402.290'),
('1403.290'),
('1404.290'),
('1405.290'),
('1406.290'),
('1407.290'),
('1408.290'),
('1409.290'),
('1410.290'),
('1411.290'),
('1412.290'),
('1413.290'),
('1414.290'),
('1415.290'),
('1416.290'),
('1501.290'),
('1502.290'),
('1503.290'),
('1504.290'),
('1505.290'),
('1506.290'),
('1507.290'),
('1508.290'),
('1509.290'),
('1510.290'),
('1511.290'),
('1512.290'),
('1601.290'),
('1602.290'),
('1603.290'),
('1604.290'),
('1605.290'),
('1606.290'),
('1607.290'),
('1608.290'),
('1701.290'),
('1702.290'),
('1703.290'),
('1704.290'),
('1801.290'));
dec_boundaries : array[0..18] of double=
((-90 * pi/180),
(-85.23224404* pi/180), {arcsin(1-1/289)}
(-75.66348756* pi/180), {arcsin(1-(1+8)/289)}
(-65.99286637* pi/180), {arcsin(1-(1+8+16)/289)}
(-56.14497387* pi/180), {arcsin(1-(1+8+16+24)/289)}
(-46.03163067* pi/180),
(-35.54307745* pi/180),
(-24.53348115* pi/180),
(-12.79440589* pi/180),
(0),
(12.79440589* pi/180),
(24.53348115* pi/180),
(35.54307745* pi/180),
(46.03163067* pi/180),
(56.14497387* pi/180),
(65.99286637* pi/180),
(75.66348756* pi/180),
(85.23224404* pi/180),
(90 * pi/180) );
filenames1476 : array[1..1476] of string= {}
(('0101.1476'),
('0201.1476'), {combined cells from 8}
('0202.1476'),
('0203.1476'),
('0301.1476'),
('0302.1476'),
('0303.1476'),
('0304.1476'),
('0305.1476'),
('0306.1476'),
('0307.1476'),
('0308.1476'),
('0309.1476'),
('0401.1476'),
('0402.1476'),
('0403.1476'),
('0404.1476'),
('0405.1476'),
('0406.1476'),
('0407.1476'),
('0408.1476'),
('0409.1476'),
('0410.1476'),
('0411.1476'),
('0412.1476'),
('0413.1476'),
('0414.1476'),
('0415.1476'),
('0501.1476'),
('0502.1476'),
('0503.1476'),
('0504.1476'),
('0505.1476'),
('0506.1476'),
('0507.1476'),
('0508.1476'),
('0509.1476'),
('0510.1476'),
('0511.1476'),
('0512.1476'),
('0513.1476'),
('0514.1476'),
('0515.1476'),
('0516.1476'),
('0517.1476'),
('0518.1476'),
('0519.1476'),
('0520.1476'),
('0521.1476'),
('0601.1476'),
('0602.1476'),
('0603.1476'),
('0604.1476'),
('0605.1476'),
('0606.1476'),
('0607.1476'),
('0608.1476'),
('0609.1476'),
('0610.1476'),
('0611.1476'),
('0612.1476'),
('0613.1476'),
('0614.1476'),
('0615.1476'),
('0616.1476'),
('0617.1476'),
('0618.1476'),
('0619.1476'),
('0620.1476'),
('0621.1476'),
('0622.1476'),
('0623.1476'),
('0624.1476'),
('0625.1476'),
('0626.1476'),
('0627.1476'),
('0701.1476'),
('0702.1476'),
('0703.1476'),
('0704.1476'),
('0705.1476'),
('0706.1476'),
('0707.1476'),
('0708.1476'),
('0709.1476'),
('0710.1476'),
('0711.1476'),
('0712.1476'),
('0713.1476'),
('0714.1476'),
('0715.1476'),
('0716.1476'),
('0717.1476'),
('0718.1476'),
('0719.1476'),
('0720.1476'),
('0721.1476'),
('0722.1476'),
('0723.1476'),
('0724.1476'),
('0725.1476'),
('0726.1476'),
('0727.1476'),
('0728.1476'),
('0729.1476'),
('0730.1476'),
('0731.1476'),
('0732.1476'),
('0733.1476'),
('0801.1476'),
('0802.1476'),
('0803.1476'),
('0804.1476'),
('0805.1476'),
('0806.1476'),
('0807.1476'),
('0808.1476'),
('0809.1476'),
('0810.1476'),
('0811.1476'),
('0812.1476'),
('0813.1476'),
('0814.1476'),
('0815.1476'),
('0816.1476'),
('0817.1476'),
('0818.1476'),
('0819.1476'),
('0820.1476'),
('0821.1476'),
('0822.1476'),
('0823.1476'),
('0824.1476'),
('0825.1476'),
('0826.1476'),
('0827.1476'),
('0828.1476'),
('0829.1476'),
('0830.1476'),
('0831.1476'),
('0832.1476'),
('0833.1476'),
('0834.1476'),
('0835.1476'),
('0836.1476'),
('0837.1476'),
('0838.1476'),
('0901.1476'),
('0902.1476'),
('0903.1476'),
('0904.1476'),
('0905.1476'),
('0906.1476'),
('0907.1476'),
('0908.1476'),
('0909.1476'),
('0910.1476'),
('0911.1476'),
('0912.1476'),
('0913.1476'),
('0914.1476'),
('0915.1476'),
('0916.1476'),
('0917.1476'),
('0918.1476'),
('0919.1476'),
('0920.1476'),
('0921.1476'),
('0922.1476'),
('0923.1476'),
('0924.1476'),
('0925.1476'),
('0926.1476'),
('0927.1476'),
('0928.1476'),
('0929.1476'),
('0930.1476'),
('0931.1476'),
('0932.1476'),
('0933.1476'),
('0934.1476'),
('0935.1476'),
('0936.1476'),
('0937.1476'),
('0938.1476'),
('0939.1476'),
('0940.1476'),
('0941.1476'),
('0942.1476'),
('0943.1476'),
('1001.1476'),
('1002.1476'),
('1003.1476'),
('1004.1476'),
('1005.1476'),
('1006.1476'),
('1007.1476'),
('1008.1476'),
('1009.1476'),
('1010.1476'),
('1011.1476'),
('1012.1476'),
('1013.1476'),
('1014.1476'),
('1015.1476'),
('1016.1476'),
('1017.1476'),
('1018.1476'),
('1019.1476'),
('1020.1476'),
('1021.1476'),
('1022.1476'),
('1023.1476'),
('1024.1476'),
('1025.1476'),
('1026.1476'),
('1027.1476'),
('1028.1476'),
('1029.1476'),
('1030.1476'),
('1031.1476'),
('1032.1476'),
('1033.1476'),
('1034.1476'),
('1035.1476'),
('1036.1476'),
('1037.1476'),
('1038.1476'),
('1039.1476'),
('1040.1476'),
('1041.1476'),
('1042.1476'),
('1043.1476'),
('1044.1476'),
('1045.1476'),
('1046.1476'),
('1047.1476'),
('1048.1476'),
('1101.1476'),
('1102.1476'),
('1103.1476'),
('1104.1476'),
('1105.1476'),
('1106.1476'),
('1107.1476'),
('1108.1476'),
('1109.1476'),
('1110.1476'),
('1111.1476'),
('1112.1476'),
('1113.1476'),
('1114.1476'),
('1115.1476'),
('1116.1476'),
('1117.1476'),
('1118.1476'),
('1119.1476'),
('1120.1476'),
('1121.1476'),
('1122.1476'),
('1123.1476'),
('1124.1476'),
('1125.1476'),
('1126.1476'),
('1127.1476'),
('1128.1476'),
('1129.1476'),
('1130.1476'),
('1131.1476'),
('1132.1476'),
('1133.1476'),
('1134.1476'),
('1135.1476'),
('1136.1476'),
('1137.1476'),
('1138.1476'),
('1139.1476'),
('1140.1476'),
('1141.1476'),
('1142.1476'),
('1143.1476'),
('1144.1476'),
('1145.1476'),
('1146.1476'),
('1147.1476'),
('1148.1476'),
('1149.1476'),
('1150.1476'),
('1151.1476'),
('1152.1476'),
('1201.1476'),
('1202.1476'),
('1203.1476'),
('1204.1476'),
('1205.1476'),
('1206.1476'),
('1207.1476'),
('1208.1476'),
('1209.1476'),
('1210.1476'),
('1211.1476'),
('1212.1476'),
('1213.1476'),
('1214.1476'),
('1215.1476'),
('1216.1476'),
('1217.1476'),
('1218.1476'),
('1219.1476'),
('1220.1476'),
('1221.1476'),
('1222.1476'),
('1223.1476'),
('1224.1476'),
('1225.1476'),
('1226.1476'),
('1227.1476'),
('1228.1476'),
('1229.1476'),
('1230.1476'),
('1231.1476'),
('1232.1476'),
('1233.1476'),
('1234.1476'),
('1235.1476'),
('1236.1476'),
('1237.1476'),
('1238.1476'),
('1239.1476'),
('1240.1476'),
('1241.1476'),
('1242.1476'),
('1243.1476'),
('1244.1476'),
('1245.1476'),
('1246.1476'),
('1247.1476'),
('1248.1476'),
('1249.1476'),
('1250.1476'),
('1251.1476'),
('1252.1476'),
('1253.1476'),
('1254.1476'),
('1255.1476'),
('1256.1476'),
('1301.1476'),
('1302.1476'),
('1303.1476'),
('1304.1476'),
('1305.1476'),
('1306.1476'),
('1307.1476'),
('1308.1476'),
('1309.1476'),
('1310.1476'),
('1311.1476'),
('1312.1476'),
('1313.1476'),
('1314.1476'),
('1315.1476'),
('1316.1476'),
('1317.1476'),
('1318.1476'),
('1319.1476'),
('1320.1476'),
('1321.1476'),
('1322.1476'),
('1323.1476'),
('1324.1476'),
('1325.1476'),
('1326.1476'),
('1327.1476'),
('1328.1476'),
('1329.1476'),
('1330.1476'),
('1331.1476'),
('1332.1476'),
('1333.1476'),
('1334.1476'),
('1335.1476'),
('1336.1476'),
('1337.1476'),
('1338.1476'),
('1339.1476'),
('1340.1476'),
('1341.1476'),
('1342.1476'),
('1343.1476'),
('1344.1476'),
('1345.1476'),
('1346.1476'),
('1347.1476'),
('1348.1476'),
('1349.1476'),
('1350.1476'),
('1351.1476'),
('1352.1476'),
('1353.1476'),
('1354.1476'),
('1355.1476'),
('1356.1476'),
('1357.1476'),
('1358.1476'),
('1359.1476'),
('1360.1476'),
('1401.1476'),
('1402.1476'),
('1403.1476'),
('1404.1476'),
('1405.1476'),
('1406.1476'),
('1407.1476'),
('1408.1476'),
('1409.1476'),
('1410.1476'),
('1411.1476'),
('1412.1476'),
('1413.1476'),
('1414.1476'),
('1415.1476'),
('1416.1476'),
('1417.1476'),
('1418.1476'),
('1419.1476'),
('1420.1476'),
('1421.1476'),
('1422.1476'),
('1423.1476'),
('1424.1476'),
('1425.1476'),
('1426.1476'),
('1427.1476'),
('1428.1476'),
('1429.1476'),
('1430.1476'),
('1431.1476'),
('1432.1476'),
('1433.1476'),
('1434.1476'),
('1435.1476'),
('1436.1476'),
('1437.1476'),
('1438.1476'),
('1439.1476'),
('1440.1476'),