FORTRAN Generation
(/./ftp/cats/II/197)

Conversion of standardized ReadMe file for file /./ftp/cats/II/197 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.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      (nr__) ! (deg) Right Ascension B1950
      real*8        DEdeg      (nr__) ! (deg)     Declination B1950
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Seq        (nr__) ! Sequential number
      character*1   n_Seq      (nr__) ! [*] Note (1)
      character*6   BD         (nr__) ! BD designation
      integer*4     HD         (nr__) ! []? HD designation
      integer*4     RAh        (nr__) ! (h) Right ascension B1950
      integer*4     RAm        (nr__) ! (min) Right ascension B1950
      integer*4     RAs        (nr__) ! (s) Right ascension B1950
      character*1   DE_        (nr__) ! Declination sign B1950
      integer*4     DEd        (nr__) ! (deg) Declination B1950
      real*4        DEm        (nr__) ! (arcmin) Declination B1950
      character*8   Sp         (nr__) ! spectral type
      real*4        Vmag       (nr__) ! (mag) V magnitude (Vilnius system)
      real*4        U_P        (nr__) ! (mag) U-P colour index (Vilnius system)
      real*4        P_X        (nr__) ! (mag) P-X colour index (Vilnius system)
      real*4        X_Y        (nr__) ! (mag) X-Y colour index (Vilnius system)
      real*4        Y_Z        (nr__) ! (mag) Y-Z colour index (Vilnius system)
      real*4        Z_V        (nr__) ! (mag) Z-V colour index (Vilnius system)
      real*4        V_S        (nr__) ! (mag) V-S colour index (Vilnius system)
      integer*4     n          (nr__) ! 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         (nr__1) ! Sequential number
      character*6   BD_1       (nr__1) ! BD number
      character*2   Sp_1       (nr__1) ! Spectral type
      integer*4     n_Sp       (nr__1) ! [1-2]? Note on Sp (1)
      character*7   Sp_Viln    (nr__1) ! Spectral type from Vilnius system
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude
      real*4        Mv         (nr__1) ! (mag) Absolute magnitude
      character*1   u_Mv       (nr__1) ! uncertainty flag on Mv
      real*4        E_B_V      (nr__1) ! (mag) Reddening
      real*4        Av         (nr__1) ! (mag) Visual extinction
      integer*4     Dist       (nr__1) ! (pc) Distance
      character*1   u_Dist     (nr__1) ! [)] 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      (nr__2) ! Sequential number
      character*1   n_Seq_1    (nr__2) ! [*] Note (1)
      character*6   BD_2       (nr__2) ! BD denomination
      integer*4     G          (nr__2) ! []? Number in the Gingrich (1922) list
      character*2   F          (nr__2) ! Number in the Fredrick (1956) list
      character*7   Sp_2       (nr__2) ! Spectral type
      character*1   n_Sp_1     (nr__2) ! [3-6] Note for Sp (2)
      character*8   Sp_Viln_1  (nr__2) ! Spectral type from Vilnius system
      real*4        Vmag_2     (nr__2) ! (mag) V magnitude (Vilnius system)
      real*4        Mv_1       (nr__2) ! (mag) Absolute magnitude
      character*1   u_Mv_1     (nr__2) ! Uncertainty flag on Mv
      real*4        E_B_V_1    (nr__2) ! (mag) Redenning
      real*4        Av_1       (nr__2) ! (mag) Visual extinction
      integer*4     Dist_1     (nr__2) ! (pc) Distance
      character*1   u_Dist_1   (nr__2) ! [)] uncertainty flag on Dist
      character*4   Mem        (nr__2) ! 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      (nr__3) ! Sequential number
      character*6   BD_3       (nr__3) ! BD denomination
      character*7   Sp_3       (nr__3) ! Spectral type
      character*1   n_Sp_2     (nr__3) ! [7-9] Note for Sp (1)
      character*8   Sp_Viln_1  (nr__3) ! Spectral type from Vilnius system
      real*4        Vmag_3     (nr__3) ! (mag) V magnitude (Vilnius system)
      real*4        Mv_2       (nr__3) ! (mag) Absolute magnitude
      character*1   u_Mv_2     (nr__3) ! uncertainty flag on Mv
      real*4        E_B_V_1    (nr__3) ! (mag) Redenning
      real*4        Av_2       (nr__3) ! (mag) Visual extinction
      integer*4     Dist_2     (nr__3) ! (pc) Distance
      character*1   u_Dist_2   (nr__3) ! [)] uncertainty flag on Dist
      character*4   Mem_1      (nr__3) ! 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(i__),n_Seq(i__),BD(i__),HD(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),Sp(i__),Vmag(i__),
     +  U_P(i__),P_X(i__),X_Y(i__),Y_Z(i__),Z_V(i__),V_S(i__),n(i__)
        if(ar__(13:17) .EQ. '') HD(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),n_Seq(i__),BD(i__),HD(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),Sp(i__),Vmag(i__),
     +  U_P(i__),P_X(i__),X_Y(i__),Y_Z(i__),Z_V(i__),V_S(i__),n(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),BD_1(i__),Sp_1(i__),n_Sp(i__),Sp_Viln(i__),
     +  Vmag_1(i__),Mv(i__),u_Mv(i__),E_B_V(i__),Av(i__),Dist(i__),
     +  u_Dist(i__)
        if(ar__1(15:15) .EQ. '') n_Sp(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  No(i__),BD_1(i__),Sp_1(i__),n_Sp(i__),Sp_Viln(i__),
     +  Vmag_1(i__),Mv(i__),u_Mv(i__),E_B_V(i__),Av(i__),Dist(i__),
     +  u_Dist(i__)
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(i__),n_Seq_1(i__),BD_2(i__),G(i__),F(i__),Sp_2(i__),
     +  n_Sp_1(i__),Sp_Viln_1(i__),Vmag_2(i__),Mv_1(i__),u_Mv_1(i__),
     +  E_B_V_1(i__),Av_1(i__),Dist_1(i__),u_Dist_1(i__),Mem(i__)
        if(ar__2(13:14) .EQ. '') G(i__) = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Seq_1(i__),n_Seq_1(i__),BD_2(i__),G(i__),F(i__),Sp_2(i__),
     +  n_Sp_1(i__),Sp_Viln_1(i__),Vmag_2(i__),Mv_1(i__),u_Mv_1(i__),
     +  E_B_V_1(i__),Av_1(i__),Dist_1(i__),u_Dist_1(i__),Mem(i__)
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(i__),BD_3(i__),Sp_3(i__),n_Sp_2(i__),Sp_Viln_1(i__),
     +  Vmag_3(i__),Mv_2(i__),u_Mv_2(i__),E_B_V_1(i__),Av_2(i__),
     +  Dist_2(i__),u_Dist_2(i__),Mem_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  Seq_2(i__),BD_3(i__),Sp_3(i__),n_Sp_2(i__),Sp_Viln_1(i__),
     +  Vmag_3(i__),Mv_2(i__),u_Mv_2(i__),E_B_V_1(i__),Av_2(i__),
     +  Dist_2(i__),u_Dist_2(i__),Mem_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end