Conversion of standardized ReadMe file for
file /./ftp/cats/J/AZh/81/658 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-May-22
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_ (nr__) ! (deg) Right Ascension J2000
real*8 Dec (nr__) ! (deg) Declination J2000
integer*4 HD (nr__) ! HD (Cat. III/135)
integer*4 RAh (nr__) ! (h) Right Ascension J2000 (hours)
integer*4 RAm (nr__) ! (min) Right Ascension J2000 (minutes)
real*4 RAs (nr__) ! (s) Right Ascension J2000 (seconds)
character*1 DE_ (nr__) ! Declination J2000 (sign)
integer*4 DEd (nr__) ! (deg) Declination J2000 (degrees)
integer*4 DEm (nr__) ! (arcmin) Declination J2000 (minutes)
integer*4 DEs (nr__) ! (arcsec) Declination J2000 (seconds)
real*4 Bmag (nr__) ! (mag) Blue magnitude (from Simbad)
real*4 Vmag (nr__) ! (mag) Visible magnitude (from Simbad)
character*8 SpType (nr__) ! 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 (nr__1) ! Element
real*8 Lambda (nr__1) ! (0.1nm) Wavelength expressed in Angstroems
real*4 ExcPot (nr__1) ! (eV) Excitation potentials of the lower level
real*4 Loggf (nr__1) ! Oscillator strength (log gf)
real*4 W1 (nr__1) ! (0.1nm) ? Equivalent width of HD 16458
real*4 W2 (nr__1) ! (0.1nm) ? Equivalent width of HD 88562
real*4 W3 (nr__1) ! (0.1nm) ? Equivalent width of HD 101013
real*4 W4 (nr__1) ! (0.1nm) ? Equivalent width of HD 130386
real*4 W5 (nr__1) ! (0.1nm) ? Equivalent width of HD 139409
real*4 W6 (nr__1) ! (0.1nm) ? Equivalent width of HD 175190
real*4 W7 (nr__1) ! (0.1nm) ? Equivalent width of HD 178717
real*4 W8 (nr__1) ! (0.1nm) ? Equivalent width of HD 183915
real*4 W9 (nr__1) ! (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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
+ DEs(i__),Bmag(i__),Vmag(i__),SpType(i__)
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_(i__) = RAh(i__)
if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
Dec(i__) = DEd(i__)
if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c ..............Just test output...........
write(6,1)
+ HD(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
+ DEs(i__),Bmag(i__),Vmag(i__),SpType(i__)
write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
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(i__),Lambda(i__),ExcPot(i__),Loggf(i__),W1(i__),W2(i__),
+ W3(i__),W4(i__),W5(i__),W6(i__),W7(i__),W8(i__),W9(i__)
if(ar__1(31:35) .EQ. '') W1(i__) = rNULL__
if(ar__1(39:43) .EQ. '') W2(i__) = rNULL__
if(ar__1(47:51) .EQ. '') W3(i__) = rNULL__
if(ar__1(55:59) .EQ. '') W4(i__) = rNULL__
if(ar__1(63:67) .EQ. '') W5(i__) = rNULL__
if(ar__1(71:75) .EQ. '') W6(i__) = rNULL__
if(ar__1(79:83) .EQ. '') W7(i__) = rNULL__
if(ar__1(87:91) .EQ. '') W8(i__) = rNULL__
if(ar__1(95:99) .EQ. '') W9(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ El(i__),Lambda(i__),ExcPot(i__),Loggf(i__),W1(i__),W2(i__),
+ W3(i__),W4(i__),W5(i__),W6(i__),W7(i__),W8(i__),W9(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end