FORTRAN Generation
(/./ftp/cats/J/A_A/413/1037)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/413/1037 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 2026-Oct-05
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/413/1037 J-K DENIS photometry of bright southern stars (Kimeswenger+ 2004)
*================================================================================
*J-K DENIS photometry of a VLTI-selected sample of bright southern stars.
*    Kimeswenger S., Lederle C., Richichi A., Percheron I., Paresce F.,
*    Armsdorfer B., Bacher A., Cabrera-Lavers A.L., Kausch W., Rassia E.,
*    Schmeja S., Tapken C., Fouque P., Maury A.,  Epchtein N.
*   <Astron. Astrophys. 413, 1037 (2004)>
*   =2004A&A...413.1037K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Main catalogue (average photometric values)

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

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

      integer*4     Index       ! Index number
      character*21  Name        ! Name of the source
      integer*4     RAh         ! (h) Right Ascension J2000 (hours)
      integer*4     RAm         ! (min) Right Ascension J2000 (minutes)
      real*8        RAs         ! (s) Right Ascension J2000 (seconds)
      character*1   DE_         ! Declination J2000 (sign)
      integer*4     DEd         ! (deg) Declination J2000 (degrees)
      integer*4     DEm         ! (arcmin) Declination J2000 (minutes)
      real*4        DEs         ! (arcsec) Declination J2000 (seconds)
      character*15  IRAS        ! Cross-identification in IRAS catalogue
      character*10  IRC         ! Cross-identification in IRC catalogue
      integer*4     N           ! Number of pointings to target
      real*8        JD_2400000  ! (d) Mean JD (= JD-2400000) of observation
      real*4        Ksmag       ! (mag) ? Mean Ks magnitude
      integer*4     o_Ksmag     ! ? Number of K pointings for mean Ks
      real*4        e_Ksmag     ! (mag) ? Error of mean Ks magnitude
      real*4        Jmag        ! (mag) ? Mean J magnitude
      integer*4     o_Jmag      ! ? Number of J pointings for mean Ks
      real*4        e_Jmag      ! (mag) ? Error of mean J magnitude
      integer*4     Var         ! ? Varibility index (1)
      real*4        Kmag        ! (mag) ? K magnitude in IRC catalogue
      character*5   SpType      ! MK Spectral class from SIMBAD
      character*14  Rem         ! Remarks
*Note (1): This is an index giving for targets with multiple pointings a
*    probability for a possible variability. For Var<4 it corresponds
*    approximately to times {sigma} (for details see section 3.4 in the
*    paper).

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

C  Declarations for 'table2.dat'	! Catalogue of the individual measurements of the
                              up to 8 pointings

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

      integer*4     Index_1     ! Index number (same as in table1)
      character*21  Name_1      ! Name of the source (same as in table1)
      integer*4     N_1         ! number of pointings to target (same as in
*                                    table1)
      real*8        JD1_2400000 ! (d) ? Modified JD (= JD-2400000) of 1. pointing
      real*4        Ksmag1      ! (mag) ? Ks magnitude of 1. pointing
      real*4        e_Ksmag1    ! (mag) ? Error of Ks magnitude of 1. pointing
      integer*4     o_Ksmag1    ! ? Number of K frames used in 1. pointing
      real*4        Jmag1       ! (mag) ? J magnitude of 1. pointing
      real*4        e_Jmag1     ! (mag) ? Error of J magnitude of 1. pointing
      integer*4     o_Jmag1     ! ? Number of J frames used in 1. pointing
      real*8        JD2_2400000 ! (d) ? Modified JD (= JD-2400000) of 2. pointing
      real*4        Ksmag2      ! (mag) ? Ks magnitude of 2. pointing
      real*4        e_Ksmag2    ! (mag) ? Error of Ks magnitude of 2. pointing
      integer*4     o_Ksmag2    ! ? Number of K frames used in 2. pointing
      real*4        Jmag2       ! (mag) ? J magnitude of 2. pointing
      real*4        e_Jmag2     ! (mag) ? Error of J magnitude of 2. pointing
      integer*4     o_Jmag2     ! ? Number of J frames used in 2. pointing
      real*8        JD3_2400000 ! (d) ? Modified JD (= JD-2400000) of 3. pointing
      real*4        Ksmag3      ! (mag) ? Ks magnitude of 3. pointing
      real*4        e_Ksmag3    ! (mag) ? Error of Ks magnitude of 3. pointing
      integer*4     o_Ksmag3    ! ? Number of K frames used in 3. pointing
      real*4        Jmag3       ! (mag) ? J magnitude of 3. pointing
      real*4        e_Jmag3     ! (mag) ? Error of J magnitude of 3. pointing
      integer*4     o_Jmag3     ! ? Number of J frames used in 3. pointing
      real*8        JD4_2400000 ! (d) ? Modified JD (= JD-2400000) of 4. pointing
      real*4        Ksmag4      ! (mag) ? Ks magnitude of 4. pointing
      real*4        e_Ksmag4    ! (mag) ? Error of Ks magnitude of 4. pointing
      integer*4     o_Ksmag4    ! ? Number of K frames used in 4. pointing
      real*4        Jmag4       ! (mag) ? J magnitude of 4. pointing
      real*4        e_Jmag4     ! (mag) ? Error of J magnitude of 4. pointing
      integer*4     o_Jmag4     ! ? Number of J frames used in 4. pointing
      real*8        JD5_2400000 ! (d) ? Modified JD (= JD-2400000) of 5. pointing
      real*4        Ksmag5      ! (mag) ? Ks magnitude of 5. pointing
      real*4        e_Ksmag5    ! (mag) ? Error of Ks magnitude of 5. pointing
      integer*4     o_Ksmag5    ! ? Number of K frames used in 5. pointing
      real*4        Jmag5       ! (mag) ? J magnitude of 5. pointing
      real*4        e_Jmag5     ! (mag) ? Error of J magnitude of 5. pointing
      integer*4     o_Jmag5     ! ? Number of J frames used in 5. pointing
      real*8        JD6_2400000 ! (d) ? Modified JD (= JD-2400000) of 6. pointing
      real*4        Ksmag6      ! (mag) ? Ks magnitude of 6. pointing
      real*4        e_Ksmag6    ! (mag) ? Error of Ks magnitude of 6. pointing
      integer*4     o_Ksmag6    ! ? Number of K frames used in 6. pointing
      real*4        Jmag6       ! (mag) ? J magnitude of 6. pointing
      real*4        e_Jmag6     ! (mag) ? Error of J magnitude of 6. pointing
      integer*4     o_Jmag6     ! ? Number of J frames used in 6. pointing
      real*8        JD7_2400000 ! (d) ? Modified JD (= JD-2400000) of 7. pointing
      real*4        Ksmag7      ! (mag) ? Ks magnitude of 7. pointing
      real*4        e_Ksmag7    ! (mag) ? Error of Ks magnitude of 7. pointing
      integer*4     o_Ksmag7    ! ? Number of K frames used in 7. pointing
      real*4        Jmag7       ! (mag) ? J magnitude of 7. pointing
      real*4        e_Jmag7     ! (mag) ? Error of J magnitude of 7. pointing
      integer*4     o_Jmag7     ! ? Number of J frames used in 7. pointing
      real*8        JD8_2400000 ! (d) ? Modified JD (= JD-2400000) of 8. pointing
      real*4        Ksmag8      ! (mag) ? Ks magnitude of 8. pointing
      real*4        e_Ksmag8    ! (mag) ? Error of Ks magnitude of 8. pointing
      integer*4     o_Ksmag8    ! ? Number of K frames used in 8. pointing
      real*4        Jmag8       ! (mag) ? J magnitude of 8. pointing
      real*4        e_Jmag8     ! (mag) ? Error of J magnitude of 8. pointing
      integer*4     o_Jmag8     ! ? Number of J frames used in 8. pointing

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

C  Loading file 'table1.dat'	! Main catalogue (average photometric values)

C  Format for file interpretation

    1 format(
     +  I3,1X,A21,1X,I2,1X,I2,1X,F7.4,1X,A1,I2,1X,I2,1X,F6.3,1X,A15,
     +  1X,A10,1X,I1,1X,F8.2,1X,F6.3,1X,I1,1X,F5.3,1X,F6.3,1X,I1,1X,
     +  F5.3,1X,I2,1X,F5.2,1X,A5,1X,A14)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,602
        read(1,'(A151)')ar__
        read(ar__,1)
     +  Index,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,IRAS,IRC,N,JD_2400000,
     +  Ksmag,o_Ksmag,e_Ksmag,Jmag,o_Jmag,e_Jmag,Var,Kmag,SpType,Rem
        if(ar__(93:98) .EQ. '') Ksmag = rNULL__
        if(ar__(100:100) .EQ. '') o_Ksmag = iNULL__
        if(ar__(102:106) .EQ. '') e_Ksmag = rNULL__
        if(ar__(108:113) .EQ. '') Jmag = rNULL__
        if(ar__(115:115) .EQ. '') o_Jmag = iNULL__
        if(ar__(117:121) .EQ. '') e_Jmag = rNULL__
        if(ar__(123:124) .EQ. '') Var = iNULL__
        if(ar__(126:130) .EQ. '') Kmag = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Index,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,IRAS,IRC,N,JD_2400000,
     +  Ksmag,o_Ksmag,e_Ksmag,Jmag,o_Jmag,e_Jmag,Var,Kmag,SpType,Rem
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Catalogue of the individual measurements of the
*                              up to 8 pointings

C  Format for file interpretation

    2 format(
     +  I3,1X,A21,I1,1X,F10.4,1X,F6.3,1X,F5.3,1X,I1,1X,F6.3,1X,F5.3,
     +  1X,I1,1X,F10.4,1X,F6.3,1X,F5.3,1X,I1,1X,F6.3,1X,F5.3,1X,I1,1X,
     +  F10.4,1X,F6.3,1X,F5.3,1X,I1,1X,F6.3,1X,F5.3,1X,I1,1X,F10.4,1X,
     +  F6.3,1X,F5.3,1X,I1,1X,F6.3,1X,F5.3,1X,I1,1X,F10.4,1X,F6.3,1X,
     +  F5.3,1X,I1,1X,F6.3,1X,F5.3,1X,I1,1X,F10.4,1X,F6.3,1X,F5.3,1X,
     +  I1,1X,F6.3,1X,F5.3,1X,I1,1X,F10.4,1X,F6.3,1X,F5.3,1X,I1,1X,
     +  F6.3,1X,F5.3,1X,I1,1X,F10.4,1X,F6.3,1X,F5.3,1X,I1,1X,F6.3,1X,
     +  F5.3,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,602
        read(1,'(A354)')ar__1
        read(ar__1,2)
     +  Index_1,Name_1,N_1,JD1_2400000,Ksmag1,e_Ksmag1,o_Ksmag1,Jmag1,
     +  e_Jmag1,o_Jmag1,JD2_2400000,Ksmag2,e_Ksmag2,o_Ksmag2,Jmag2,
     +  e_Jmag2,o_Jmag2,JD3_2400000,Ksmag3,e_Ksmag3,o_Ksmag3,Jmag3,
     +  e_Jmag3,o_Jmag3,JD4_2400000,Ksmag4,e_Ksmag4,o_Ksmag4,Jmag4,
     +  e_Jmag4,o_Jmag4,JD5_2400000,Ksmag5,e_Ksmag5,o_Ksmag5,Jmag5,
     +  e_Jmag5,o_Jmag5,JD6_2400000,Ksmag6,e_Ksmag6,o_Ksmag6,Jmag6,
     +  e_Jmag6,o_Jmag6,JD7_2400000,Ksmag7,e_Ksmag7,o_Ksmag7,Jmag7,
     +  e_Jmag7,o_Jmag7,JD8_2400000,Ksmag8,e_Ksmag8,o_Ksmag8,Jmag8,
     +  e_Jmag8,o_Jmag8
        if(ar__1(28:37) .EQ. '') JD1_2400000 = rNULL__
        if(ar__1(39:44) .EQ. '') Ksmag1 = rNULL__
        if(ar__1(46:50) .EQ. '') e_Ksmag1 = rNULL__
        if(ar__1(52:52) .EQ. '') o_Ksmag1 = iNULL__
        if(ar__1(54:59) .EQ. '') Jmag1 = rNULL__
        if(ar__1(61:65) .EQ. '') e_Jmag1 = rNULL__
        if(ar__1(67:67) .EQ. '') o_Jmag1 = iNULL__
        if(ar__1(69:78) .EQ. '') JD2_2400000 = rNULL__
        if(ar__1(80:85) .EQ. '') Ksmag2 = rNULL__
        if(ar__1(87:91) .EQ. '') e_Ksmag2 = rNULL__
        if(ar__1(93:93) .EQ. '') o_Ksmag2 = iNULL__
        if(ar__1(95:100) .EQ. '') Jmag2 = rNULL__
        if(ar__1(102:106) .EQ. '') e_Jmag2 = rNULL__
        if(ar__1(108:108) .EQ. '') o_Jmag2 = iNULL__
        if(ar__1(110:119) .EQ. '') JD3_2400000 = rNULL__
        if(ar__1(121:126) .EQ. '') Ksmag3 = rNULL__
        if(ar__1(128:132) .EQ. '') e_Ksmag3 = rNULL__
        if(ar__1(134:134) .EQ. '') o_Ksmag3 = iNULL__
        if(ar__1(136:141) .EQ. '') Jmag3 = rNULL__
        if(ar__1(143:147) .EQ. '') e_Jmag3 = rNULL__
        if(ar__1(149:149) .EQ. '') o_Jmag3 = iNULL__
        if(ar__1(151:160) .EQ. '') JD4_2400000 = rNULL__
        if(ar__1(162:167) .EQ. '') Ksmag4 = rNULL__
        if(ar__1(169:173) .EQ. '') e_Ksmag4 = rNULL__
        if(ar__1(175:175) .EQ. '') o_Ksmag4 = iNULL__
        if(ar__1(177:182) .EQ. '') Jmag4 = rNULL__
        if(ar__1(184:188) .EQ. '') e_Jmag4 = rNULL__
        if(ar__1(190:190) .EQ. '') o_Jmag4 = iNULL__
        if(ar__1(192:201) .EQ. '') JD5_2400000 = rNULL__
        if(ar__1(203:208) .EQ. '') Ksmag5 = rNULL__
        if(ar__1(210:214) .EQ. '') e_Ksmag5 = rNULL__
        if(ar__1(216:216) .EQ. '') o_Ksmag5 = iNULL__
        if(ar__1(218:223) .EQ. '') Jmag5 = rNULL__
        if(ar__1(225:229) .EQ. '') e_Jmag5 = rNULL__
        if(ar__1(231:231) .EQ. '') o_Jmag5 = iNULL__
        if(ar__1(233:242) .EQ. '') JD6_2400000 = rNULL__
        if(ar__1(244:249) .EQ. '') Ksmag6 = rNULL__
        if(ar__1(251:255) .EQ. '') e_Ksmag6 = rNULL__
        if(ar__1(257:257) .EQ. '') o_Ksmag6 = iNULL__
        if(ar__1(259:264) .EQ. '') Jmag6 = rNULL__
        if(ar__1(266:270) .EQ. '') e_Jmag6 = rNULL__
        if(ar__1(272:272) .EQ. '') o_Jmag6 = iNULL__
        if(ar__1(274:283) .EQ. '') JD7_2400000 = rNULL__
        if(ar__1(285:290) .EQ. '') Ksmag7 = rNULL__
        if(ar__1(292:296) .EQ. '') e_Ksmag7 = rNULL__
        if(ar__1(298:298) .EQ. '') o_Ksmag7 = iNULL__
        if(ar__1(300:305) .EQ. '') Jmag7 = rNULL__
        if(ar__1(307:311) .EQ. '') e_Jmag7 = rNULL__
        if(ar__1(313:313) .EQ. '') o_Jmag7 = iNULL__
        if(ar__1(315:324) .EQ. '') JD8_2400000 = rNULL__
        if(ar__1(326:331) .EQ. '') Ksmag8 = rNULL__
        if(ar__1(333:337) .EQ. '') e_Ksmag8 = rNULL__
        if(ar__1(339:339) .EQ. '') o_Ksmag8 = iNULL__
        if(ar__1(341:346) .EQ. '') Jmag8 = rNULL__
        if(ar__1(348:352) .EQ. '') e_Jmag8 = rNULL__
        if(ar__1(354:354) .EQ. '') o_Jmag8 = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  Index_1,Name_1,N_1,JD1_2400000,Ksmag1,e_Ksmag1,o_Ksmag1,Jmag1,
     +  e_Jmag1,o_Jmag1,JD2_2400000,Ksmag2,e_Ksmag2,o_Ksmag2,Jmag2,
     +  e_Jmag2,o_Jmag2,JD3_2400000,Ksmag3,e_Ksmag3,o_Ksmag3,Jmag3,
     +  e_Jmag3,o_Jmag3,JD4_2400000,Ksmag4,e_Ksmag4,o_Ksmag4,Jmag4,
     +  e_Jmag4,o_Jmag4,JD5_2400000,Ksmag5,e_Ksmag5,o_Ksmag5,Jmag5,
     +  e_Jmag5,o_Jmag5,JD6_2400000,Ksmag6,e_Ksmag6,o_Ksmag6,Jmag6,
     +  e_Jmag6,o_Jmag6,JD7_2400000,Ksmag7,e_Ksmag7,o_Ksmag7,Jmag7,
     +  e_Jmag7,o_Jmag7,JD8_2400000,Ksmag8,e_Ksmag8,o_Ksmag8,Jmag8,
     +  e_Jmag8,o_Jmag8
c    .......End.of.Just test output...........
      end do
      close(1)

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