FORTRAN Generation
(/./ftp/cats/J/A_A/382/899)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/382/899 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-Apr-20
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. J/A+A/382/899       BVI photometry in M67                     (Stassun+, 2002)
*================================================================================
*Photometric variability in the old open cluster M 67. II. General survey.
*     Stassun K.G., van den Berg M., Mathieu R.D., Verbunt F.
*    <Astron. Astrophys. 382, 899 (2002)>
*    =2002A&A...382..899S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! List of sources cross-identified with
                              Fan et al. (1996, Cat. <J/AJ/112/628>)

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

      integer*4     FBC        (nr__) ! Fan et al., 1996, Cat. <J/AJ/112/628> number,
*                                   number, Cl* NGC 2682 FBC NNNN in Simbad
      integer*4     Sand       (nr__) ! ? Sanders, 1977A&AS...27...89S number,
*                                     Cl* NGC 2682 Sand NNNN in Simbad
      character*1   m_Sand     (nr__) ! [ab] Multiplicity index on Sand
      real*4        PmuSand    (nr__) ! ? Proper-motion membership probability from
*                                     Sanders (1977A&AS...27...89S)
      character*4   Gir        (nr__) ! Girard et al., 1989AJ.....98..227G number
      character*1   m_Gir      (nr__) ! [ab] Multiplicity index on Gir
      real*4        Pmu        (nr__) ! ? Proper-motion membership probability from
*                                     Girard et al. (1989AJ.....98..227G) (1)
      real*4        Pmu_r      (nr__) ! ? Proper-motion membership probability from
*                                     Girard et al. (1989AJ.....98..227G) (2)
      integer*4     Prv        (nr__) ! ? Radial-velocity membership probability from
*                                     Girard et al. (1989AJ.....98..227G)
      character*2   n_Prv      (nr__) ! Note on Prv (3)
      integer*4     ZTP        (nr__) ! ? Zhao et al., 1993, Cat. <J/A+AS/100/243>
*                                     number, CL* NGC 2682 ZTP NNNN in Simbad
      real*4        PmuZTP     (nr__) ! ? Proper-motion membership probability from
*                                      Zhao et al., 1993, Cat. <J/A+AS/100/243>
      character*5   ES         (nr__) ! Eggen & Sandage, 1964ApJ...140..130E number,
*                                    Cl* NGC 2682 ES R-NNN in Simbad
      integer*4     FID        (nr__) ! ? Fagerholm 1906, PhD thesis, Uppsala number
      integer*4     MMJ        (nr__) ! ? Montgomery et al., 1993, Cat. <J/AJ/106/181>
*                                     number, CL* NGC 2682 MMJ NNNN in Simbad
*Note (1): Proper-motion membership probability based on solely star's
*     proper motion
*Note (2): Proper-motion membership probability taking into account
*     the star's distance from the cluster center.
*Note (3): Codes:
*    sb: spectroscopic binary
*    hi: high radial velocity dispersion >1km/s
*    si: only a single radial velocity measurement

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

C  Declarations for 'table2.dat'	! List of other sources

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

C  J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__1) ! (deg) Right Ascension J2000.0
      real*8        DEdeg      (nr__1) ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*1   IDT2       (nr__1) ! [A-M] Star identification
      integer*4     RAh        (nr__1) ! (h) Right ascension (J2000.0)
      integer*4     RAm        (nr__1) ! (min) Right ascension (J2000.0)
      real*4        RAs        (nr__1) ! (s) Right ascension (J2000.0)
      character*1   DE_        (nr__1) ! Declination sign (J2000.0)
      integer*4     DEd        (nr__1) ! (deg) Declination (J2000.0)
      integer*4     DEm        (nr__1) ! (arcmin) Declination (J2000.0)
      real*4        DEs        (nr__1) ! (arcsec) Declination (J2000.0)
      integer*4     Sand_1     (nr__1) ! ? Sanders, 1977A&AS...27...89S number,
*                                  Cl* NGC 2682 Sand NNNN in Simbad
      character*1   m_Sand_1   (nr__1) ! [b] Multiplicity index on Sand
      integer*4     Gir_1      (nr__1) ! ? Girard et al., 1989AJ.....98..227G number
      character*1   m_Gir_1    (nr__1) ! [b] Multiplicity index on Gir
      real*4        Pmu_1      (nr__1) ! ? Proper-motion membership probability based
*                                  on solely star's proper motion  (1)
      real*4        Pmu_r_1    (nr__1) ! ? Proper-motion membership probability based on
*                                  star's proper motion and distance from the
*                                  cluster center (1)
      character*5   ES_1       (nr__1) ! Eggen & Sandage, 1964ApJ...140..130E number,
*                                 Cl* NGC 2682 ES R-NNN in Simbad
      integer*4     MMJ_1      (nr__1) ! ? Montgomery et al., 1993, Cat. <J/AJ/106/181>
*                                  number, CL* NGC 2682 MMJ NNNN in Simbad
*Note (1): From Girard et al., 1989AJ.....98..227G.

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

C  Declarations for 'table3.dat'	! BVI photometry for all sources included in study

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

      integer*4     FBC_1      (nr__2) ! ? Star identification number as in table 1 (1)
      character*1   IDT2_1     (nr__2) ! Star identification as in table2 (1)
      real*4        Bmag       (nr__2) ! (mag) ? Johnson B magnitude
      real*4        Vmag       (nr__2) ! (mag) ? Johnson V magnitude
      real*4        Imag       (nr__2) ! (mag) ? Cousins I or Gunn i magnitude (2)
      integer*4     n_Imag     (nr__2) ! [1]? 1: Cousins I magnitude, else Gunn i
*Note (1): Includes the 977 sources from Table 1, which are numbered by
*    the numbering scheme of Fan et al. (1996, Cat. <J/AJ/112/628>). Also
*    includes the 13 sources from Table 2, which are identified with
*    letters A-M.
*Note (2): Values reported are in either the Cousins I or Gunn i passbands.
*    If n_Imag = 1, then the value is Gunn i.

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

C  Loading file 'table1.dat'	! List of sources cross-identified with
*                              Fan et al. (1996, Cat. <J/AJ/112/628>)

C  Format for file interpretation

    1 format(
     +  I4,1X,I4,A1,1X,F4.2,1X,A4,A1,1X,F4.2,1X,F4.2,1X,I2,A2,1X,I4,
     +  1X,F4.2,1X,A5,1X,I3,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,976
        read(1,'(A61)')ar__
        read(ar__,1)
     +  FBC(i__),Sand(i__),m_Sand(i__),PmuSand(i__),Gir(i__),
     +  m_Gir(i__),Pmu(i__),Pmu_r(i__),Prv(i__),n_Prv(i__),ZTP(i__),
     +  PmuZTP(i__),ES(i__),FID(i__),MMJ(i__)
        if(ar__(6:9) .EQ. '') Sand(i__) = iNULL__
        if(ar__(12:15) .EQ. '') PmuSand(i__) = rNULL__
        if(ar__(23:26) .EQ. '') Pmu(i__) = rNULL__
        if(ar__(28:31) .EQ. '') Pmu_r(i__) = rNULL__
        if(ar__(33:34) .EQ. '') Prv(i__) = iNULL__
        if(ar__(38:41) .EQ. '') ZTP(i__) = iNULL__
        if(ar__(43:46) .EQ. '') PmuZTP(i__) = rNULL__
        if(ar__(54:56) .EQ. '') FID(i__) = iNULL__
        if(ar__(58:61) .EQ. '') MMJ(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  FBC(i__),Sand(i__),m_Sand(i__),PmuSand(i__),Gir(i__),
     +  m_Gir(i__),Pmu(i__),Pmu_r(i__),Prv(i__),n_Prv(i__),ZTP(i__),
     +  PmuZTP(i__),ES(i__),FID(i__),MMJ(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! List of other sources

C  Format for file interpretation

    2 format(
     +  A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,I4,A1,1X,I4,
     +  A1,1X,F4.2,1X,F4.2,1X,A5,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,13
        read(1,'(A58)')ar__1
        read(ar__1,2)
     +  IDT2(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Sand_1(i__),m_Sand_1(i__),Gir_1(i__),
     +  m_Gir_1(i__),Pmu_1(i__),Pmu_r_1(i__),ES_1(i__),MMJ_1(i__)
        if(ar__1(27:30) .EQ. '') Sand_1(i__) = iNULL__
        if(ar__1(33:36) .EQ. '') Gir_1(i__) = iNULL__
        if(ar__1(39:42) .EQ. '') Pmu_1(i__) = rNULL__
        if(ar__1(44:47) .EQ. '') Pmu_r_1(i__) = rNULL__
        if(ar__1(55:58) .EQ. '') MMJ_1(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(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,2)
     +  IDT2(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Sand_1(i__),m_Sand_1(i__),Gir_1(i__),
     +  m_Gir_1(i__),Pmu_1(i__),Pmu_r_1(i__),ES_1(i__),MMJ_1(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 'table3.dat'	! BVI photometry for all sources included in study

C  Format for file interpretation

    3 format(I4,A1,1X,F5.2,2X,F5.2,2X,F5.2,2X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,989
        read(1,'(A28)')ar__2
        read(ar__2,3)
     +  FBC_1(i__),IDT2_1(i__),Bmag(i__),Vmag(i__),Imag(i__),
     +  n_Imag(i__)
        if(ar__2(1:4) .EQ. '') FBC_1(i__) = iNULL__
        if(ar__2(7:11) .EQ. '') Bmag(i__) = rNULL__
        if(ar__2(14:18) .EQ. '') Vmag(i__) = rNULL__
        if(ar__2(21:25) .EQ. '') Imag(i__) = rNULL__
        if(ar__2(28:28) .EQ. '') n_Imag(i__) = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  FBC_1(i__),IDT2_1(i__),Bmag(i__),Vmag(i__),Imag(i__),
     +  n_Imag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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