Conversion of standardized ReadMe file for
file /./ftp/cats/J/PAZh/21/13 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-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/PAZh/21/13 New list of OB associations (Melnik+, 1995)
*================================================================================
*New list of OB associations of our Galaxy.
* Melnik A.M., Efremov Yu.N.
* <Pis'ma Astron. Zh. 21, 13 (1995)>
* =1995PAZh...21...13M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table.dat' ! Table of OB-associations
integer*4 nr__
parameter (nr__=88) ! Number of records
character*75 ar__ ! Full-size record
character*9 AssME ! Association name
real*4 GLON ! (deg) Galactic longitude
real*4 GLAT ! (deg) Galactic latitude
real*4 D ! (kpc) Distance
real*4 RV ! (km/s) ? Average radial velocity of the association
* relative to the Sun
real*4 e_RV ! (km/s) ? Dispersion of RV
integer*4 NRV ! Number of stars with measured RV
integer*4 Ntot ! Total number of stars in the association
real*4 Dl ! (pc) Size of association along longitude
real*4 Db ! (pc) Size of association along latitude
integer*4 p ! [0/1] p=1 for the association with 90% reliability
* p=0 for reliability below 90%
integer*4 Nsg ! Number of K and M supergiants
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'list.dat' ! List of stars -- members of OB associations of
the new partition
integer*4 nr__1
parameter (nr__1=1392) ! Number of records
character*67 ar__1 ! Full-size record
character*14 Name ! Designation of the star
character*4 SpType ! MK spectral type
real*4 Vmag ! (mag) Magnitude in V band
real*4 GLON_1 ! (deg) Galactic longitude
real*4 GLAT_1 ! (deg) Galactic latitude
real*4 rBH ! (kpc) Distance from the Sun derived by BH
character*8 AssBH ! Association of Blaha and Humphreys,
* 1989AJ..98...1598B
character*9 AssME_1 ! Association of Mel'nik and Efremov, as
* in table.dat file
C=============================================================================
C Loading file 'table.dat' ! Table of OB-associations
C Format for file interpretation
1 format(
+ A9,1X,F6.2,1X,F6.2,2X,F4.2,2X,F5.1,3X,F4.1,2X,I2,2X,I3,4X,
+ F5.1,3X,F4.1,2X,I1,2X,I2)
C Effective file loading
open(unit=1,file='table.dat', status='old')
write(6,*) '....Loading file: table.dat'
do i__=1,88
read(1,'(A75)')ar__
read(ar__,1)AssME,GLON,GLAT,D,RV,e_RV,NRV,Ntot,Dl,Db,p,Nsg
if(ar__(32:36) .EQ. '') RV = rNULL__
if(ar__(40:43) .EQ. '') e_RV = rNULL__
c ..............Just test output...........
write(6,1)AssME,GLON,GLAT,D,RV,e_RV,NRV,Ntot,Dl,Db,p,Nsg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'list.dat' ! List of stars -- members of OB associations of
* the new partition
C Format for file interpretation
2 format(A14,1X,A4,1X,F5.2,1X,F6.2,1X,F6.2,2X,F4.2,2X,A8,3X,A9)
C Effective file loading
open(unit=1,file='list.dat', status='old')
write(6,*) '....Loading file: list.dat'
do i__=1,1392
read(1,'(A67)')ar__1
read(ar__1,2)Name,SpType,Vmag,GLON_1,GLAT_1,rBH,AssBH,AssME_1
c ..............Just test output...........
write(6,2)Name,SpType,Vmag,GLON_1,GLAT_1,rBH,AssBH,AssME_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end