FORTRAN Generation
(/./ftp/cats/J/AZh/78/408)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/78/408 into FORTRAN code for loading all data files into arrays.

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-18
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/78/408    Variability of Cyg X-1 in 1994-1998          (Karitskaya+, 2001)
*================================================================================
*Coordinated observations of Cyg X-1 (V1357) from 1994-1998 in the
*Commonwealth of Independent States.
*    Karitskaya E.A., Voloshina I.B., Goransky V.P., Grankin K.N.,
*    Dzhaniashvili I.B, Ezhkova O.V., Kochiashvili N.T., Kumsiashvili M.I.,
*    Kusakin A.V., Lyutyi V.M., Mel'Nikov S.Yu., Metlova N.V.
*   <Astron. Zh. 78, 408 (2001)>
*   =2001AZh....78..408K
*   =2001ARep...45..350K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table.dat'	! Photoelectric observations of Cyg X-1

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

      real*8        HJD        (nr__) ! (d) [2449559/2451178] Julian date
      real*4        Umag       (nr__) ! (mag) ? U magnitude
      real*4        e_Umag     (nr__) ! (mag) ? Uncertainty in U magnitude
      real*4        Bmag       (nr__) ! (mag) ? B magnitude
      real*4        e_Bmag     (nr__) ! (mag) ? Uncertainty in B magnitude
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        e_Vmag     (nr__) ! (mag) Uncertainty in V magnitude
      real*4        Rmag       (nr__) ! (mag) ? R magnitude
      real*4        e_Rmag     (nr__) ! (mag) ? Uncertainty in R magnitude
      integer*4     Nnight     (nr__) ! Number of each night observations
      character*2   Rem        (nr__) ! Observer code (1)
*Note (1):
*  ja: E.B. Dzhaniashvili (Abastumani, Georgia)
*  lu: V.M. Lyuty and N.V. Metlova (SAI, Crimean Station, Ukraine)
*  mz: M.I. Kumsiashvili and N. Kochiachvili (Abastumani, Georgia)
*  sh: V.P. Goranskij, E.A. Karitskaya, A.V. Kusakin (SAI, Moscow
*       Russia; Institute of Astronomy (RAS), Zvenigorod, Russia; SAI,
*       Crimean Station; Crimean astrophysical observatory, Ukraine)
*  ts: V.P. Goranskij, E.A. Karitskaya (Tien-Shan observatory, Kazakhstan)
*  uz: K.N. Grankin, O.V. Ezhkova, S.Yu. Melnikov (Majdanak observatory,
*       Uzbekistan)
*  vo: I.B. Voloshina (SAI, Crimean Station, Ukraine)

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

C  Loading file 'table.dat'	! Photoelectric observations of Cyg X-1

C  Format for file interpretation

    1 format(
     +  F12.4,2X,F5.3,2X,F5.3,2X,F5.3,2X,F5.3,2X,F5.3,2X,F5.3,2X,F5.3,
     +  2X,F5.3,2X,I2,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table.dat')
      write(6,*) '....Loading file: table.dat'
      do i__=1,510
        read(1,'(A75)')ar__
        read(ar__,1)
     +  HJD(i__),Umag(i__),e_Umag(i__),Bmag(i__),e_Bmag(i__),
     +  Vmag(i__),e_Vmag(i__),Rmag(i__),e_Rmag(i__),Nnight(i__),
     +  Rem(i__)
        if(ar__(15:19) .EQ. '') Umag(i__) = rNULL__
        if(ar__(22:26) .EQ. '') e_Umag(i__) = rNULL__
        if(ar__(29:33) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(36:40) .EQ. '') e_Bmag(i__) = rNULL__
        if(ar__(57:61) .EQ. '') Rmag(i__) = rNULL__
        if(ar__(64:68) .EQ. '') e_Rmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HJD(i__),Umag(i__),e_Umag(i__),Bmag(i__),e_Bmag(i__),
     +  Vmag(i__),e_Vmag(i__),Rmag(i__),e_Rmag(i__),Nnight(i__),
     +  Rem(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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