607 |
c FILMOD(1) = COEF1 |
c FILMOD(1) = COEF1 |
608 |
c FILMOD(2) = COEF2 |
c FILMOD(2) = COEF2 |
609 |
c FILMOD(3) = COEF3 |
c FILMOD(3) = COEF3 |
610 |
print *, "qui" |
c print *, "qui" |
611 |
FILMOD(1) = P1(1:L1) |
FILMOD(1) = P1(1:L1) |
612 |
FILMOD(2) = P2(1:L2) |
FILMOD(2) = P2(1:L2) |
613 |
FILMOD(3) = P3(1:L3) |
FILMOD(3) = P3(1:L3) |
614 |
print *, "qua" |
c print *, "qua" |
615 |
c FILMOD(1) = 'OrbitalInfo/src/dgrf00.dat' |
c FILMOD(1) = 'OrbitalInfo/src/dgrf00.dat' |
616 |
c FILMOD(2) = 'OrbitalInfo/src/igrf05.dat' |
c FILMOD(2) = 'OrbitalInfo/src/igrf05.dat' |
617 |
c FILMOD(3) = 'OrbitalInfo/src/igrf05s.dat' |
c FILMOD(3) = 'OrbitalInfo/src/igrf05s.dat' |
618 |
WRITE(*,*) FILMOD(1) |
c WRITE(*,*) FILMOD(1) |
619 |
WRITE(*,*) FILMOD(2) |
c WRITE(*,*) FILMOD(2) |
620 |
WRITE(*,*) FILMOD(3) |
c WRITE(*,*) FILMOD(3) |
621 |
c DATA FILMOD / 'dgrf00.dat', 'igrf05.dat', 'igrf05s.dat'/ |
c DATA FILMOD / 'dgrf00.dat', 'igrf05.dat', 'igrf05s.dat'/ |
622 |
DATA DTEMOD / 2005., 2010., 2015./ |
DATA DTEMOD / 2005., 2010., 2015./ |
623 |
c |
c |
633 |
C |
C |
634 |
c NUMYE=13 |
c NUMYE=13 |
635 |
NUMYE=2 |
NUMYE=2 |
636 |
print *, "quo" |
c print *, "quo" |
637 |
|
|
638 |
C |
C |
639 |
C IS=0 FOR SCHMIDT NORMALIZATION IS=1 GAUSS NORMALIZATION |
C IS=0 FOR SCHMIDT NORMALIZATION IS=1 GAUSS NORMALIZATION |
652 |
FIL1 = FILMOD(L) |
FIL1 = FILMOD(L) |
653 |
DTE2 = DTEMOD(L+1) |
DTE2 = DTEMOD(L+1) |
654 |
FIL2 = FILMOD(L+1) |
FIL2 = FILMOD(L+1) |
655 |
WRITE(*,*) FIL1 |
c WRITE(*,*) FIL1 |
656 |
WRITE(*,*) FIL2 |
c WRITE(*,*) FIL2 |
657 |
print *, "que" |
c print *, "que" |
658 |
C-- GET IGRF COEFFICIENTS FOR THE BOUNDARY YEARS |
C-- GET IGRF COEFFICIENTS FOR THE BOUNDARY YEARS |
659 |
CALL GETSHC (IU, FIL1, NMAX1, ERAD, GH1, IER) |
CALL GETSHC (IU, FIL1, NMAX1, ERAD, GH1, IER) |
660 |
IF (IER .NE. 0) STOP |
IF (IER .NE. 0) STOP |
661 |
print *, "quessss" |
c print *, "quessss" |
662 |
CALL GETSHC (IU, FIL2, NMAX2, ERAD, GH2, IER) |
CALL GETSHC (IU, FIL2, NMAX2, ERAD, GH2, IER) |
663 |
IF (IER .NE. 0) STOP |
IF (IER .NE. 0) STOP |
664 |
print *, "quj" |
c print *, "quj" |
665 |
C-- DETERMINE IGRF COEFFICIENTS FOR YEAR |
C-- DETERMINE IGRF COEFFICIENTS FOR YEAR |
666 |
IF (L .LE. NUMYE-1) THEN |
IF (L .LE. NUMYE-1) THEN |
667 |
CALL INTERSHC (YEAR, DTE1, NMAX1, GH1, DTE2, |
CALL INTERSHC (YEAR, DTE1, NMAX1, GH1, DTE2, |
670 |
CALL EXTRASHC (YEAR, DTE1, NMAX1, GH1, NMAX2, |
CALL EXTRASHC (YEAR, DTE1, NMAX1, GH1, NMAX2, |
671 |
1 GH2, NMAX, GHA) |
1 GH2, NMAX, GHA) |
672 |
ENDIF |
ENDIF |
673 |
print *, "quw" |
c print *, "quw" |
674 |
C-- DETERMINE MAGNETIC DIPOL MOMENT AND COEFFIECIENTS G |
C-- DETERMINE MAGNETIC DIPOL MOMENT AND COEFFIECIENTS G |
675 |
F0=0.D0 |
F0=0.D0 |
676 |
DO 1234 J=1,3 |
DO 1234 J=1,3 |
744 |
WRITE(FOUT,667) FSPEC |
WRITE(FOUT,667) FSPEC |
745 |
c 667 FORMAT('/usr/local/etc/httpd/cgi-bin/natasha/IRI/',A12) |
c 667 FORMAT('/usr/local/etc/httpd/cgi-bin/natasha/IRI/',A12) |
746 |
667 FORMAT(A258) |
667 FORMAT(A258) |
747 |
print *," gui" |
c print *," gui" |
748 |
OPEN (IU, FILE=FOUT, STATUS='OLD', IOSTAT=IER, ERR=999) |
OPEN (IU, FILE=FOUT, STATUS='OLD', IOSTAT=IER, ERR=999) |
749 |
print *," gua" |
c print *," gua" |
750 |
READ (IU, *, IOSTAT=IER, ERR=999) |
READ (IU, *, IOSTAT=IER, ERR=999) |
751 |
print *," gue" |
c print *," gue" |
752 |
READ (IU, *, IOSTAT=IER, ERR=999) NMAX, ERAD |
READ (IU, *, IOSTAT=IER, ERR=999) NMAX, ERAD |
753 |
print *," guo" |
c print *," guo" |
754 |
C --------------------------------------------------------------- |
C --------------------------------------------------------------- |
755 |
C Read the coefficient file, arranged as follows: |
C Read the coefficient file, arranged as follows: |
756 |
C |
C |
787 |
ENDIF |
ENDIF |
788 |
2233 CONTINUE |
2233 CONTINUE |
789 |
2211 CONTINUE |
2211 CONTINUE |
790 |
print *," guj" |
c print *," guj" |
791 |
|
|
792 |
999 CLOSE (IU) |
999 CLOSE (IU) |
793 |
print *," guw IER",IER |
c print *," guw IER",IER |
794 |
if ( IER .eq. -1 ) IER = 0 ! gfortran 4.1.2 bug workaround... hoping not to create problems with other versions |
if ( IER .eq. -1 ) IER = 0 ! gfortran 4.1.2 bug workaround... hoping not to create problems with other versions |
795 |
|
|
796 |
RETURN |
RETURN |