Conversion of standardized ReadMe file for
file /./ftp/cats/II/197 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.81 (2015-09-23), on 2026-Oct-14
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__=--2147483648.) ! NULL real number
parameter (iNULL__=(-2147483647-1)) ! NULL int number
integer idig ! testing NULL number
C=============================================================================
Cat. II/197 ISM towards IC 348 and Per OB2 (Cernis, 1993)
*================================================================================
*Interstellar extinction in the direction of the open cluster IC 348 and the
*Per OB2 association
* Cernis K.
* <Baltic Astron. 2, 214 (1993)>
* =1993BaltA...2..214C
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1' ! The results of photometry (all stars)
integer*4 nr__
parameter (nr__=189) ! Number of records
character*81 ar__ ! Full-size record
C B1950 position composed of: RAh RAm RAs DE- DEd DEm
real*8 RAdeg ! (deg) Right Ascension B1950
real*8 DEdeg ! (deg) Declination B1950
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 Seq ! Sequential number
character*1 n_Seq ! [*] Note (1)
character*6 BD ! BD designation
integer*4 HD ! []? HD designation
integer*4 RAh ! (h) Right ascension B1950
integer*4 RAm ! (min) Right ascension B1950
integer*4 RAs ! (s) Right ascension B1950
character*1 DE_ ! Declination sign B1950
integer*4 DEd ! (deg) Declination B1950
real*4 DEm ! (arcmin) Declination B1950
character*8 Sp ! spectral type
real*4 Vmag ! (mag) V magnitude (Vilnius system)
real*4 U_P ! (mag) U-P colour index (Vilnius system)
real*4 P_X ! (mag) P-X colour index (Vilnius system)
real*4 X_Y ! (mag) X-Y colour index (Vilnius system)
real*4 Y_Z ! (mag) Y-Z colour index (Vilnius system)
real*4 Z_V ! (mag) Z-V colour index (Vilnius system)
real*4 V_S ! (mag) V-S colour index (Vilnius system)
integer*4 n ! Number of independent observations
*Note (1):
* 6. IDS 90-59 AB, {DELTA}m = 1.6, D = 2.4" . Measured together.
* 22. Photometric classification is uncertain. Possible photometric binary star
* as B3III+F5I.
* 36. ADS 2696A, {DELTA}m = 0.2, D = 6", measured separately.
* 37. ADS 2696B.
* 42. V magnitude from BSC4, Hoffleit (1982).
* 63. ADS 2723, {DELTA}m = 0.0, D = 11.4", measured separately.
* 67. o Per. V magnitude from BSC4, Hoffleit (1982).
* 69. The star has considerably lower Q_XZS_ values due to possible emission in
* the H{alpha} line.
* 71. ADS 2729 AB, {DELTA}m = 0.2, D =1". Measured together.
* 77. ADS 2730, {DELTA}m = 0.2, D = 0.45" . Measured together.
* 97. LkH{alpha} 329 (Herbig and Rao 1972). The star has considerably lower
* Q_XZS_ values.
* 102. LKH{alpha} 330 (Herbig and Rao 1972).
* 106. ADS 2723, {DELTA}m = 0.0, D = 11". Measured together.
* 117. ADS 2771A.
* 118. ADS 2772AB, {DELTA}m = 2.5, D = 3".
* 121. ADS 2784 AB, {DELTA}m = 2.0, D = 2".
* 123. SB, Var V467 Per, eclipsing binary system.
* 127. ADS 2804 AB, {DELTA}m = 4.7 , D = 1". Measured together.
* 147. ADS 2834 A, {DELTA}m = 5.7, D = 7". Measured together.
* 149. V magnitude from BSC4, Hoffleit (1982).
* 152. ADS 2857, {DELTA}m = 2.3, D = 3". Measured together.
* 153. ADS 2859, {DELTA}m = 5.8, D = 22". Var X Per, ({gamma} Cas type).
* Spectrum from BSC4, Hoffleit (1982).
* 155. ADS 2866 AB, {DELTA}m = 3.4, D = 1". Measured together.
* 159. Var, NSV 1418, {beta} Cep- type.
* 163. V magnitude and spectrum from BSC4, Hoffleit (1982).
* 186. ADS 2975 AB, {DELTA}m = 0.2, D = 2". Measured together.
* 188. Var, NSV 1459, V = 6.98 -- 7.27 (BSC4, Hoffleit, 1982).
* 189. Var, AG Per, Eclipsing binary system. {DELTA}m = 0.8, D = 0.8".
* Measured together.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2' ! The results of photometric quantification of
stars in the vicinity of the dark cloud L1470
integer*4 nr__1
parameter (nr__1=40) ! Number of records
character*53 ar__1 ! Full-size record
integer*4 No ! Sequential number
character*6 BD_1 ! BD number
character*2 Sp_1 ! Spectral type
integer*4 n_Sp ! [1-2]? Note on Sp (1)
character*7 Sp_Viln ! Spectral type from Vilnius system
real*4 Vmag_1 ! (mag) V magnitude
real*4 Mv ! (mag) Absolute magnitude
character*1 u_Mv ! uncertainty flag on Mv
real*4 E_B_V ! (mag) Reddening
real*4 Av ! (mag) Visual extinction
integer*4 Dist ! (pc) Distance
character*1 u_Dist ! [)] uncertainty flag on Dist
*Note (1): References for the spectra:
* 1: Cannon and Mayall (1949), 2: AGK 3 catalog.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4' ! The results of photometric quantification of
IC 348 stars
integer*4 nr__2
parameter (nr__2=46) ! Number of records
character*70 ar__2 ! Full-size record
integer*4 Seq_1 ! Sequential number
character*1 n_Seq_1 ! [*] Note (1)
character*6 BD_2 ! BD denomination
integer*4 G ! []? Number in the Gingrich (1922) list
character*2 F ! Number in the Fredrick (1956) list
character*7 Sp_2 ! Spectral type
character*1 n_Sp_1 ! [3-6] Note for Sp (2)
character*8 Sp_Viln_1 ! Spectral type from Vilnius system
real*4 Vmag_2 ! (mag) V magnitude (Vilnius system)
real*4 Mv_1 ! (mag) Absolute magnitude
character*1 u_Mv_1 ! Uncertainty flag on Mv
real*4 E_B_V_1 ! (mag) Redenning
real*4 Av_1 ! (mag) Visual extinction
integer*4 Dist_1 ! (pc) Distance
character*1 u_Dist_1 ! [)] uncertainty flag on Dist
character*4 Mem ! Membership (3)
*Note (1): Numbers of the most reliable cluster members, estimated by Fredrick
* (1956), are marked by asterisks.
*Note (2): References for spectra:
* 3: Harris et al. (1954), 4: Strom et al. (1974),
* 5: Vyssotsky and Williams (1948), 6: Herbig and Rao (1972).
*Note (3): nm: no member, m: member
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6' ! The results of photometric quantification of
stars in the region of the association Per OB2
integer*4 nr__3
parameter (nr__3=100) ! Number of records
character*69 ar__3 ! Full-size record
integer*4 Seq_2 ! Sequential number
character*6 BD_3 ! BD denomination
character*7 Sp_3 ! Spectral type
character*1 n_Sp_2 ! [7-9] Note for Sp (1)
character*8 Sp_Viln_1 ! Spectral type from Vilnius system
real*4 Vmag_3 ! (mag) V magnitude (Vilnius system)
real*4 Mv_2 ! (mag) Absolute magnitude
character*1 u_Mv_2 ! uncertainty flag on Mv
real*4 E_B_V_1 ! (mag) Redenning
real*4 Av_2 ! (mag) Visual extinction
integer*4 Dist_2 ! (pc) Distance
character*1 u_Dist_2 ! [)] uncertainty flag on Dist
character*4 Mem_1 ! Membership (2)
*Note (1): References for spectra:
* 7: Guetter (1977), 8: Klochkova & Kopylov (1985)
* 9: Seyfert et al. (1960)
*Note (2): nm: no member, m: member
C=============================================================================
C Loading file 'table1' ! The results of photometry (all stars)
C Format for file interpretation
1 format(
+ I3,A1,1X,A6,1X,I5,1X,I2,1X,I2,1X,I2,A1,I2,1X,F4.1,1X,A8,1X,
+ F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'table1')
write(6,*) '....Loading file: table1'
do i__=1,189
read(1,'(A81)')ar__
read(ar__,1)
+ Seq,n_Seq,BD,HD,RAh,RAm,RAs,DE_,DEd,DEm,Sp,Vmag,U_P,P_X,X_Y,
+ Y_Z,Z_V,V_S,n
if(ar__(13:17) .EQ. '') HD = iNULL__
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,1)
+ Seq,n_Seq,BD,HD,RAh,RAm,RAs,DE_,DEd,DEm,Sp,Vmag,U_P,P_X,X_Y,
+ Y_Z,Z_V,V_S,n
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2' ! The results of photometric quantification of
* stars in the vicinity of the dark cloud L1470
C Format for file interpretation
2 format(
+ I3,1X,A6,1X,A2,1X,I1,3X,A7,1X,F5.2,1X,F4.1,A1,1X,F4.2,1X,F4.2,
+ 1X,I4,A1)
C Effective file loading
open(unit=1,status='old',file=
+'table2')
write(6,*) '....Loading file: table2'
do i__=1,40
read(1,'(A53)')ar__1
read(ar__1,2)
+ No,BD_1,Sp_1,n_Sp,Sp_Viln,Vmag_1,Mv,u_Mv,E_B_V,Av,Dist,u_Dist
if(ar__1(15:15) .EQ. '') n_Sp = iNULL__
c ..............Just test output...........
write(6,2)
+ No,BD_1,Sp_1,n_Sp,Sp_Viln,Vmag_1,Mv,u_Mv,E_B_V,Av,Dist,u_Dist
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4' ! The results of photometric quantification of
* IC 348 stars
C Format for file interpretation
3 format(
+ I3,A1,1X,A6,1X,I2,1X,A2,1X,A7,1X,A1,2X,A8,1X,F5.2,1X,F4.1,A1,
+ 1X,F4.2,1X,F4.2,1X,I4,A1,1X,A4)
C Effective file loading
open(unit=1,status='old',file=
+'table4')
write(6,*) '....Loading file: table4'
do i__=1,46
read(1,'(A70)')ar__2
read(ar__2,3)
+ Seq_1,n_Seq_1,BD_2,G,F,Sp_2,n_Sp_1,Sp_Viln_1,Vmag_2,Mv_1,
+ u_Mv_1,E_B_V_1,Av_1,Dist_1,u_Dist_1,Mem
if(ar__2(13:14) .EQ. '') G = iNULL__
c ..............Just test output...........
write(6,3)
+ Seq_1,n_Seq_1,BD_2,G,F,Sp_2,n_Sp_1,Sp_Viln_1,Vmag_2,Mv_1,
+ u_Mv_1,E_B_V_1,Av_1,Dist_1,u_Dist_1,Mem
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6' ! The results of photometric quantification of
* stars in the region of the association Per OB2
C Format for file interpretation
4 format(
+ I3,1X,A6,1X,A7,1X,A1,2X,A8,4X,F5.2,4X,F4.1,A1,1X,F4.2,1X,F4.2,
+ 1X,I4,A1,1X,A4)
C Effective file loading
open(unit=1,status='old',file=
+'table6')
write(6,*) '....Loading file: table6'
do i__=1,100
read(1,'(A69)')ar__3
read(ar__3,4)
+ Seq_2,BD_3,Sp_3,n_Sp_2,Sp_Viln_1,Vmag_3,Mv_2,u_Mv_2,E_B_V_1,
+ Av_2,Dist_2,u_Dist_2,Mem_1
c ..............Just test output...........
write(6,4)
+ Seq_2,BD_3,Sp_3,n_Sp_2,Sp_Viln_1,Vmag_3,Mv_2,u_Mv_2,E_B_V_1,
+ Av_2,Dist_2,u_Dist_2,Mem_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end