FORTRAN Generation
(/./ftp/cats/J/A_A/362/215)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/362/215 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-08
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/362/215   IJKs photometry of Galactic bulge variables  (Schultheis+, 2000)
*================================================================================
*DENIS and ISOGAL properties of variable star candidates in the Galactic Bulge
*      Schultheis M., Ganesh S., Glass I.S., Omont A., Ortiz R., Simon G.,
*      van Loon J., Alard C., Blommaert J.A.D.L., Borsenberger J., Fouque P.,
*      Habing H.J.
*     <Astron. Astrophys. 362, 215 (2000)>
*     =2000A&A...362..215S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2a.dat'	! Variable stars in J and K_s_

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

C  J2000 position composed of: RAdeg DEdeg (Epoch=J2000)
      integer*4     Seq         ! Sequential number
      real*8        RAdeg       ! (deg) Right ascension at the epoch J2000
      real*8        DEdeg       ! (deg) Declination at the epoch J2000
      real*8        GLON        ! (deg) [-3.5/1.3] Galactic longitude
      real*8        GLAT        ! (deg) [-1/1.3] Galactic latitude
      real*8        Imag        ! (mag) ?=0 DENIS I magnitude observed in summer 1996
      real*8        Jmag        ! (mag) ?=0 DENIS J magnitude observed in summer 1996
      real*8        Ksmag       ! (mag) ?=0 DENIS K_s_ magnitude observed in summer 1996
      real*8        DJmag       ! (mag) Difference in J magnitude (1996-1998)
      real*8        DKsmag      ! (mag) Difference in K magnitude (1996-1998)

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

C  Declarations for 'table2b.dat'	! Variable stars in K_s_

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

C  J2000 position composed of: RAdeg DEdeg (Epoch=J2000)
      integer*4     Seq_1       ! Sequential number
      real*8        RAdeg_1     ! (deg) Right ascension at the epoch J2000
      real*8        DEdeg_1     ! (deg) Declination at the epoch J2000
      real*8        GLON_1      ! (deg) [-3.5/1.3] Galactic longitude
      real*8        GLAT_1      ! (deg) [-1/1.3] Galactic latitude
      real*8        Imag_1      ! (mag) ?=0 DENIS I magnitude observed in summer 1996
      real*8        Jmag_1      ! (mag) ?=0 DENIS J magnitude observed in summer 1996
      real*8        Ksmag_1     ! (mag) ?=0 DENIS K_s_ magnitude observed in summer 1996
      real*8        DJmag_1     ! (mag) Difference in J magnitude (1996-1998)
      real*8        DKsmag_1    ! (mag) Difference in K magnitude (1996-1998)

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

C  Loading file 'table2a.dat'	! Variable stars in J and K_s_

C  Format for file interpretation

    1 format(
     +  I6,1X,F12.8,1X,F12.8,1X,F9.6,1X,F9.6,1X,F9.6,1X,F9.6,1X,F8.6,
     +  1X,F9.6,1X,F9.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2a.dat')
      write(6,*) '....Loading file: table2a.dat'
      do i__=1,721
        read(1,'(A101)')ar__
        read(ar__,1)
     +  Seq,RAdeg,DEdeg,GLON,GLAT,Imag,Jmag,Ksmag,DJmag,DKsmag
c    ..............Just test output...........
        write(6,1)
     +  Seq,RAdeg,DEdeg,GLON,GLAT,Imag,Jmag,Ksmag,DJmag,DKsmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2b.dat'	! Variable stars in K_s_

C  Format for file interpretation

    2 format(
     +  I6,1X,F12.8,1X,F12.8,1X,F9.6,1X,F9.6,1X,F9.6,1X,F9.6,1X,F8.6,
     +  1X,F9.6,1X,F9.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2b.dat')
      write(6,*) '....Loading file: table2b.dat'
      do i__=1,271
        read(1,'(A101)')ar__1
        read(ar__1,2)
     +  Seq_1,RAdeg_1,DEdeg_1,GLON_1,GLAT_1,Imag_1,Jmag_1,Ksmag_1,
     +  DJmag_1,DKsmag_1
c    ..............Just test output...........
        write(6,2)
     +  Seq_1,RAdeg_1,DEdeg_1,GLON_1,GLAT_1,Imag_1,Jmag_1,Ksmag_1,
     +  DJmag_1,DKsmag_1
c    .......End.of.Just test output...........
      end do
      close(1)

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