FORTRAN Generation
(/./ftp/cats/V/96)

Conversion of standardized ReadMe file for file /./ftp/cats/V/96 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 2024-Mar-28
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. V/96      Catalogue of open cluster parameters from UBV-data.  (Loktin+, 1994)
*================================================================================
*Catalogue of open cluster parameters from UBV-data.
*     Loktin A.V., Matkin N.V., Gerasimenko T.P.
*    <Astron. Astrophys. Trans. 4, 153 (1994)>
*    =1994A&AT....4..153L
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'catalog.dat'	! Weighted mean parameters of open clusters

      integer*4 nr__
      parameter (nr__=340)	! Number of records
      character*72 ar__   	! Full-size record

C  1950 position composed of: RAh RAm DE- DEd DEm
      real*8        RAdeg      (nr__) ! (deg) Right Ascension 1950
      real*8        DEdeg      (nr__) ! (deg)     Declination 1950
C  ---------------------------------- ! (position vector(s) in degrees)

      character*12  Cl         (nr__) ! Name of cluster
      real*4        GLON       (nr__) ! (deg) Galactic longitude
      real*4        GLAT       (nr__) ! (deg) Galactic latitude
      integer*4     RAh        (nr__) ! (h) Right Ascension 1950 (hours)
      real*4        RAm        (nr__) ! (min) Right Ascension 1950 (minutes)
      character*1   DE_        (nr__) ! Declination  (sign)
      integer*4     DEd        (nr__) ! (deg) Declination 1950 (degrees)
      integer*4     DEm        (nr__) ! (arcmin) Declination 1950 (minutes)
      real*4        E_B_V      (nr__) ! (mag) Mean value of reddening
      integer*4     Distm      (nr__) ! (pc) Mean estimate of cluster distance
      real*4        log_age    (nr__) ! ([yr]) Mean Log(age), years
      real*4        W          (nr__) ! Weight (1)
      integer*4     o_Cl       (nr__) ! Number of individual determinations 
*                                   (in table1.dat)
*Note (1):
*    Weight is defined by quality classes of both  photometrical diagrams,
*    number of stars used and number of rejected stars.
*    These weights  are arbitrary to some extent, but we state, that
*    clusters with weight>1 may be regarded as having good quality of
*    estimated parameters.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! Individual determinations of cluster parameters

      integer*4 nr__1
      parameter (nr__1=566)	! Number of records
      character*83 ar__1  	! Full-size record

      character*12  Cl_1       (nr__1) ! Name of cluster
      real*8        m_M        (nr__1) ! (mag) Distance modulus
      integer*4     Dist       (nr__1) ! (pc) Distance
      real*4        log_age_1  (nr__1) ! ([yr]) Log(age), years
      real*4        E_B_V_1    (nr__1) ! (mag) Reddening
      real*4        v_Fe_H_    (nr__1) ! ([Sun]) ? Metallicity index
      character*2   qHR        (nr__1) ! Quality estimation of HR-diagram (1)
      character*2   qCD        (nr__1) ! Quality estimation of two-color diagram (1)
      integer*4     Ns         (nr__1) ! Original number of stars in cluster
      integer*4     Na         (nr__1) ! Accepted number of stars in cluster
      integer*4     r_Cl       (nr__1) ! [1,321] Reference number code (see refs.dat)
*Note (1): the Quality codes are A to D where
*      A - corresponds to the diagrams with the most clearly visible sequences,
*      D - corresponds to quite unshaped distribution of points.
*      Digit 5 after the letter denotes the intermediate cases.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'refs.dat'	! References

      integer*4 nr__2
      parameter (nr__2=321)	! Number of records
      character*87 ar__2  	! Full-size record

      integer*4     RefC       (nr__2) ! [1,321]+ Reference number code
      character*82  Text       (nr__2) ! Text of reference

C=============================================================================

C  Loading file 'catalog.dat'	! Weighted mean parameters of open clusters

C  Format for file interpretation

    1 format(
     +  A12,1X,F5.1,1X,F5.1,2X,I2,1X,F4.1,1X,A1,I2,1X,I2,2X,F4.2,2X,
     +  I5,3X,F5.3,3X,F4.2,3X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,340
        read(1,'(A72)')ar__
        read(ar__,1)
     +  Cl(i__),GLON(i__),GLAT(i__),RAh(i__),RAm(i__),DE_(i__),
     +  DEd(i__),DEm(i__),E_B_V(i__),Distm(i__),log_age(i__),W(i__),
     +  o_Cl(i__)
        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(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)
     +  Cl(i__),GLON(i__),GLAT(i__),RAh(i__),RAm(i__),DE_(i__),
     +  DEd(i__),DEm(i__),E_B_V(i__),Distm(i__),log_age(i__),W(i__),
     +  o_Cl(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 'table1.dat'	! Individual determinations of cluster parameters

C  Format for file interpretation

    2 format(
     +  A12,2X,F7.3,2X,I5,4X,F6.3,4X,F5.3,3X,F6.3,4X,A2,2X,A2,3X,I3,
     +  1X,I3,4X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,566
        read(1,'(A83)')ar__1
        read(ar__1,2)
     +  Cl_1(i__),m_M(i__),Dist(i__),log_age_1(i__),E_B_V_1(i__),
     +  v_Fe_H_(i__),qHR(i__),qCD(i__),Ns(i__),Na(i__),r_Cl(i__)
        if(ar__1(51:56) .EQ. '') v_Fe_H_(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Cl_1(i__),m_M(i__),Dist(i__),log_age_1(i__),E_B_V_1(i__),
     +  v_Fe_H_(i__),qHR(i__),qCD(i__),Ns(i__),Na(i__),r_Cl(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    3 format(I3,2X,A82)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,321
        read(1,'(A87)')ar__2
        read(ar__2,3)RefC(i__),Text(i__)
c    ..............Just test output...........
        write(6,3)RefC(i__),Text(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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