Conversion of standardized ReadMe file for
file /./ftp/cats/J/AZh/81/658 into FORTRAN code for reading data files line by line.
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-May-20
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__
parameter (rNULL__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/AZh/81/658 Equivalent widths of 9 barium stars (Antipova+, 2004)
*================================================================================
*Analysis of Atmospheric Abundances in Classical Barium Stars.
* Antipova L.I., Boyarchuk A.A., Pakhomov Yu.V., Panchuk V.E.
* <Astron. Zh. 81, 658 (2004)>
* =2004AZh....81..658A
* =2004ARep...48..597A
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'stars.dat' ! List of the 9 stars studied
integer*4 nr__
parameter (nr__=9) ! Number of records
character*60 ar__ ! Full-size record
real*8 RA_ ! (deg) Right Ascension J2000
real*8 Dec ! (deg) Declination J2000
integer*4 HD ! HD (Cat. III/135)
integer*4 RAh ! (h) Right Ascension J2000 (hours)
integer*4 RAm ! (min) Right Ascension J2000 (minutes)
real*4 RAs ! (s) Right Ascension J2000 (seconds)
character*1 DE_ ! Declination J2000 (sign)
integer*4 DEd ! (deg) Declination J2000 (degrees)
integer*4 DEm ! (arcmin) Declination J2000 (minutes)
integer*4 DEs ! (arcsec) Declination J2000 (seconds)
real*4 Bmag ! (mag) Blue magnitude (from Simbad)
real*4 Vmag ! (mag) Visible magnitude (from Simbad)
character*8 SpType ! MK Spectral classification (from Simbad)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! The equivalent widths
integer*4 nr__1
parameter (nr__1=610) ! Number of records
character*99 ar__1 ! Full-size record
character*4 El ! Element
real*8 Lambda ! (0.1nm) Wavelength expressed in Angstroems
real*4 ExcPot ! (eV) Excitation potentials of the lower level
real*4 Loggf ! Oscillator strength (log gf)
real*4 W1 ! (0.1nm) ? Equivalent width of HD 16458
real*4 W2 ! (0.1nm) ? Equivalent width of HD 88562
real*4 W3 ! (0.1nm) ? Equivalent width of HD 101013
real*4 W4 ! (0.1nm) ? Equivalent width of HD 130386
real*4 W5 ! (0.1nm) ? Equivalent width of HD 139409
real*4 W6 ! (0.1nm) ? Equivalent width of HD 175190
real*4 W7 ! (0.1nm) ? Equivalent width of HD 178717
real*4 W8 ! (0.1nm) ? Equivalent width of HD 183915
real*4 W9 ! (0.1nm) ? Equivalent width of HD 196673
C=============================================================================
C Loading file 'stars.dat' ! List of the 9 stars studied
C Format for file interpretation
1 format(
+ 3X,I6,8X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,3X,F5.2,1X,
+ F5.2,1X,A8)
C Effective file loading
open(unit=1,file='stars.dat', status='old')
write(6,*) '....Loading file: stars.dat'
do i__=1,9
read(1,'(A60)')ar__
read(ar__,1)HD,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,Vmag,SpType
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_ = RAh
if(RAh .GE. 0) RA_=RAh*15.
if(RAm .GE. 0) RA_=RA_+RAm/4.
if(RAs .GE. 0) RA_=RA_+RAs/240.
Dec = DEd
if(DEm .GE. 0) Dec=Dec+DEm/60.
if(DEs .GE. 0) Dec=Dec+DEs/3600.
if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c ..............Just test output...........
write(6,1)HD,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,Vmag,SpType
write(6,'(6H Pos: 2F8.4)') RA_,Dec
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! The equivalent widths
C Format for file interpretation
2 format(
+ A4,2X,F7.2,3X,F4.2,2X,F5.2,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,
+ F5.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3)
C Effective file loading
open(unit=1,file='table2.dat', status='old')
write(6,*) '....Loading file: table2.dat'
do i__=1,610
read(1,'(A99)')ar__1
read(ar__1,2)El,Lambda,ExcPot,Loggf,W1,W2,W3,W4,W5,W6,W7,W8,W9
if(ar__1(31:35) .EQ. '') W1 = rNULL__
if(ar__1(39:43) .EQ. '') W2 = rNULL__
if(ar__1(47:51) .EQ. '') W3 = rNULL__
if(ar__1(55:59) .EQ. '') W4 = rNULL__
if(ar__1(63:67) .EQ. '') W5 = rNULL__
if(ar__1(71:75) .EQ. '') W6 = rNULL__
if(ar__1(79:83) .EQ. '') W7 = rNULL__
if(ar__1(87:91) .EQ. '') W8 = rNULL__
if(ar__1(95:99) .EQ. '') W9 = rNULL__
c ..............Just test output...........
write(6,2)El,Lambda,ExcPot,Loggf,W1,W2,W3,W4,W5,W6,W7,W8,W9
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end