diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-08-03 14:41:53 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-08-03 14:41:53 -0400 |
commit | af8fa097905186e0d8ba257e4d70d63fe8901264 (patch) | |
tree | 647de7ddd01c750e9a80849b3cf79efddf32d4b2 /Calmod.f | |
download | moog-af8fa097905186e0d8ba257e4d70d63fe8901264.tar.gz |
Initial commit
Diffstat (limited to 'Calmod.f')
-rwxr-xr-x | Calmod.f | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Calmod.f b/Calmod.f new file mode 100755 index 0000000..3938bef --- /dev/null +++ b/Calmod.f @@ -0,0 +1,49 @@ + + subroutine calmod +c****************************************************************************** +c this program re-calculates BEGN models on a tau5000 scale. +c****************************************************************************** + + implicit real*8 (a-h,o-z) + include 'Atmos.com' + include 'Pstuff.com' + + +c*****open the files for standard output and the re-calculated model + nf1out = 20 + lscreen = 4 + array = 'STANDARD OUTPUT' + nchars = 15 + call infile ('output ',nf1out,'formatted ',0,nchars, + . f1out,lscreen) + nf2out = 21 + lscreen = lscreen + 2 + array = 'RE-CALCULATED MODEL OUTPUT' + nchars = 26 + call infile ('output ',nf2out,'formatted ',0,nchars, + . f2out,lscreen) + + +c*****open and read the model atmosphere + nfmodel = 30 + lscreen = lscreen + 2 + array = 'THE MODEL ATMOSPHERE' + nchars = 20 + call infile ('input ',nfmodel,'formatted ',0,nchars, + . fmodel,lscreen) + call inmodel + + +c*****do the tau scale conversion + call opacit(2,wavref) + write (nf2out,1001) wavref,(taulam(i),t(i),pgas(i), + . ne(i),kaplam(i),i=1,ntau) + return + + +c*****format statements +1001 format ('output model for wavelength = ',f5.0/ + . (1pe11.4,0pf7.0,1p3e11.4)) + + + end |