forked from twillis449/ALBUS_ionosphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_iri.f
1738 lines (1554 loc) · 52.9 KB
/
test_iri.f
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
c jma_irisub.F, version number can be found at the end of this comment.
c-----------------------------------------------------------------------
C
C Includes subroutines IRI_SUB and IRI_WEB to compute IRI parameters
C for specified location, date, time, and altitude range and subroutine
C IRI_WEB to computes IRI parameters for specified location, date, time
C and variable range; variable can be altitude, latitude, longitude,
C year, month, day of month, day of year, or hour (UT or LT).
C IRI_WEB requires IRI_SUB. Both subroutines require linking with the
c following library files IRIFUN.FOR, IRITEC.FOR, IRIDREG.FOR,
c CIRA.FOR, IGRF.FOR
c
c !!!!! Subroutine INITIALIZE has to be called once before calling
c !!!!! iri_sub. This is already included in subroutine IRI_WEB which
c !!!!! calls iri_sub.
C
c i/o units: 6 messages (during execution) to monitor
c 10 CCIR and URSI coefficients
c 11 alternate unit for message file (if jf(12)=.false.)
c 12 solar/ionospheric indices: ig_rz.dat
c 13 magnetic indices: ap.dat
c 14 igrf coefficients
c
c-----------------------------------------------------------------------
c
C CHANGES FROM IRIS11.FOR TO IRIS12.FOR:
C - CIRA-1986 INSTEAD OF CIRA-1972 FOR NEUTRAL TEMPERATURE
C - 10/30/91 VNER FOR NIGHTTIME LAY-VERSION: ABS(..)
C - 10/30/91 XNE(..) IN CASE OF LAY-VERSION
C - 10/30/91 CHANGE SSIN=F/T TO IIQU=0,1,2
C - 10/30/91 Te > Ti > Tn ENFORCED IN FINAL PROFILE
C - 10/30/91 SUB ALL NAMES WITH 6 OR MORE CHARACTERS
C - 10/31/91 CORRECTED HF1 IN HST SEARCH: NE(HF1)>NME
C - 11/14/91 C1=0 IF NO F1-REGION
C - 11/14/91 CORRECTED HHMIN AND HZ FOR LIN. APP.
C - 1/28/92 RZ12=0 included
C - 1/29/92 NEQV instead of NE between URSIF2 and URSIFO
C - 5/ 1/92 CCIR and URSI input as in IRID12
C - 9/ 2/94 Decimal month (ZMONTH) for IONCOM
C - 9/ 2/94 Replace B0POL with B0_TAB; better annually
C - 1/ 4/95 DY for h>hmF2
C - 2/ 2/95 IG for foF2, topside; RZ for hmF2, B0_TAB, foF1, NmD
C - 2/ 2/95 winter no longer exclusive for F1 occurrrence
C - 2/ 2/95 RZ and IG incl as DATA statement; smooth annual var.
C CHANGES FROM IRIS12.FOR TO IRIS13.FOR:
C - 10/26/95 incl year as input and corrected MODA; nrm for zmonth
C - 10/26/95 use TCON and month-month interpolation in foF2, hmF2
C - 10/26/95 TCON only if date changes
C - 11/25/95 take out logicals TOPSI, BOTTO, and BELOWE
C - 12/ 1/95 UT_LT for (date-)correct UT<->LT conversion
C - 12/22/95 Change ZETA cov term to cov < 180; use cov inst covsat
C - 2/23/96 take covmax(R<150) for topside; lyear,.. for lt
C - 3/26/96 topside: 94.5/BETA inst 94.45/..; cov -> covsat(<=188)
C - 5/01/96 No longer DY for h>hmF2 (because of discontinuity)
C - 12/01/96 IRIV13: HOUR for IVAR=1 (height)
C - 4/25/97 D-region: XKK le 10 with D1 calc accordingly.
C - 1/12/97 DS model for lower ion compoistion DY model
C - 5/19/98 seamon=zmonth if lati>0; zmonth= ...(1.0*iday)/..
C - 5/19/98 DY ion composition model below 300 km now DS model
C - 5/19/98 DS model includes N+, Cl down to 75 km HNIA changed
C - 5/28/98 User input for Rz12, foF1/NmF1, hmF1, foE/NmE, hmE
C - 9/ 2/98 1 instead of 0 in MODA after UT_LT call
C - 4/30/99 constants moved from DATA statement into program
C - 4/30/99 changed konsol-unit to 13 (12 is for IG_RZ).
C - 5/29/99 the limit for IG comp. from Rz12-input is 174 not 274
C - 11/08/99 jf(18)=t simple UT to LT conversion, otherwise UT_LT
C - 11/09/99 added COMMON/const1/humr,dumr also for CIRA86
C CHANGES FROM IRIS13.FOR TO IRISUB.FOR:
c-----------------------------------------------------------------------
C-Version-MM/DD/YY-Description (person reporting correction)
C 2000.01 05/09/00 B0_98 replaces B0_TAB and B1: 1.9/day to 2.6/night
C 2000.02 06/11/00 including new F1 and indermediate region
C 2000.03 10/15/00 include Scherliess-Fejer drift model
C 2000.04 10/29/00 include special option for D region models
C 2000.05 12/07/00 change name IRIS13 to IRISUB
C 2000.06 12/14/00 jf(30),outf(20,100),oarr(50)
C 2000.07 03/17/01 include Truhlik-Triskova Te model and IGRF
C 2000.08 05/07/01 include Fuller-Rowell-Condrescu storm model
C 2000.09 07/09/01 LATI instead of LAT1 in F00 call (M. Torkar)
C 2000.10 07/09/01 sdte instead of dte in ELTEIK call (P. Wilkinson)
C 2000.11 09/18/01 correct computation of foF2 for Rz12 user input
C 2000.12 09/19/01 Call APF only if different date and time (P. Webb)
c 2000.13 10/28/02 replace TAB/6 blanks, enforce 72/line (D. Simpson)
C 2000.14 11/08/02 change unit for message file to 11 (13 is Kp)
C 2000.15 01/27/03 change F1_prob output; Te-IK for fix h and ELTE(h)
C 2000.16 02/04/03 along<0 -> along=along+360; F1 occ for hmf1&foF1
C 2000.17 02/05/03 zyear =12.97 (Dec 31); idayy=#days per year
C 2000.18 02/06/03 jf(27) for IG12 user input; all F1 prob in oar
C 2000.19 07/14/04 covsat<188 instead of covsat=<f(IG)<188
C 2000.20 02/09/05 declare INVDIP as real F. Morgan
C 2005 Sep 12 James M Anderson --JIVE convert to a portable subroutine
C library. Remove unnecessary printing to screen,
C and add path to databases. Note, unit 6 is
C stderr, and should be treated as such.
C
C*****************************************************************
C********* INTERNATIONAL REFERENCE IONOSPHERE (IRI). *************
C*****************************************************************
C**************** ALL-IN-ONE SUBROUTINE *************************
C*****************************************************************
C
C
SUBROUTINE JMA_IRI_SUB(BPATH,
& ALATI,ALONG,IYYYY,MMDD,DHOUR,
& HEIGHT,NE_OUT)
IMPLICIT NONE
C-----------------------------------------------------------------
C
C INPUT: BPATH base pathname to datafiles
C FALSE(1:30) true/false switches for several options
C JMAG =0 geographic = 1 geomagnetic coordinates
C ALATI,ALONG LATITUDE NORTH AND LONGITUDE EAST IN DEGREES
C IYYYY Year as YYYY, e.g. 1985
C MMDD (-DDD) DATE (OR DAY OF YEAR AS A NEGATIVE NUMBER)
C DHOUR LOCAL TIME (OR UNIVERSAL TIME + 25) IN DECIMAL
C HOURS
C HEIBEG, HEIGHT RANGE IN KM; maximal 100 heights, i.e.
C HEIEND,HEISTP int((heiend-heibeg)/heistp)+1.le.100
C
C JF switches to turn off/on (.true./.false.) several options
C
C i .true. .false. standard version
C -----------------------------------------------------------------
C 1 Ne computed Ne not computed t
C 2 Te, Ti computed Te, Ti not computed t
C 3 Ni computed Ni not computed t
C 4 B0 - Table option B0 - Gulyaeva (1987) t
C 5 foF2 - CCIR foF2 - URSI false
C 6 Ni - Standard Ni - Danilov-95 false
C 7 Ne - Tops: f10.7<188 f10.7 unlimited t
C 8 foF2 from model foF2 or NmF2 - user input t
C 9 hmF2 from model hmF2 or M3000F2 - user input t
C 10 Te - Standard Te - Using Te/Ne correlation t
C 11 Ne - Standard Profile Ne - Lay-function formalism t
C 12 Messages to unit 6 Messages to unit 12 t
C {all messages can be turned off by setting KONSOL=1 internally}
C 13 foF1 from model foF1 or NmF1 - user input t
C 14 hmF1 from model hmF1 - user input (only Lay version)t
C 15 foE from model foE or NmE - user input t
C 16 hmE from model hmE - user input t
C 17 Rz12 from file Rz12 - user input t
C 18 simple ut<->lt using ut_lt subroutine t
C 19 F1 probability model critical solar zenith angle (old) t
C 20 standard F1 standard F1 plus L condition t
C 21 ion drift not computed ion drift computed false
C 22 ion densities in % ion densities in m-3 t
C 23 Te_tops (Aeros,ISIS) Te_topside (Intercosmos) t
C 24 D-region: IRI-95 Special: 3 D-region models t
C 25 F107D=COV F107D user input (oarr(41)) t
C 26 foF2 storm model no storm updating t
C 27 IG12 from file IG12 - user input
C 28-30 unused
C ------------------------------------------------------------------
C
C Depending on the jf() settings additional INPUT parameters may
c be required:
C
C Setting INPUT parameter
C -----------------------------------------------------------------
C jf(8) =.false. OARR(1)=user input for foF2/MHz or NmF2/m-3
C jf(9) =.false. OARR(2)=user input for hmF2/km or M(3000)F2
C jf(10 )=.false. OARR(15),OARR(16)=user input for Ne(300km),
C Ne(400km)/m-3. Use OARR()=-1 if one of these values is not
C available. If jf(23)=.false. then Ne(300km), Ne(550km)/m-3.
C jf(13) =.false. OARR(3)=user input for foF1/MHz or NmF1/m-3
C jf(14) =.false. OARR(4)=user input for hmF1/km
C jf(15) =.false. OARR(5)=user input for foE/MHz or NmE/m-3
C jf(16) =.false. OARR(6)=user input for hmE/km
C jf(17) =.flase. OARR(33)=user input for Rz12
C jf(21) =.false. OARR(41)=user input for daily F10.7 index
C jf(23) =.false. OARR(41)=user input for daily F10.7 index
C jf(24) =.false. OARR(41)=user input for daily F10.7 index
C optional for jf(21:24); default is F10.7D=COV
C jf(25) =.false. OARR(41)=user input for daily F10.7 index
C if oarr(41).le.0 then 12-month running mean is
C taken from internal file]
C jf(27) =.flase. OARR(39)=user input for IG12
C
C
C OUTPUT: OUTF(1:20,1:100)
C OUTF(1,*) ELECTRON DENSITY/M-3
C OUTF(2,*) NEUTRAL TEMPERATURE/K
C OUTF(3,*) ION TEMPERATURE/K
C OUTF(4,*) ELECTRON TEMPERATURE/K
C OUTF(5,*) O+ ION DENSITY/% or /M-3 if jf(22)=f
C OUTF(6,*) H+ ION DENSITY/% or /M-3 if jf(22)=f
C OUTF(7,*) HE+ ION DENSITY/% or /M-3 if jf(22)=f
C OUTF(8,*) O2+ ION DENSITY/% or /M-3 if jf(22)=f
C OUTF(9,*) NO+ ION DENSITY/% or /M-3 if jf(22)=f
C AND, IF JF(6)=.FALSE.:
C OUTF(10,*) CLUSTER IONS DEN/% or /M-3 if jf(22)=f
C OUTF(11,*) N+ ION DENSITY/% or /M-3 if jf(22)=f
C OUTF(12,*)
C OUTF(13,*) D/E-region densities (Friedrich)
C OUTF(14,*) 1:7 Danilov for 60,65..90km; 8:14 for a
C major Stratospheric Warming (SW=1) event; 15:21
C for strong Winter Anomaly (WA=1) conditions
C OUTF(15-20,*) free
c
C OARR(1:50) ADDITIONAL OUTPUT PARAMETERS
C
C #OARR(1) = NMF2/M-3 #OARR(2) = HMF2/KM
C #OARR(3) = NMF1/M-3 #OARR(4) = HMF1/KM
C #OARR(5) = NME/M-3 #OARR(6) = HME/KM
C OARR(7) = NMD/M-3 OARR(8) = HMD/KM
C OARR(9) = HHALF/KM OARR(10) = B0/KM
C OARR(11) =VALLEY-BASE/M-3 OARR(12) = VALLEY-TOP/KM
C OARR(13) = TE-PEAK/K OARR(14) = TE-PEAK HEIGHT/KM
C #OARR(15) = TE-MOD(300KM) #OARR(16) = TE-MOD(400KM)/K
C OARR(17) = TE-MOD(600KM) OARR(18) = TE-MOD(1400KM)/K
C OARR(19) = TE-MOD(3000KM) OARR(20) = TE(120KM)=TN=TI/K
C OARR(21) = TI-MOD(430KM) OARR(22) = X/KM, WHERE TE=TI
C OARR(23) = SOL ZENITH ANG/DEG OARR(24) = SUN DECLINATION/DEG
C OARR(25) = DIP/deg OARR(26) = DIP LATITUDE/deg
C OARR(27) = MODIFIED DIP LAT. OARR(28) = DELA
C OARR(29) = sunrise/dec. hours OARR(30) = sunset/dec. hours
C OARR(31) = ISEASON (1=spring) OARR(32) = NSEASON (northern)
C #OARR(33) = Rz12 OARR(34) = Covington Index
C OARR(35) = B1 oarr(36) = M(3000)F2
C $oarr(37) = TEC/m-2 $oarr(38) = TEC_top/TEC*100.
C #OARR(39) = gind (IG12) oarr(40) = F1 probability (old)
C #OARR(41) = F10.7 daily oarr(42) = c1 (F1 shape)
C OARR(43) = daynr
C OARR(44) = equatorial vertical ion drift in m/s
C OARR(45) = foF2_storm/foF2_quiet
C OARR(46) = F1 probability without L condition
C OARR(47) = F1 probability with L condition incl.
C # INPUT as well as OUTPUT parameter
C $ special for IRIWeb (only place-holders)
c-----------------------------------------------------------------------
C*****************************************************************
C*** THE ALTITUDE LIMITS ARE: LOWER (DAY/NIGHT) UPPER ***
C*** ELECTRON DENSITY 60/80 KM 1000 KM ***
C*** TEMPERATURES 120 KM 2500/3000 KM ***
C*** ION DENSITIES 100 KM 1000 KM ***
C*****************************************************************
C*****************************************************************
C********* INTERNALLY **************
C********* ALL ANGLES ARE IN DEGREE **************
C********* ALL DENSITIES ARE IN M-3 **************
C********* ALL ALTITUDES ARE IN KM **************
C********* ALL TEMPERATURES ARE IN KELVIN **************
C********* ALL TIMES ARE IN DECIMAL HOURS **************
C*****************************************************************
C*****************************************************************
C*****************************************************************
INTEGER DAYNR,DDO,DO2,SEASON,SEADAY
REAL LATI,LONGI,MO2,MO,MODIP,NMF2,MAGBR,INVDIP,
& NMF1,NME,NMD,MM,MLAT,MLONG,NOBO2
CHARACTER*256 BPATH,stupid_FORTRAN_STRINGS
CHARACTER*256 FILNAM
REAL HEIGHT, NE_OUT
c -web-for webversion
c CHARACTER FILNAM*53
REAL ARIG,RZAR,F,RIF,E,XDELS,DNDS,
& FF0,XM0,F2,FM3,ddens,elg,
& FF0N,XM0N,F2N,FM3N,INDAP,
& AMP,HXL,SCL,B0B1,XSM,DTI,AHH,
& STTE,DTE,ATE,TEA,XNAR,param,OARR,
& OUTF,PG1O,PG2O,PG3O,PF1O,PF2O,
& PF3O,HO,HO2,DION
DIMENSION ARIG(3),RZAR(3),F(3),RIF(4),E(4),XDELS(4),DNDS(4),
& FF0(988),XM0(441),F2(13,76,2),FM3(9,49,2),ddens(3,7),elg(7),
& FF0N(988),XM0N(441),F2N(13,76,2),FM3N(9,49,2),INDAP(13),
& AMP(4),HXL(4),SCL(4),B0B1(5),XSM(4),MM(5),DTI(4),AHH(7),
& STTE(6),DTE(5),ATE(7),TEA(6),XNAR(2),param(2),OARR(50),
& OUTF(20),PG1O(80),PG2O(32),PG3O(80),PF1O(12),PF2O(4),
& PF3O(12),HO(4),MO(5),DDO(4),HO2(2),MO2(3),DO2(2),DION(7)
LOGICAL EXT,SCHALT,NIGHT,TECON(2),sam_mon,sam_yea,sam_ut,
& sam_date,F1REG,FOF2IN,HMF2IN,URSIF2,LAYVER,DY,GULB0,DREG,
& rzino,FOF1IN,HMF1IN,FOEIN,HMEIN,RZIN,sam_doy,F1_OCPRO,
& F1_L_COND,NODEN,NOTEM,NOION,TENEOP,OLD79,JF(30),URSIFO,
& igin,igino
REAL UMR,humr,dumr,ARGMAX,HMF2,HMF1,B0,B1,C1
REAL HZ, T, HST,HME,HEF,HMD,HDX,XKK,FP30,FP3U,FP1,FP2
REAL HS,TNHS,MXSM,XSM1,TEXOS,TLBDH,SIGMA,ATE1,BETA,ETA
REAL DELTA,ZETA,D1
INTEGER KONSOL,MONITO,IUCCIR
INTEGER JMAG,KI,JXNAR
REAL ALOG2,ALG100,ARZIN,AIGIN,F107D
REAL AFOF2,AFOF1,AHMF1,AFOE,AHME,AHMF2
REAL ALONG,ALATI,ABSLAT,XMA,YMA,ZMA,BET,DIP,DEC
REAL ABSMLT,ABSMDP,ABSMBR,RYEAR
INTEGER IYEAR,IYYYY,IDAYY,MMDD,MONTH,IDAY,NRDAYM
INTEGER LYEAR,LMONTH,LDAY,LDAYNR,IYTMP,IDTMP,LNRDAY
REAL DHOUR,UT,hour,ZMONTH,SEAMON,UT0,TTT,RRR,ZI,RSSN
REAL GIND,COV,COVSAT,SUNDEC,XHI,SAX,SUX,SUNDE1,XHINON
REAL SAXNON,SUXNON,HNEA,HNEE,DELA,DELL,FOE,FOEEDI
INTEGER NSEASN,MONTHO,IYEARO,IDAYNRO,NMONTH
INTEGER NMONO,MIDM,ICOORD,KUT,IIQU
REAL RR2,RR2N,RR1,RR1N,ZFOF2,FOUT,ZM3000,XMOUT,FOF2n
REAL XM300N,YFOF2,XM3000,FOF2,HMF2ED,STORMCORR
REAL CGLAT,COS2,FLU,EX,EX1,EPIN,ETA1,Z,Z1,Z2,SEAX
REAL GRAT,B0CNEW,HPOL,B0_98,FOF1,FOF1ED,F1PBW
REAL F1PBL,F1PBO,F1PB,XDEL,DNDHBR,HDEEP,WIDTH,DEPTH,DLNDH
REAL HEFOLD,VNER,HMEX,XMDED,XDX,DXDX,XKKMAX,VKP,F5SW
REAL F6WA,BNMF1,XE2H,XE2,HF1,HF2,XF2,XE3_1
REAL F1_C1,X,XF1,D,XNEHZ,HHALF,HV1R,HV2R,HHMF2,HTA,SEC
REAL TN120,SECNI,UTNI,TLBDN,HMAXD,HMAXN,TMAXD,TMAXN
REAL TN,DIPLAT,HTE,TET,TEN,DIMO,XL,DIPL,BABS,TEH2,SDTE
REAL TEDE,TNAHH2,STTE1,TNAHHI,STTE2,TID1,Z3,TIN1,TI1
REAL TEN1,ELTE,TNN1,TI13,TEDER,TI50,DTNDH,XTTS,TEX,TIX,TI
REAL HNIA,HNIE,ZZZ1,RDOMAX,EPSTEP,HO05,HFIXO,DELX,YMAXX
REAL Y,RPID,YO2H0O,HFIXO2,RDO2MX,YMO2Z
REAL ALDO21,XHMF1,ELEDE,XEN,XE_1,TNH,TIH,TEH,ROX,RHX,RNX,RHEX
REAL RNOX,RO2X,RCLUST,RDNO,XNORM,EDENS,DRIFT,HMF1M,TEXNI
REAL TN1NI,SIGNI,ETT,XTETI,H0O,YOH0O
INTEGER IYZ,IDZ,ICD,ISA,ISE,IJK,ICODE,MSUMO,IERROR
INTEGER I,J,K,ii,L
INTEGER IYYYY_OLD,MMDD_OLD
REAL DHOUR_OLD
LOGICAL WAS_INITED,DATE_CHANGE
COMMON /CONST/UMR /const1/humr,dumr /ARGEXP/ARGMAX
& /BLOCK1/HMF2,NMF2,HMF1,F1REG /BLOCK2/B0,B1,C1
& /BLOCK3/HZ,T,HST /BLOCK4/HME,NME,HEF
& /BLOCK5/NIGHT,E /BLOCK6/HMD,NMD,HDX
& /BLOCK7/D1,XKK,FP30,FP3U,FP1,FP2
& /BLOCK8/HS,TNHS,XSM,MM,DTI,MXSM
& /BLOTN/XSM1,TEXOS,TLBDH,SIGMA /BLOTE/AHH,ATE1,STTE,DTE
& /BLO10/BETA,ETA,DELTA,ZETA
& /iounit/konsol,monito
EXTERNAL XE1,XE2,XE3_1,XE4_1,XE5,XE6,TEDER
EXTERNAL TN,RPID
DATA WAS_INITED/.FALSE./
DATA XDELS/5.,5.,5.,10./
DATA DNDS/0.016,0.01,0.016,0.016/
DATA DDO/9,5,5,25/
DATA DO2/5,5/
DATA XNAR/0.0,0.0/
DATA DTE/5.,5.,10.,20.,20./
DATA DTI/10.,10.,20.,20./
DATA IYYYY_OLD/-10000/
DATA MMDD_OLD/-111111/
DATA DHOUR_OLD/-32.E20/
DATA B0B1 /.755566,.778596,.797332,.812928,.826146/
C Here are the operations flags. See what I might want done, and what
C not. 5,6,21 are set to false
DATA JF/.TRUE., .FALSE.,.FALSE.,.TRUE., .FALSE.,
& .FALSE.,.TRUE., .TRUE., .TRUE., .TRUE.,
& .TRUE., .TRUE., .TRUE., .TRUE., .TRUE.,
& .TRUE., .TRUE., .TRUE., .TRUE., .TRUE.,
& .FALSE.,.TRUE., .TRUE., .TRUE., .TRUE.,
& .TRUE., .TRUE., .TRUE., .TRUE., .TRUE./
save
print *, 'in JMA_IRI_SUB'
print *, ALATI, ALONG, IYYYY, MMDD, DHOUR, HEIGHT
C Is this some sort of output array? Clear it
DO KI=1,20
OUTF(KI)=-1.
ENDDO
DO KI=1,50
OARR(KI)=-1.
ENDDO
C Clear the output variable, just in case
NE_OUT = 0.0
C OK, here is the initialization section. Everything should be
C SAVE'd, so just initialize once
IF(WAS_INITED.eqv..FALSE.) THEN
WAS_INITED = .TRUE.
JMAG=0 ! Use geographic coordinates
C
C PROGRAM CONSTANTS
C
c$$$ ARGMAX=88.0
c$$$ pi=ATAN(1.0)*4.
c$$$ UMR=pi/180.
c$$$ humr=pi/12.
c$$$ dumr=pi/182.5
ALOG2=ALOG(2.)
ALG100=ALOG(100.)
C
C
C FIRST SPECIFY YOUR COMPUTERS CHANNEL NUMBERS ....................
C AGNR=OUTPUT (OUTPUT IS DISPLAYED OR STORED IN FILE OUTPUT.IRI)...
C IUCCIR=UNIT NUMBER FOR CCIR COEFFICIENTS ........................
c set konsol=1 if you do not want the konsol information
c
MONITO=6
IUCCIR=10
c -web- special for web version
c -web- KONSOL=1
C JMA set konsol to 0 for debugging, 6 to prevent debug output
KONSOL=6
C KONSOL=0
C if(.not.jf(12)) konsol=11
c
c selection of density, temperature and ion composition options ......
c
NODEN=(.not.jf(1))
NOTEM=(.not.jf(2))
NOION=(.not.jf(3))
DY=(.not.jf(6))
LAYVER=(.not.jf(11))
OLD79=(.not.jf(7))
GULB0=(.not.jf(4))
F1_OCPRO=(jf(19))
f1_l_cond=.false.
if(F1_OCPRO) F1_L_COND=(.not.jf(20))
DREG=jf(24)
c
c rz12, F10.7D input option ..........................................
c
RZIN=(.not.jf(17))
IF(RZIN) THEN
ARZIN=OARR(33)
else
oarr(33)=-1.
ENDIF
IGIN=(.not.jf(27))
IF(IGIN) THEN
AIGIN=OARR(39)
else
oarr(39)=-1.
ENDIF
IF(.not.jf(25)) THEN
f107d=OARR(41)
else
oarr(41)=-1.
ENDIF
c
c F2 peak density ....................................................
c
FOF2IN=(.not.jf(8))
IF(FOF2IN) THEN
AFOF2=OARR(1)
IF(AFOF2.GT.100.) AFOF2=SQRT(AFOF2/1.24E10)
else
oarr(1)=-1.
ENDIF
URSIF2=(.not.jf(5))
c
c F2 peak altitude ..................................................
c
HMF2IN=(.not.jf(9))
IF(HMF2IN) then
AHMF2=OARR(2)
else
oarr(2)=-1.
endif
c
c F1 peak density ...................................................
c
FOF1IN=(.not.jf(13))
IF(FOF1IN) THEN
AFOF1=OARR(3)
IF(AFOF1.GT.100.) AFOF1=SQRT(AFOF1/1.24E10)
else
oarr(3)=-1.
ENDIF
c
c F1 peak altitude ..................................................
c
HMF1IN=(.not.jf(14))
IF(HMF1IN) then
AHMF1=OARR(4)
if(.not.layver.and.(konsol.ne.6)) write(konsol,1939)
1939 format(' *Ne* User input of hmF1 is only possible for the LAY-',
& 'version')
else
oarr(4)=-1.
endif
c
c E peak density ....................................................
c
FOEIN=(.not.jf(15))
IF(FOEIN) THEN
AFOE=OARR(5)
IF(AFOE.GT.100.) AFOE=SQRT(AFOE/1.24E10)
else
oarr(5)=-1.
ENDIF
c
c E peak altitude ..................................................
c
HMEIN=(.not.jf(16))
IF(HMEIN) then
AHME=OARR(6)
else
oarr(6)=-1.
endif
c
C TE-NE MODEL OPTION ..............................................
C
TENEOP=(.not.jf(10))
IF(TENEOP) THEN
DO 8154 JXNAR=1,2
XNAR(JXNAR)=OARR(JXNAR+14)
TECON(JXNAR)=.FALSE.
8154 IF(XNAR(JXNAR).GT.0.) TECON(JXNAR)=.TRUE.
else
oarr(15)=-1.
oarr(16)=-1.
ENDIF
ENDIF ! initialization section
C
C CALCULATION OF GEOG. OR GEOM. COORDINATES IN DEG....................
C CALCULATION OF MAGNETIC INCLINATION (DIP), DECLINATION (DEC)........
C DIP LATITUDE (MAGBR) AND MODIFIED DIP (MODIP). ALL IN DEGREE......
C
if(along.lt.0.) along = along + 360.
IF(JMAG.GT.0) THEN
MLAT=ALATI
MLONG=ALONG
ELSE
LATI=ALATI
LONGI=ALONG
ENDIF
CALL GGM(JMAG,LONGI,LATI,MLONG,MLAT)
ABSLAT=ABS(LATI)
CALL FIELDG(LATI,LONGI,300.0,XMA,YMA,ZMA,BET,DIP,DEC,MODIP)
MAGBR=ATAN(0.5*TAN(DIP*UMR))/UMR
ABSMLT=ABS(MLAT)
ABSMDP=ABS(MODIP)
ABSMBR=ABS(MAGBR)
IF((IYYYY.NE.IYYYY_OLD).OR.(MMDD.NE.MMDD_OLD)) THEN
DATE_CHANGE = .TRUE.
IYYYY_OLD = IYYYY
MMDD_OLD = MMDD
DHOUR_OLD = DHOUR
C
C CALCULATION OF DAY OF YEAR AND SUN DECLINATION......................
C CALCULATION OF UT/LT AND RELATED YEAR, MONTH, DAYNRs ...............
C CALCULATION OF (UT-)SEASON (SUMMER=2, WINTER=4).....................
C
iyear=iyyyy
if(iyear.lt.100) iyear=iyear+1900
idayy=365
if(iyear/4*4.eq.iyear) idayy=366
ryear=iyear*1.0
if(MMDD.lt.0) then
DAYNR=-MMDD
call MODA(1,iyear,MONTH,IDAY,DAYNR,nrdaym)
else
MONTH=MMDD/100
IDAY=MMDD-MONTH*100
call MODA(0,iyear,MONTH,IDAY,DAYNR,nrdaym)
endif
c
c lyear,lmonth,lday,ldaynre,lnrday related to LT
c
lyear=iyear
lmonth=month
lday=iday
ldaynr=daynr
lnrday=nrdaym
ELSE ! date change
DATE_CHANGE = .FALSE.
ENDIF
IF((DATE_CHANGE.eqv..TRUE.).OR.(DHOUR.ne.DHOUR_OLD)) THEN
DHOUR_OLD = DHOUR
IF(DHOUR.le.24.0) goto 2619
UT=DHOUR-25.
iytmp=iyear
idtmp=daynr
if(jf(18)) then
hour=ut+longi/15.
if(hour.gt.24.) hour=hour-24.
else
call ut_lt(0,ut,hour,longi,iytmp,idtmp)
if(idtmp.ne.ldaynr) then
lyear=iytmp
ldaynr=idtmp
call MODA(1,lyear,LMONTH,LDAY,LDAYNR,lnrday)
endif
endif
goto 2629
2619 HOUR=DHOUR
iytmp=lyear
idtmp=ldaynr
if(jf(18)) then
ut=hour-longi/15.
if(ut.lt.0) ut=ut+24.
else
call ut_lt(1,ut,hour,longi,iytmp,idtmp)
if(idtmp.ne.daynr) then
iyear=iytmp
daynr=idtmp
call MODA(1,iyear,MONTH,IDAY,DAYNR,nrdaym)
endif
endif
ENDIF
c
c zmonth is decimal month (Jan 1 = 1.0 and Dec 31 = 12.97)
c
2629 zmonth = lmonth + ((lday-1)*1.)/lnrday
SEASON=INT((DAYNR+45.0)/92.0)
IF(SEASON.LT.1) SEASON=4
NSEASN=SEASON
seaday=daynr
seamon=zmonth
IF(LATI.GT.0.0) GOTO 5592
SEASON=SEASON-2
IF(SEASON.LT.1) SEASON=SEASON+4
seamon=zmonth+6.
if(seamon.ge.13.0) seamon=seamon-12.
seaday=daynr+idayy/2.
if(seaday.gt.idayy) seaday=seaday-idayy
C
C MEAN F10.7CM SOLAR RADIO FLUX (COV), GLOBAL IONOSPHERIC INDEX
C (GIND)
C
5592 continue
sam_mon=(month.eq.montho)
sam_yea=(iyear.eq.iyearo)
sam_doy=(daynr.eq.idaynro)
sam_date=(sam_yea.and.sam_doy)
sam_ut=(ut.eq.ut0)
if(sam_date.and..not.rzino.and..not.rzin.
& and..not.igin.and..not.igino) goto 2910
call tcon(BPATH,iyear,month,iday,daynr,rzar,arig,ttt,nmonth)
if(nmonth.lt.0) goto 3330
if(RZIN) then
rrr = arzin
rzar(1) = rrr
rzar(2) = rrr
rzar(3) = rrr
c zi=-12.349154+(1.4683266-2.67690893e-03*rrr)*rrr
c if(zi.gt.174.0) zi=174.0
c arig(1) = zi
c arig(2) = zi
c arig(3) = zi
endif
if(IGIN) then
zi = aigin
arig(1) = zi
arig(2) = zi
arig(3) = zi
endif
rssn=rzar(3)
gind=arig(3)
COV=63.75+RSSN*(0.728+RSSN*0.00089)
c rlimit=gind
c COVSAT=63.75+rlimit*(0.728+rlimit*0.00089)
COVSAT=cov
if(covsat.gt.188.) covsat=188
f107d=cov
if(.not.jf(25)) f107d=oarr(41)
C
C CALCULATION OF SOLAR ZENITH ANGLE (XHI/DEG).........................
C NOON VALUE (XHINON).................................................
C
2910 continue
CALL SOCO(ldaynr,HOUR,LATI,LONGI,SUNDEC,XHI,SAX,SUX)
CALL SOCO(ldaynr,12.0,LATI,LONGI,SUNDE1,XHINON,SAXNON,SUXNON)
NIGHT=.FALSE.
if(abs(sax).gt.25.0) then
if(sax.lt.0.0) NIGHT=.TRUE.
goto 1334
endif
if(SAX.le.SUX) goto 1386
if((hour.gt.sux).and.(hour.lt.sax)) night=.true.
goto 1334
1386 IF((HOUR.GT.SUX).OR.(HOUR.LT.SAX)) NIGHT=.TRUE.
C
C CALCULATION OF ELECTRON DENSITY PARAMETERS................
C lower height boundary (HNEA), upper boundary (HNEE)
C
1334 continue
HNEA=65.
IF(NIGHT) HNEA=80.
HNEE=2000.
IF(NODEN) GOTO 4933
DELA=4.32
IF(ABSMDP.GE.18.) DELA=1.0+EXP(-(ABSMDP-30.0)/10.0)
DELL=1+EXP(-(ABSLAT-20.)/10.)
c
c E peak critical frequency (foF2), density (NmE), and height (hmE)
c
IF(FOEIN) THEN
FOE=AFOE
ELSE
FOE=FOEEDI(COV,XHI,XHINON,ABSLAT)
ENDIF
NME=1.24E10*FOE*FOE
IF(HMEIN) THEN
HME=AHME
ELSE
HME=110.0
ENDIF
c
c F2 peak critical frequency foF2, density NmF2, and height hmF2
c
C READ CCIR AND URSI COEFFICIENT SET FOR CHOSEN MONTH
C
IF((FOF2IN).AND.(HMF2IN)) GOTO 501
IF(URSIF2.NEQV.URSIFO) GOTO 7797
if(.not.rzin.and..not.rzino.and..not.igin.and..not.igino) then
IF(sam_mon.AND.(nmonth.EQ.nmono).and.sam_yea) GOTO 4292
IF(sam_mon) GOTO 4293
endif
c
c the program expects the coefficients files in ASCII format; if you
C want to use the binary version of the coefficients, please use the
C the statements that are commented-out below and comment-out the
C ASCII-related statements.
c
7797 URSIFO=URSIF2
WRITE(FILNAM,104) MONTH+10
104 FORMAT('/ccir',I2,'.asc')
FILNAM=stupid_FORTRAN_STRINGS(BPATH,FILNAM)
c -binary- if binary files than use:
c -binary-104 FORMAT('ccir',I2,'.bin')
c -web- special for web-version:
c 104 FORMAT('/usr/local/etc/httpd/cgi-bin/models/IRI/ccir',I2,'.asc')
c -web- special for web-version:
c
OPEN(IUCCIR,FILE=FILNAM,STATUS='OLD',ERR=8448,
& FORM='FORMATTED')
c -binary- if binary files than use:
c -binary- & FORM='UNFORMATTED')
c
READ(IUCCIR,4689) F2,FM3
4689 FORMAT(1X,4E15.8)
c -binary- if binary files than use:
c -binary- READ(IUCCIR) F2,FM3
c
CLOSE(IUCCIR)
C
C then URSI if chosen ....................................
C
if(URSIF2) then
WRITE(FILNAM,1144) MONTH+10
1144 FORMAT('/ursi',I2,'.asc')
FILNAM=stupid_FORTRAN_STRINGS(BPATH,FILNAM)
c -web- special for web-version:
c11 44 FORMAT('/usr/local/etc/httpd/cgi-bin/models/IRI/ursi',I2,'.asc')
c -binary- if binary files than use:
c -binary-1144 FORMAT('ursi',I2,'.bin')
OPEN(IUCCIR,FILE=FILNAM,STATUS='OLD',ERR=8448,
& FORM='FORMATTED')
c -binary- if binary files than use:
c -binary- & FORM='UNFORMATTED')
READ(IUCCIR,4689) F2
c -binary- if binary files than use:
c -binary- READ(IUCCIR) F2
CLOSE(IUCCIR)
endif
C
C READ CCIR AND URSI COEFFICIENT SET FOR NMONTH, i.e. previous
c month if day is less than 15 and following month otherwise
C
4293 continue
c
c first CCIR ..............................................
c
WRITE(FILNAM,104) NMONTH+10
FILNAM=stupid_FORTRAN_STRINGS(BPATH,FILNAM)
OPEN(IUCCIR,FILE=FILNAM,STATUS='OLD',ERR=8448,
& FORM='FORMATTED')
c -binary- if binary files than use:
c -binary- & FORM='unFORMATTED')
READ(IUCCIR,4689) F2N,FM3N
c -binary- if binary files than use:
c -binary- READ(IUCCIR) F2N,FM3N
CLOSE(IUCCIR)
C
C then URSI if chosen .....................................
C
if(URSIF2) then
WRITE(FILNAM,1144) NMONTH+10
FILNAM=stupid_FORTRAN_STRINGS(BPATH,FILNAM)
OPEN(IUCCIR,FILE=FILNAM,STATUS='OLD',ERR=8448,
& FORM='FORMATTED')
c -binary- if binary files than use:
c -binary- & FORM='unFORMATTED')
READ(IUCCIR,4689) F2N
c -binary- if binary files than use:
c -binary- READ(IUCCIR) F2N
CLOSE(IUCCIR)
endif
GOTO 4291
8448 WRITE(MONITO,8449) FILNAM
8449 FORMAT(1X////,
& ' The file ',A,'is not able to be opened.')
GOTO 3330
C
C LINEAR INTERPOLATION IN SOLAR ACTIVITY. IG12 used for foF2
C
4291 continue
RR2=ARIG(1)/100.
RR2N=ARIG(2)/100.
RR1=1.-RR2
RR1N=1.-RR2N
DO 20 I=1,76
DO 20 J=1,13
K=J+13*(I-1)
FF0N(K)=F2N(J,I,1)*RR1N+F2N(J,I,2)*RR2N
20 FF0(K)=F2(J,I,1)*RR1+F2(J,I,2)*RR2
RR2=RZAR(1)/100.
RR2N=RZAR(2)/100.
RR1=1.-RR2
RR1N=1.-RR2N
DO 30 I=1,49
DO 30 J=1,9
K=J+9*(I-1)
XM0N(K)=FM3N(J,I,1)*RR1N+FM3N(J,I,2)*RR2N
30 XM0(K)=FM3(J,I,1)*RR1+FM3(J,I,2)*RR2
4292 zfof2 = FOUT(MODIP,LATI,LONGI,UT,FF0)
fof2n = FOUT(MODIP,LATI,LONGI,UT,FF0N)
zm3000 = XMOUT(MODIP,LATI,LONGI,UT,XM0)
xm300n = XMOUT(MODIP,LATI,LONGI,UT,XM0N)
midm=15
if(month.eq.2) midm=14
if (iday.lt.midm) then
yfof2 = fof2n + ttt * (zfof2-fof2n)
xm3000= xm300n+ ttt * (zm3000-xm300n)
else
yfof2 = zfof2 + ttt * (fof2n-zfof2)
xm3000= zm3000+ ttt * (xm300n-zm3000)
endif
501 IF(FOF2IN) THEN
FOF2=AFOF2
ELSE
FOF2=YFOF2
ENDIF
NMF2=1.24E10*FOF2*FOF2
IF(HMF2IN) THEN
HMF2=AHMF2
IF(AHMF2.LT.50.0) HMF2=HMF2ED(MAGBR,RSSN,FOF2/FOE,AHMF2)
ELSE
HMF2=HMF2ED(MAGBR,RSSN,FOF2/FOE,XM3000)
ENDIF
c
c stormtime updating
c
stormcorr=-1.
if(jf(26)) then
if(.not.sam_date.or..not.sam_ut)
& call apf(BPATH,iyear,month,iday,ut,indap)
if(indap(1).gt.-2) then
icoord=1
kut=int(ut)
call STORM(indap,lati,longi,icoord,cglat,kut,
& daynr,stormcorr)
fof2=fof2*stormcorr
NMF2=1.24E10*FOF2*FOF2
endif
endif
nmono=nmonth
MONTHO=MONTH
iyearo=iyear
idaynro=daynr
rzino=rzin
igino=igin
ut0=ut
c
c topside profile parameters .............................
c
COS2=COS(MLAT*UMR)
COS2=COS2*COS2
FLU=(COVSAT-40.0)/30.0
c option to use unlimited F10.7M for the topside
IF(OLD79) FLU=(COV-40.0)/30.0
c previously: IF(OLD79) ETA1=-0.0070305*COS2
EX=EXP(-MLAT/15.)
EX1=EX+1
EPIN=4.*EX/(EX1*EX1)
ETA1=-0.02*EPIN
ETA = 0.058798 + ETA1 -
& FLU * (0.014065 - 0.0069724 * COS2) +
& FOF2* (0.0024287 + 0.0042810 * COS2 - 0.0001528 * FOF2)
&
c fluu=flu
c orr if(fluu.gt.flumax) fluu=flumax
ZETA = 0.078922 - 0.0046702 * COS2 -
& FLU * (0.019132 - 0.0076545 * COS2) +
& FOF2* (0.0032513 + 0.0060290 * COS2 - 0.00020872 * FOF2)
BETA=-128.03 + 20.253 * COS2 -
& FLU * (8.0755 + 0.65896 * COS2) +
& FOF2* (0.44041 + 0.71458 * COS2 - 0.042966 * FOF2)
Z=EXP(94.5/BETA)
c orr Z=EXP(94.45/BETA)
Z1=Z+1
Z2=Z/(BETA*Z1*Z1)
DELTA=(ETA/Z1-ZETA/2.0)/(ETA*Z2+ZETA/400.0)
c
c F layer - bottomside thickness parameter B0 and shape parameters B1
c
if(GULB0) then
B1=3
call ROGUL(SEADAY,XHI,SEAX,GRAT)
if(NIGHT) GRAT=0.91-HMF2/4000.
B0CNEW=HMF2*(1.-GRAT)
B0=B0CNEW/B0B1(1)
else
B1=HPOL(HOUR,1.9,2.6,SAX,SUX,1.,1.)
B0 = B0_98(HOUR,SAX,SUX,NSEASN,RSSN,LONGI,MODIP)
endif
c
c F1 layer height hmF1, critical frequency foF1, peak density NmF1
c
IF(FOF1IN) THEN
FOF1=AFOF1
ELSE
FOF1=FOF1ED(ABSMBR,RSSN,XHI)
ENDIF
c F1 layer thickness parameter c1
c1 = f1_c1(modip,hour,suxnon,saxnon)
c F1 occurrence probability with Scotto et al. 1997
call f1_prob(xhi,mlat,rssn,f1pbw,f1pbl)
c F1 occurrence probability Ducharme et al.
f1pbo = 0.0
if(fof1in.or.((.not.night).and.(fof1.gt.0.0))) f1pbo=1.
if(f1_ocpro) then
f1pb = f1pbw
if(f1_l_cond) f1pb = f1pbl
f1reg=.false.
if((fof1in).or.(f1pb.ge.0.5)) f1reg=.true.
else
f1pb = f1pbo
f1reg=.false.
if(f1pb.gt.0.0) f1reg=.true.
endif
NMF1=1.24E10*FOF1*FOF1
c
c E-valley: depth, width, height of deepest point (HDEEP),
c height of valley top (HEF)
c