FORTRAN Generation
(/./ftp/cats/J/AZh/72/613)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/72/613 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-19
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/72/613    Optical identification of radio sources   (Kopylov+, 1995)
*================================================================================
*Optical identification of a subsample of steep spectrum radio sources
*from the RC Catalog using the 6-m SAO telescope: optical observations
*       Kopylov A.I., Goss V.M., Parijskij Yu.N., Soboleva N.S., Zhelenkova O.P.,
*       Tempirova A.V., Vitkovskii V.V., Naugolnaya M.N., Verkhodanov O. V.
*      <Astron. Zh. 72, 613 (1995)>
*      =1995AZh....72..613K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Results of the optical identification of the
                                 radio sources

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

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

      integer*4     No          ! Running number
      character*9   Name        ! Name of radio source
      integer*4     Id          ! ? Number of the optical candidate
      integer*4     RAh         ! (h) ? Optical candidate right ascension (1950)
      integer*4     RAm         ! (min) ? Optical candidate right ascension (1950)
      real*4        RAs         ! (s) ? Optical candidate right ascension (1950)
      character*1   DE_         ! ? Declination sign
      integer*4     DEd         ! (deg) ? Optical candidate declination (1950)
      integer*4     DEm         ! (arcmin) ? Optical candidate declination (1950)
      real*4        DEs         ! (arcsec) ? Optical candidate declination (1950)
      character*1   l_Rmag      ! ? Limit symbol on stellar magnitude
      real*4        Rmag        ! (mag) Stellar magnitude in the R filter
      integer*4     Ap          ! (pix) ? Aperture diameter for integrated stellar
*                                      magnitude (1 pixel = 205 mas)
      character*7   Obs         ! ("MM/YY") ? Epoch of observations
      integer*4     Exp         ! (s) ? Total exposure time
      real*4        FWHM        ! (arcsec) ? Quality of image (FWHM) for the best image
      real*4        dRA         ! (arcsec) ? Difference in coordinates of the optical
*                                      candidates and the center of gravity of
*                                      the radio in RA
      real*4        dDec        ! (arcsec) ? Difference in coordinates of the optical
*                                      candidates and the center of gravity of
*                                      the radio in Dec
      real*4        Abs         ! (mag) ? Correction to observed stellar magnitude
*                                      for absorption in the Galaxy
      character*1   l_Rcmag     ! ? Limit symbol on stellar magnitude
*                                      corrected for absorption
      real*4        Rcmag       ! (mag) Stellar magnitude corrected for absorption
      real*4        mlim        ! (mag) Revised stellar magnitude limit
*                                    (determined from the condition of equality
*                                    of the optical and radio luminosities )
      character*1   l_dmag      ! ? Limit symbol on dmag
      real*4        dmag        ! (mag) Difference between the limit and observed
*                                    stellar magnitude.

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

C  Declarations for 'notes.dat'	! Individual notes

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

      integer*4     No_1        ! Running number
      character*9   Name_1      ! Name of radio source
      character*76  Note        ! Text of the note

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

C  Loading file 'table2.dat'	! Results of the optical identification of the
*                                 radio sources

C  Format for file interpretation

    1 format(
     +  I2,2X,A9,2X,I1,2X,I2,1X,I2,1X,F6.3,2X,A1,I2,1X,I2,1X,F5.2,1X,
     +  A1,F4.1,2X,I2,2X,A7,2X,I4,2X,F3.1,2X,F6.2,2X,F6.2,2X,F4.2,2X,
     +  A1,F5.2,3X,F5.2,2X,A1,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,51
        read(1,'(A120)')ar__
        read(ar__,1)
     +  No,Name,Id,RAh,RAm,RAs,DE_,DEd,DEm,DEs,l_Rmag,Rmag,Ap,Obs,Exp,
     +  FWHM,dRA,dDec,Abs,l_Rcmag,Rcmag,mlim,l_dmag,dmag
        if(ar__(16:16) .EQ. '') Id = iNULL__
        if(ar__(19:20) .EQ. '') RAh = iNULL__
        if(ar__(22:23) .EQ. '') RAm = iNULL__
        if(ar__(25:30) .EQ. '') RAs = rNULL__
        if(ar__(34:35) .EQ. '') DEd = iNULL__
        if(ar__(37:38) .EQ. '') DEm = iNULL__
        if(ar__(40:44) .EQ. '') DEs = rNULL__
        if(ar__(53:54) .EQ. '') Ap = iNULL__
        if(ar__(66:69) .EQ. '') Exp = iNULL__
        if(ar__(72:74) .EQ. '') FWHM = rNULL__
        if(ar__(77:82) .EQ. '') dRA = rNULL__
        if(ar__(85:90) .EQ. '') dDec = rNULL__
        if(ar__(93:96) .EQ. '') Abs = 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)
     +  No,Name,Id,RAh,RAm,RAs,DE_,DEd,DEm,DEs,l_Rmag,Rmag,Ap,Obs,Exp,
     +  FWHM,dRA,dDec,Abs,l_Rcmag,Rcmag,mlim,l_dmag,dmag
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    2 format(I2,1X,A9,1X,A76)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,90
        read(1,'(A89)')ar__1
        read(ar__1,2)No_1,Name_1,Note
c    ..............Just test output...........
        write(6,2)No_1,Name_1,Note
c    .......End.of.Just test output...........
      end do
      close(1)

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