FORTRAN Generation
(/./ftp/cats/J/A_A/500/1027)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/500/1027 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 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/500/1027  EROS CMD towards 4 Galactic spiral arms fields    (Rahal+, 2009)
*================================================================================
*The EROS2 search for microlensing events towards the spiral arms:
*the complete seven season results.
*     Rahal Y.R., Afonso C., Albert J.-N., Andersen J., Ansari R., Aubourg E.,
*     Bareyre P., Beaulieu J.-P., Charlot X., Couchot F., Coutures C., Derue F.,
*     Ferlet R., Fouque P., Glicenstein J.-F., Goldman B., Gould A., Graff D.,
*     Gros M., Haissinski J., Hamadache C., de  Kat J., Lesquoy E., Loup C.,
*     Le Guillou L., Magneville C., Mansoux B., Marquette J.-B., Maurice E.,
*     Maury A., Milsztajn A., Moniez M., Palanque-Delabrouille N., Perdereau O.,
*     Rahvar S., Rich J., Spiro M., Tisserand P., Vidal-Madjar A.,
*     The EROS-2 collaboration
*    <Astron. Astrophys. 500, 1027 (2009)>
*    =2009A&A...500.1027R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'cmdbs.dat'	! CMD diagram towards {theta} Musca

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

      real*4        V_Ic        ! (mag) Central value of the (Vj-Ic) bin (1)
      real*4        Icmag       ! (mag) Central value of the Ic bin
      real*8        w           ! (deg-2.mag-2) Stellar density (2)
*Note (1): V_J is the Johnson V magnitude,  I_C is the Cousins I magnitude
*Note (2): The density is the number density of stars per square degree, per
*     unit of magnitude and per unit of color index.

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

C  Declarations for 'cmdgn.dat'	! CMD diagram towards {gamma} Normae

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

      real*4        V_Ic_1      ! (mag) Central value of the (Vj-Ic) bin (1)
      real*4        Icmag_1     ! (mag) Central value of the Ic bin
      real*8        w_1         ! (deg-2.mag-2) Stellar density (2)
*Note (1): V_J is the Johnson V magnitude,  I_C is the Cousins I magnitude
*Note (2): The density is the number density of stars per square degree, per
*     unit of magnitude and per unit of color index.

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

C  Declarations for 'cmdgs.dat'	! CMD diagram towards {gamma} Scuti

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

      real*4        V_Ic_2      ! (mag) Central value of the (Vj-Ic) bin (1)
      real*4        Icmag_2     ! (mag) Central value of the Ic bin
      real*8        w_2         ! (deg-2.mag-2) Stellar density (2)
*Note (1): V_J is the Johnson V magnitude,  I_C is the Cousins I magnitude
*Note (2): The density is the number density of stars per square degree, per
*     unit of magnitude and per unit of color index.

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

C  Declarations for 'cmdtm.dat'	! CMD diagram towards {beta} Scuti

      integer*4 nr__3
      parameter (nr__3=900)	! Number of records
      character*24 ar__3  	! Full-size record

      real*4        V_Ic_3      ! (mag) Central value of the (Vj-Ic) bin (1)
      real*4        Icmag_3     ! (mag) Central value of the Ic bin
      real*8        w_3         ! (deg-2.mag-2) Stellar density (2)
*Note (1): V_J is the Johnson V magnitude,  I_C is the Cousins I magnitude
*Note (2): The density is the number density of stars per square degree, per
*     unit of magnitude and per unit of color index.

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

C  Loading file 'cmdbs.dat'	! CMD diagram towards {theta} Musca

C  Format for file interpretation

    1 format(1X,F3.1,2X,F5.2,1X,F12.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'cmdbs.dat')
      write(6,*) '....Loading file: cmdbs.dat'
      do i__=1,900
        read(1,'(A24)')ar__
        read(ar__,1)V_Ic,Icmag,w
c    ..............Just test output...........
        write(6,1)V_Ic,Icmag,w
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'cmdgn.dat'	! CMD diagram towards {gamma} Normae

C  Format for file interpretation

    2 format(1X,F3.1,2X,F5.2,1X,F12.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'cmdgn.dat')
      write(6,*) '....Loading file: cmdgn.dat'
      do i__=1,900
        read(1,'(A24)')ar__1
        read(ar__1,2)V_Ic_1,Icmag_1,w_1
c    ..............Just test output...........
        write(6,2)V_Ic_1,Icmag_1,w_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'cmdgs.dat'	! CMD diagram towards {gamma} Scuti

C  Format for file interpretation

    3 format(1X,F3.1,2X,F5.2,1X,F12.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'cmdgs.dat')
      write(6,*) '....Loading file: cmdgs.dat'
      do i__=1,900
        read(1,'(A24)')ar__2
        read(ar__2,3)V_Ic_2,Icmag_2,w_2
c    ..............Just test output...........
        write(6,3)V_Ic_2,Icmag_2,w_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'cmdtm.dat'	! CMD diagram towards {beta} Scuti

C  Format for file interpretation

    4 format(1X,F3.1,2X,F5.2,1X,F12.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'cmdtm.dat')
      write(6,*) '....Loading file: cmdtm.dat'
      do i__=1,900
        read(1,'(A24)')ar__3
        read(ar__3,4)V_Ic_3,Icmag_3,w_3
c    ..............Just test output...........
        write(6,4)V_Ic_3,Icmag_3,w_3
c    .......End.of.Just test output...........
      end do
      close(1)

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