FORTRAN Generation
(/./ftp/cats/J/MNRAS/457/2366)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/457/2366 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-16
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/457/2366    Southern ZOA galaxies 21cm HI-line             (Said+, 2016)
*================================================================================
*NIR Tully-Fisher in the Zone of Avoidance.
*II. 21 cm H I-line spectra of southern ZOA galaxies.
*    Said K., Kraan-Korteweg R.C., Staveley-Smith L., Williams W.L.,
*    Jarrett T.H., Springob C.M.
*   <Mon. Not. R. Astron. Soc., 457, 2366-2376 (2016)>
*   =2016MNRAS.457.2366S    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! HI derived parameters for the good HIZOA
                                 profiles (velocity resolution of 27km/s)

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

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

      character*9   HIZOA       ! HIZOA designation (JHHMM-DDA) (1)
      integer*4     RAh         ! (h) Right ascension (J2000) of the fitted
*                                    position in HIZOA
      integer*4     RAm         ! (min) Right ascension (J2000) of the fitted
*                                    position in HIZOA
      real*4        RAs         ! (s) Right ascension (J2000) of the fitted
*                                    position in HIZOA
      character*1   DE_         ! Declination sign (J2000) of the fitted
*                                    position in HIZOA
      integer*4     DEd         ! (deg) Declination (J2000) of the fitted
*                                    position in HIZOA
      integer*4     DEm         ! (arcmin) Declination (J2000) of the fitted
*                                    position in HIZOA
      real*4        DEs         ! (arcsec) Declination (J2000) of the fitted
*                                    position in HIZOA
      real*8        GLON        ! (deg) Galactic longitude
      real*8        GLAT        ! (deg) Galactic latitude
      real*4        IFHI        ! (Jy.km/s) Integrated HI flux
      real*4        e_IFHI      ! (Jy.km/s) rms uncertainty on IFHI
      real*8        HV          ! (km/s) Heliocentric velocity measured as the
*                                    mid-point of the 50 per cent of the profile
*                                    using the WF50 algorithm
      real*4        e_HV        ! (km/s) rms uncertainty on HV
      real*8        WP20        ! Linewidth at 20 per cent of the peak flux-rms
      real*4        e_WP20      ! rms uncertainty on WP20
      real*4        WM50        ! Linewidth at 50 per cent of the mean flux
      real*4        e_WM50      ! rms uncertainty on WM50
      real*4        WP50        ! Linewidth at 50 per cent of the peak flux-rms
      real*4        e_WP50      ! rms uncertainty on WP50
      real*4        WF50        ! Linewidth at 50 per cent of the peak flux-rms
*                                    measured with a polynomial fit to both sides
*                                    of the profile
      real*4        e_WF50      ! rms uncertainty on WF50
      real*4        W2P50       ! Linewidth at 50 per cent of the peak flux-rms
*                                    measured at each of the two peaks
      real*4        e_W2P50     ! rms uncertainty on W2P50
      real*4        rms         ! (mJy) rms noise
      real*4        SNR         ! S/N ratio
*Note (1): HIZOA ID as reported in the HIZOA survey publications
*  (Donley et al. 2005, Cat. J/AJ/129/220; Staveley-Smith et al. 2016,
*  Cat. J/AJ/151/52; Kraan-Korteweg et al., in preparation).

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

C  Declarations for 'table3.dat'	! HI derived parameters for the narrow-band
                                 profiles (velocity resolution of 3.3km/s)

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

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

      character*9   HIZOA_1     ! HIZOA designation (JHHMM-DDA) (1)
      integer*4     RAh_1       ! (h) Right ascension (J2000) of the fitted
*                                    position in HIZOA
      integer*4     RAm_1       ! (min) Right ascension (J2000) of the fitted
*                                    position in HIZOA
      real*4        RAs_1       ! (s) Right ascension (J2000) of the fitted
*                                    position in HIZOA
      character*1   DE__1       ! Declination sign (J2000) of the fitted
*                                    position in HIZOA
      integer*4     DEd_1       ! (deg) Declination (J2000) of the fitted
*                                    position in HIZOA
      integer*4     DEm_1       ! (arcmin) Declination (J2000) of the fitted
*                                    position in HIZOA
      real*4        DEs_1       ! (arcsec) Declination (J2000) of the fitted
*                                    position in HIZOA
      real*8        GLON_1      ! (deg) Galactic longitude
      real*8        GLAT_1      ! (deg) Galactic latitude
      real*4        IFHI_1      ! (Jy.km/s) Integrated HI flux
      real*4        e_IFHI_1    ! (Jy.km/s) rms uncertainty on IFHI
      real*8        HV_1        ! (km/s) Heliocentric velocity measured as the
*                                    mid-point of the 50 per cent of the profile
*                                    using the WF50 algorithm
      real*4        e_HV_1      ! (km/s) rms uncertainty on HV
      real*8        WP20_1      ! Linewidth at 20 per cent of the peak flux-rms
      real*4        e_WP20_1    ! rms uncertainty on WP20
      real*4        WM50_1      ! Linewidth at 50 per cent of the mean flux
      real*4        e_WM50_1    ! rms uncertainty on WM50
      real*4        WP50_1      ! Linewidth at 50 per cent of the peak flux-rms
      real*4        e_WP50_1    ! rms uncertainty on WP50
      real*4        WF50_1      ! Linewidth at 50 per cent of the peak flux-rms
*                                    measured with a polynomial fit to both sides
*                                    of the profile
      real*4        e_WF50_1    ! rms uncertainty on WF50
      real*4        W2P50_1     ! Linewidth at 50 per cent of the peak flux-rms
*                                    measured at each of the two peaks
      real*4        e_W2P50_1   ! rms uncertainty on W2P50
      real*4        rms_1       ! (mJy) rms noise
      real*4        SNR_1       ! S/N ratio
*Note (1): HIZOA ID as reported in the HIZOA survey publications
*  (Donley et al. 2005, Cat. J/AJ/129/220; Staveley-Smith et al. 2016,
*  Cat. J/AJ/151/52; Kraan-Korteweg et al., in preparation).

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

C  Loading file 'table2.dat'	! HI derived parameters for the good HIZOA
*                                 profiles (velocity resolution of 27km/s)

C  Format for file interpretation

    1 format(
     +  A9,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F8.4,1X,F8.4,
     +  1X,F5.1,1X,F3.1,1X,F8.2,1X,F5.2,1X,F7.3,1X,F6.2,1X,F6.2,1X,
     +  F5.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F5.2,1X,F6.2,1X,F5.2,1X,F4.1,
     +  1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,103
        read(1,'(A156)')ar__
        read(ar__,1)
     +  HIZOA,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,IFHI,e_IFHI,HV,
     +  e_HV,WP20,e_WP20,WM50,e_WM50,WP50,e_WP50,WF50,e_WF50,W2P50,
     +  e_W2P50,rms,SNR
        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)
     +  HIZOA,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,IFHI,e_IFHI,HV,
     +  e_HV,WP20,e_WP20,WM50,e_WM50,WP50,e_WP50,WF50,e_WF50,W2P50,
     +  e_W2P50,rms,SNR
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! HI derived parameters for the narrow-band
*                                 profiles (velocity resolution of 3.3km/s)

C  Format for file interpretation

    2 format(
     +  A9,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F8.4,1X,F8.4,
     +  1X,F5.1,1X,F3.1,1X,F8.2,1X,F5.2,1X,F7.3,1X,F6.2,1X,F6.2,1X,
     +  F5.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F5.2,1X,F6.2,1X,F5.2,1X,F4.1,
     +  1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,237
        read(1,'(A156)')ar__1
        read(ar__1,2)
     +  HIZOA_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,GLON_1,
     +  GLAT_1,IFHI_1,e_IFHI_1,HV_1,e_HV_1,WP20_1,e_WP20_1,WM50_1,
     +  e_WM50_1,WP50_1,e_WP50_1,WF50_1,e_WF50_1,W2P50_1,e_W2P50_1,
     +  rms_1,SNR_1
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  HIZOA_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,GLON_1,
     +  GLAT_1,IFHI_1,e_IFHI_1,HV_1,e_HV_1,WP20_1,e_WP20_1,WM50_1,
     +  e_WM50_1,WP50_1,e_WP50_1,WF50_1,e_WF50_1,W2P50_1,e_W2P50_1,
     +  rms_1,SNR_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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