Line | |
---|
1 | subroutine lymalpha(pls,pflux) |
---|
2 | use datafile_mod |
---|
3 | use comcstfi_mod, only: pi |
---|
4 | implicit none |
---|
5 | |
---|
6 | !================================================================== |
---|
7 | ! Purpose |
---|
8 | ! ------- |
---|
9 | ! Get the lyman alpha flux according to the solar longitude |
---|
10 | ! |
---|
11 | ! Inputs |
---|
12 | ! ------ |
---|
13 | ! pls solar longitude |
---|
14 | ! |
---|
15 | ! Outputs |
---|
16 | ! ------- |
---|
17 | ! |
---|
18 | ! Both |
---|
19 | ! ---- |
---|
20 | ! |
---|
21 | ! Authors |
---|
22 | ! ------- |
---|
23 | ! Tanguy Bertrand |
---|
24 | !================================================================== |
---|
25 | |
---|
26 | !----------------------------------------------------------------------- |
---|
27 | ! Arguments |
---|
28 | |
---|
29 | REAL,INTENT(IN) :: pls |
---|
30 | REAL,INTENT(OUT) :: pflux |
---|
31 | !----------------------------------------------------------------------- |
---|
32 | ! Local variables |
---|
33 | REAL :: vectls |
---|
34 | REAL :: vectflux |
---|
35 | LOGICAL firstcall |
---|
36 | SAVE firstcall |
---|
37 | DATA firstcall/.true./ |
---|
38 | |
---|
39 | !!read lyman alpha flux |
---|
40 | integer Nfine |
---|
41 | parameter(Nfine=13281) |
---|
42 | integer ifine |
---|
43 | character(len=100) :: file_path |
---|
44 | real,save :: lsdat(Nfine),fluxdat(Nfine) |
---|
45 | |
---|
46 | !---------------- INPUT ------------------------------------------------ |
---|
47 | |
---|
48 | IF (firstcall) then |
---|
49 | firstcall=.false. |
---|
50 | file_path=trim(datadir)//'/sol_uv_flux.txt' |
---|
51 | print*,file_path |
---|
52 | open(222,file=file_path,form='formatted') |
---|
53 | do ifine=1,Nfine |
---|
54 | read(222,*) lsdat(ifine), fluxdat(ifine) |
---|
55 | enddo |
---|
56 | close(222) |
---|
57 | ENDIF |
---|
58 | |
---|
59 | CALL interp_line(lsdat,fluxdat,Nfine,pls*180./pi,pflux,1) |
---|
60 | !write(*,*) 'flux=',pflux |
---|
61 | |
---|
62 | |
---|
63 | end subroutine lymalpha |
---|
64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.