FORTRAN Generation
(/./ftp/cats/J/A_A/474/35)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/474/35 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-Mar-29
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/474/35     JKs photometry of C stars in IC10 and WLM   (Battinelli+, 2007)
*================================================================================
*The assessment of the near infrared identification of carbon stars.
*I. The Local Group galaxies WLM, IC 10 and NGC 6822.
*    Battinelli P., Demers S., Mannucci F.
*   <Astron. Astrophys., 474, 35-41 (2007)>
*   =2007A&A...474...35B    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Known C stars in the WLM NICS field

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

      integer*4     v_BD2004a_  ! Sequential number from Battinelli & Demers, 
*                                   2004, Cat. J/A+A/416/111
      real*4        Imag        ! (mag) I magnitude
      real*4        R_I         ! (mag) R-I colour index
      real*4        CN_TiO      ! (mag) CN-TiO index
      real*4        Ksmag       ! (mag) Ks magnitude
      real*4        e_Ksmag     ! (mag) rms uncertainty on Ksmag
      real*4        J_Ks        ! (mag) J-Ks colour index
      real*4        e_J_Ks      ! (mag) rms uncertainty on J-Ks
      real*4        H_Ks        ! (mag) H-Ks colour index
      real*4        e_H_Ks      ! (mag) rms uncertainty on H-Ks

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

C  Declarations for 'table3.dat'	! Known C stars in the IC 10 NICS field

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

      integer*4     v_DBL2004_  ! Sequential number from Demers et al., 2004,
*                                   Cat. J/A+A/424/125
      real*4        I0mag       ! (mag) Dereddened I magnitude
      real*4        v_R_I_0     ! (mag) Dereddened R-I colour index
      real*4        CN_TiO_1    ! (mag) CN-TiO index
      real*4        Ksmag_1     ! (mag) Ks magnitude
      real*4        e_Ksmag_1   ! (mag) rms uncertainty on Ksmag
      real*4        J_Ks_1      ! (mag) J-Ks colour index
      real*4        e_J_Ks_1    ! (mag) rms uncertainty on J-Ks
      real*4        H_Ks_1      ! (mag) H-Ks colour index
      real*4        e_H_Ks_1    ! (mag) rms uncertainty on H-Ks

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

C  Loading file 'table2.dat'	! Known C stars in the WLM NICS field

C  Format for file interpretation

    1 format(
     +  I3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,62
        read(1,'(A59)')ar__
        read(ar__,1)
     +  v_BD2004a_,Imag,R_I,CN_TiO,Ksmag,e_Ksmag,J_Ks,e_J_Ks,H_Ks,
     +  e_H_Ks
c    ..............Just test output...........
        write(6,1)
     +  v_BD2004a_,Imag,R_I,CN_TiO,Ksmag,e_Ksmag,J_Ks,e_J_Ks,H_Ks,
     +  e_H_Ks
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Known C stars in the IC 10 NICS field

C  Format for file interpretation

    2 format(
     +  I3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,52
        read(1,'(A59)')ar__1
        read(ar__1,2)
     +  v_DBL2004_,I0mag,v_R_I_0,CN_TiO_1,Ksmag_1,e_Ksmag_1,J_Ks_1,
     +  e_J_Ks_1,H_Ks_1,e_H_Ks_1
c    ..............Just test output...........
        write(6,2)
     +  v_DBL2004_,I0mag,v_R_I_0,CN_TiO_1,Ksmag_1,e_Ksmag_1,J_Ks_1,
     +  e_J_Ks_1,H_Ks_1,e_H_Ks_1
c    .......End.of.Just test output...........
      end do
      close(1)

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