Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/156/69 into FORTRAN code for loading all data files into arrays.
Note that special values are assigned to unknown or unspecified
numbers (also called NULL numbers);
when necessary, the coordinate components making up the right ascension
and declination are converted into floating-point numbers
representing these angles in degrees.
program load_ReadMe
C=============================================================================
C F77-compliant program generated by readme2f_1.5, on 2013-Jun-19
C=============================================================================
* This code was generated from the ReadMe file documenting a catalogue
* according to the "Standard for Documentation of Astronomical Catalogues"
* currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
* (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
* Please report problems or questions to
C=============================================================================
implicit none
* Unspecified or NULL values, generally corresponding to blank columns,
* are assigned one of the following special values:
* rNULL__ for unknown or NULL floating-point values
* iNULL__ for unknown or NULL integer values
real*4 rNULL__
integer*4 iNULL__
ter (rNULL__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/ApJS/156/69 MGGPOD Monte Carlo suite (Weidenspointner+, 2005)
*================================================================================
*MGGPOD: a Monte Carlo suite for modeling instrumental line and continuum
*backgrounds in gamma-ray astronomy.
* Weidenspointner G., Harris M.J., Sturner S., Teegarden B.J., Ferguson C.
* <Astrophys. J. Suppl. Ser., 156, 69-91 (2005)>
* =2005ApJS..156...69W
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Identified lines; blends of identified lines
integer*4 nr__
parameter (nr__=254) ! Number of records
character*145 ar__ ! Full-size record
real*4 TGRS (nr__) ! (keV) Transient Gamma-Ray Spectrometer line energy
real*8 CRate (nr__) ! (ct/s) Count rate
character*28 Trans (nr__) ! Transition identification (G1)
real*4 Energy (nr__) ! (keV) ? Laboratory energy
character*3 React (nr__) ! Reaction type (G2)
character*65 Comm (nr__) ! Additional Comments
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Blends containing unidentified lines
integer*4 nr__1
parameter (nr__1=65) ! Number of records
character*103 ar__1 ! Full-size record
real*4 TGRS_1 (nr__1) ! (keV) Transient Gamma-Ray Spectrometer line energy
real*8 CRate_1 (nr__1) ! (ct/s) Count rate
character*42 Trans_1 (nr__1) ! Transition identification (G1)
character*3 f_Energy (nr__1) ! Approximate flag on Energy
real*4 Energy_1 (nr__1) ! (keV) ? Nominal energy
character*3 React_1 (nr__1) ! Reaction type (G2)
character*30 Comm_1 (nr__1) ! Additional Comments
C=============================================================================
C Loading file 'table5.dat' ! Identified lines; blends of identified lines
C Format for file interpretation
1 format(F6.1,1X,F7.5,1X,A28,1X,F6.1,1X,A3,1X,A65)
C Effective file loading
open(unit=1,file='table5.dat', status='old')
write(6,*) '....Loading file: table5.dat'
do i__=1,254
read(1,'(A145)')ar__
read(ar__,1)
+ TGRS(i__),CRate(i__),Trans(i__),Energy(i__),React(i__),
+ Comm(i__)
if(ar__(45:50) .EQ. '') Energy(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ TGRS(i__),CRate(i__),Trans(i__),Energy(i__),React(i__),
+ Comm(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Blends containing unidentified lines
C Format for file interpretation
2 format(F6.1,1X,F7.5,1X,A42,1X,A3,F6.1,1X,A3,1X,A30)
C Effective file loading
open(unit=1,file='table6.dat', status='old')
write(6,*) '....Loading file: table6.dat'
do i__=1,65
read(1,'(A103)')ar__1
read(ar__1,2)
+ TGRS_1(i__),CRate_1(i__),Trans_1(i__),f_Energy(i__),
+ Energy_1(i__),React_1(i__),Comm_1(i__)
if(ar__1(62:67) .EQ. '') Energy_1(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ TGRS_1(i__),CRate_1(i__),Trans_1(i__),f_Energy(i__),
+ Energy_1(i__),React_1(i__),Comm_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end