FORTRAN Generation
(/./ftp/cats/J/MNRAS/474/5049)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/474/5049 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-29
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/MNRAS/474/5049     Low-frequency study of 3C 31 with LOFAR    (Heesen+, 2018)
*================================================================================
*LOFAR reveals the giant: a low-frequency radio continuum study of the outflow
*in the nearby FR I radio galaxy 3C 31.
*    Heesen V., Croston J.H., Morganti R., Hardcastle M.J., Stewart A.J.,
*    Best P.N., Broderick J.W., Brueggen M., Brunetti G., Chyzy K.T.,
*    Harwood J.J., Haverkorn M., Hess K.M., Intema H.T., Jamrozy M.,
*    Kunert-Bajraszewska M., McKean J.P., Orru E., Roettgering H.J.A.,
*    Shimwell T.W., Shulevski A., White G.J., Wilcots E.M., Williams W.L.
*    <Mon. Not. R. Astron. Soc. 474, 5049 (2018)>
*    =2018MNRAS.474.5049H        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'fluxdens.dat'	! 3C 31 flux densities

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     RAh         ! (h) [01] Right Ascension (J2000)
      integer*4     RAm         ! (min) [07] Right Ascension (J2000)
      real*4        RAs         ! (s) [24.959] Right Ascension (J2000)
      character*1   DE_         ! [+] Declination sign (J2000)
      integer*4     DEd         ! (deg) [32] Declination (J2000)
      integer*4     DEm         ! (arcmin) [24] Declination (J2000)
      real*4        DEs         ! (arcsec) [45.21] Declination (J2000)
      real*8        RAdeg       ! (deg) [16.8539946] Right Ascension (J2000)
      real*8        DEdeg       ! (deg) [32.4125594] Declination (J2000)
      character*4   ID          ! [3C31] Object identifier
      real*4        nu          ! (MHz) [33.9/608.5] Observing frequency
      real*4        Snu         ! (Jy) Integrated flux density
      real*4        e_Snu       ! (Jy) Error of the integrated flux density

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

C  Declarations for 'list.dat'	! List of fits images

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_1     ! (deg) Right Ascension of center (J2000)
      real*8        DEdeg_1     ! (deg) Declination of center (J2000)
      integer*4     Nx          ! Number of pixels along X-axis
      integer*4     Ny          ! Number of pixels along Y-axis
      character*26  Obs_date    ! Observation date (YYYY-MM-DDThh:mm:ss.ssssss)
      real*8        Freq        ! (MHz) Observed frequency
      integer*4     size        ! (Kibyte) Size of FITS file
      character*33  FileName    ! Name of FITS file, in subdirectory fits
      character*37  Title       ! Title of the FITS file

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

C  Loading file 'fluxdens.dat'	! 3C 31 flux densities

C  Format for file interpretation

    1 format(
     +  I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F10.7,1X,F10.7,1X,
     +  A4,1X,F5.1,1X,F4.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fluxdens.dat')
      write(6,*) '....Loading file: fluxdens.dat'
      do i__=1,36
        read(1,'(A67)')ar__
        read(ar__,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,DEs,RAdeg,DEdeg,ID,nu,Snu,e_Snu
c    ..............Just test output...........
        write(6,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,DEs,RAdeg,DEdeg,ID,nu,Snu,e_Snu
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'list.dat'	! List of fits images

C  Format for file interpretation

    2 format(F9.5,F9.5,1X,I4,1X,I4,1X,A26,1X,F8.4,1X,I5,1X,A33,1X,A37)

C  Effective file loading

      open(unit=1,status='old',file=
     +'list.dat')
      write(6,*) '....Loading file: list.dat'
      do i__=1,8
        read(1,'(A142)')ar__1
        read(ar__1,2)
     +  RAdeg_1,DEdeg_1,Nx,Ny,Obs_date,Freq,size,FileName,Title
c    ..............Just test output...........
        write(6,2)
     +  RAdeg_1,DEdeg_1,Nx,Ny,Obs_date,Freq,size,FileName,Title
c    .......End.of.Just test output...........
      end do
      close(1)

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