FORTRAN Generation
(/./ftp/cats/J/AZh/88/34)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/88/34 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/AZh/88/34   Long-term (1984-2008) JHKLM photometry of stars (Shenavrin+, 2011)
*================================================================================
*Search for and study of hot circumstellar dust envelopes.
*    Shenavrin V.I., Taranova O.G., Nadzhip A.E.
*   <Astron. Zh. 88, 34 (2011)>
*   =2011AZh....88...34S
*   =2011ARep...55...31S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! List of objects

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

      integer*4     Seq         ! Sequential number
      character*11  Name        ! Star name
      character*15  Type        ! Type of object or variability
      character*19  SpType      ! MK spectral type
      character*10  STD         ! Standard star used
      character*1   LC2         ! [+] Indicates JHKLM photometry in table2
      character*1   LC3         ! [+] Indicates JHKLM photometry in table3

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

C  Declarations for 'table2.dat'	! Results of JHKLM photometry for 99 objects

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

      character*11  Name_1      ! Star name
      real*8        JD          ! (d) Julian date
      real*4        Jmag        ! (mag) ?=- J magnitude
      character*1   u_Jmag      ! Uncertainty flag on Jmag
      real*4        e_Jmag      ! (mag) ?=- rms uncertainty on Jmag
      real*4        Hmag        ! (mag) ?=- H magnitude
      character*1   u_Hmag      ! Uncertainty flag on Hmag
      real*4        e_Hmag      ! (mag) ?=- rms uncertainty on Hmag
      real*4        Kmag        ! (mag) ?=- K magnitude
      real*4        e_Kmag      ! (mag) ?=- rms uncertainty on Kmag
      real*4        Lmag        ! (mag) ?=- L magnitude
      character*1   u_Lmag      ! Uncertainty flag on Lmag
      real*4        e_Lmag      ! (mag) ?=- rms uncertainty on Lmag
      real*4        Mmag        ! (mag) ?=- M magnitude
      real*4        e_Mmag      ! (mag) ?=- rms uncertainty on Mmag

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

C  Declarations for 'table3.dat'	! Results of JHKLM photometry for four
                              short-period variables

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

      character*10  Name_2      ! Star name (1)
      real*8        JDJ         ! (d) ? Julian date for J band
      real*4        Jmag_1      ! (mag) ?=- J magnitude
      real*4        e_Jmag_1    ! (mag) ?=- rms uncertainty on Mmag
      real*8        JDH         ! (d) ? Julian date for H band
      real*4        Hmag_1      ! (mag) ?=- H magnitude
      real*4        e_Hmag_1    ! (mag) ?=- rms uncertainty on Hmag
      real*8        JDK         ! (d) ? Julian date for K band
      real*4        Kmag_1      ! (mag) ?=- K magnitude
      real*4        e_Kmag_1    ! (mag) ?=- rms uncertainty on Kmag
      real*8        JDL         ! (d) ? Julian date for L band
      real*4        Lmag_1      ! (mag) ?=- L magnitude
      character*1   u_Lmag_1    ! Uncertainty flag on Lmag
      real*4        e_Lmag_1    ! (mag) ?=- rms uncertainty on Lmag
      real*8        JDM         ! (d) ? Julian date for M band
      real*4        Mmag_1      ! (mag) ?=- M magnitude
      character*1   u_Mmag      ! Uncertainty flag on Mmag
      real*4        e_Mmag_1    ! (mag) ?=- rms uncertainty on Mmag
*Note (1): beta Lyr, iota Boo, V444 Cyg* and V1357 Cyg.

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

C  Declarations for 'table6.dat'	! List of standards and their JHKLM magnitudes

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

      integer*4     HR          ! HR number
      real*4        Jmag_2      ! (mag) J magnitude
      real*4        Hmag_2      ! (mag) ?=- H magnitude
      real*4        Kmag_2      ! (mag) ?=- K magnitude
      real*4        Lmag_2      ! (mag) ?=- L magnitude
      real*4        Mmag_2      ! (mag) ?=- M magnitude

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

C  Loading file 'table1.dat'	! List of objects

C  Format for file interpretation

    1 format(I3,1X,A11,1X,A15,1X,A19,1X,A10,1X,A1,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,254
        read(1,'(A65)')ar__
        read(ar__,1)Seq,Name,Type,SpType,STD,LC2,LC3
c    ..............Just test output...........
        write(6,1)Seq,Name,Type,SpType,STD,LC2,LC3
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Results of JHKLM photometry for 99 objects

C  Format for file interpretation

    2 format(
     +  A11,2X,F9.1,1X,F5.2,A1,F3.2,1X,F5.2,A1,F3.2,1X,F5.2,1X,F3.2,
     +  1X,F5.2,A1,F3.2,1X,F5.2,1X,F3.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1811
        read(1,'(A72)')ar__1
        read(ar__1,2)
     +  Name_1,JD,Jmag,u_Jmag,e_Jmag,Hmag,u_Hmag,e_Hmag,Kmag,e_Kmag,
     +  Lmag,u_Lmag,e_Lmag,Mmag,e_Mmag
        if (idig(ar__1(24:28)).EQ.0) Jmag =  rNULL__
        if (idig(ar__1(30:32)).EQ.0) e_Jmag =  rNULL__
        if (idig(ar__1(34:38)).EQ.0) Hmag =  rNULL__
        if (idig(ar__1(40:42)).EQ.0) e_Hmag =  rNULL__
        if (idig(ar__1(44:48)).EQ.0) Kmag =  rNULL__
        if (idig(ar__1(50:52)).EQ.0) e_Kmag =  rNULL__
        if (idig(ar__1(54:58)).EQ.0) Lmag =  rNULL__
        if (idig(ar__1(60:62)).EQ.0) e_Lmag =  rNULL__
        if (idig(ar__1(64:68)).EQ.0) Mmag =  rNULL__
        if (idig(ar__1(70:72)).EQ.0) e_Mmag =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,JD,Jmag,u_Jmag,e_Jmag,Hmag,u_Hmag,e_Hmag,Kmag,e_Kmag,
     +  Lmag,u_Lmag,e_Lmag,Mmag,e_Mmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Results of JHKLM photometry for four
*                              short-period variables

C  Format for file interpretation

    3 format(
     +  A10,1X,F11.3,1X,F5.3,1X,F4.3,1X,F11.3,1X,F5.3,1X,F4.3,1X,
     +  F11.3,1X,F5.3,1X,F4.3,1X,F11.3,1X,F5.3,A1,F4.3,1X,F11.3,1X,
     +  F5.3,A1,F4.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,482
        read(1,'(A125)')ar__2
        read(ar__2,3)
     +  Name_2,JDJ,Jmag_1,e_Jmag_1,JDH,Hmag_1,e_Hmag_1,JDK,Kmag_1,
     +  e_Kmag_1,JDL,Lmag_1,u_Lmag_1,e_Lmag_1,JDM,Mmag_1,u_Mmag,
     +  e_Mmag_1
        if(ar__2(12:22) .EQ. '') JDJ = rNULL__
        if (idig(ar__2(24:28)).EQ.0) Jmag_1 =  rNULL__
        if (idig(ar__2(30:33)).EQ.0) e_Jmag_1 =  rNULL__
        if(ar__2(35:45) .EQ. '') JDH = rNULL__
        if (idig(ar__2(47:51)).EQ.0) Hmag_1 =  rNULL__
        if (idig(ar__2(53:56)).EQ.0) e_Hmag_1 =  rNULL__
        if(ar__2(58:68) .EQ. '') JDK = rNULL__
        if (idig(ar__2(70:74)).EQ.0) Kmag_1 =  rNULL__
        if (idig(ar__2(76:79)).EQ.0) e_Kmag_1 =  rNULL__
        if(ar__2(81:91) .EQ. '') JDL = rNULL__
        if (idig(ar__2(93:97)).EQ.0) Lmag_1 =  rNULL__
        if (idig(ar__2(99:102)).EQ.0) e_Lmag_1 =  rNULL__
        if(ar__2(104:114) .EQ. '') JDM = rNULL__
        if (idig(ar__2(116:120)).EQ.0) Mmag_1 =  rNULL__
        if (idig(ar__2(122:125)).EQ.0) e_Mmag_1 =  rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,JDJ,Jmag_1,e_Jmag_1,JDH,Hmag_1,e_Hmag_1,JDK,Kmag_1,
     +  e_Kmag_1,JDL,Lmag_1,u_Lmag_1,e_Lmag_1,JDM,Mmag_1,u_Mmag,
     +  e_Mmag_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! List of standards and their JHKLM magnitudes

C  Format for file interpretation

    4 format(I4,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,118
        read(1,'(A34)')ar__3
        read(ar__3,4)HR,Jmag_2,Hmag_2,Kmag_2,Lmag_2,Mmag_2
        if (idig(ar__3(12:16)).EQ.0) Hmag_2 =  rNULL__
        if (idig(ar__3(18:22)).EQ.0) Kmag_2 =  rNULL__
        if (idig(ar__3(24:28)).EQ.0) Lmag_2 =  rNULL__
        if (idig(ar__3(30:34)).EQ.0) Mmag_2 =  rNULL__
c    ..............Just test output...........
        write(6,4)HR,Jmag_2,Hmag_2,Kmag_2,Lmag_2,Mmag_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end