FORTRAN Generation
(/./ftp/cats/J/MNRAS/443/2634)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/443/2634 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 2026-Oct-12
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/443/2634    AGES HI sources in NGC 7448 field       (Taylor+, 2014)
*================================================================================
*The Arecibo Galaxy Environment Survey.
*VII. A dense filament with extremely long HI streams.
*    Taylor R., Minchin R.F., Herbst H., Davies J.I., Rodriguez R., Vazquez C.
*   <Mon. Not. R. Astron. Soc., 443, 2634-2649 (2014)>
*   =2014MNRAS.443.2634T
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! AGES HI data for the NGC 7448 field

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

C  J2000 position composed of: RAdeg DEdeg
      character*14  Jname       ! Source designation, JHHMMSS+DDMMSS
      character*10  Name        ! Our catalogue ID,
*                                    AF7448_NNN or AK7448_NNN (G1)
      character*2   n_Name      ! [* X] Problematic or extended source (G1)
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      real*8        RAdeg       ! (deg) Right ascension (J2000)
      real*4        e_RAs       ! (s) Error in RA
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      integer*4     DEs         ! (arcsec) Declination (J2000)
      real*8        DEdeg       ! (deg) Declination (J2000)
      integer*4     e_DEs       ! (arcsec) Error in DE (J2000)
      integer*4     HV          ! (km/s) [363/19015] Heliocentric velocity,
*                                    optical reference frame
      integer*4     e_HV        ! (km/s) [0/17] Error in HV
      integer*4     W50         ! (km/s) [25/526] Width at 50% of the peak peak
      integer*4     e_W50       ! (km/s) [0/34] Error in W50
      integer*4     W20         ! (km/s) [37/594] Width at 20% of the peak
      integer*4     e_W20       ! (km/s) [0/50] Error in W20
      real*4        Fp          ! (Jy) [2/121] Peak flux
      real*4        e_Fp        ! (Jy) [0.4/6.1] Error on Fp
      real*4        Ft          ! (Jy.km/s) [0.1/24] Total flux, assuming a point source
      real*4        e_Ft        ! (Jy.km/s) [0.03/1.1] Error in Ft
      real*4        MHI         ! ([Msun]) [6.5/10.6] Estimated MHI (log scale),
*                                   assuming d=v/H_0_ with H_0_=71km/s/Mpc
      real*4        S_Np        ! [3.6/242] Peak S/N
      real*4        S_Nt        ! [1.4/131] Total S/N
      real*4        rms         ! (mJy) [0.4/5.9] rms noise
      character*4   Opt         ! Status of optical counterpart (2)
      integer*4     Vopt        ! (km/s) ? Optical velocity measurement from NED or
*                                     the SDSS (3)
      character*13  OptName     ! Name of the optical counterpart in major
*                                    catalogue
*Note (2): status as follows:
*  0 = the counterpart has a matching optical redshift
*  1 = no optical redshift measurement is available
*  A = other candidates are also present with matching optical redshift
*  B = other candidates do not have optical redshift measurements
*  3 = the optical counterpart cannot be accurately determined/measured due to
*      the presence of a foreground star or problems with the optical data
*Note (3): Where multiple measurements are available, an average value is given

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

C  Declarations for 'table2.dat'	! Optical data of AGES HI detections in the
                               NGC 7448 field

      integer*4 nr__1
      parameter (nr__1=209)	! Number of records
      character*85 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*10  Name_1      ! ID in our catalogue (G1)
      character*1   n_Name_1    ! [*] Problematic source (G1)
      integer*4     RAh_1       ! (h) SDSS optical counterpart Right ascension (J2000)
      integer*4     RAm_1       ! (min) SDSS optical counterpart Right ascension (J2000)
      real*4        RAs_1       ! (s) SDSS optical counterpart Right ascension (J2000)
      character*1   DE__1       ! SDSS optical counterpart Declination sign (J2000)
      integer*4     DEd_1       ! (deg) SDSS optical counterpart Declination (J2000)
      integer*4     DEm_1       ! (arcmin) SDSS optical counterpart Declination (J2000)
      real*4        DEs_1       ! (arcsec) SDSS optical counterpart Declination (J2000)
      character*1   Mt          ! [SIEMPU] Morphological type (1)
      real*4        Sep         ! (arcmin) [0/2.6] Separation of HI center and
*                                       optical counterpart
      real*4        gmag        ! (mag) Apparent g magnitude, corrected for extinction
      real*4        imag        ! (mag) Apparent i magnitude, corrected for extinction
      real*4        gMAG_1      ! (mag) Absolute g magnitude, corrected for extinction
      real*4        iMAG_1      ! (mag) Absolute i magnitude, corrected for extinction
      real*4        g_i         ! (mag) g-i colour index corrected for extinction
      real*4        MHI_Lg      ! (Sun) [0.03/4.2] HI mass-to-light ratio (g band)
      real*4        Dopt        ! (kpc) [0.9/90] Optical diameter in kpc
*Note (1): Morphological type as follows:
*   S = Spiral galaxy
*   I = Irregular galaxy
*   E = Elliptical galaxy
*   M = merger
*   P = peculiar galaxy
*   U = unknown

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

C  Loading file 'table1.dat'	! AGES HI data for the NGC 7448 field

C  Format for file interpretation

    1 format(
     +  A14,1X,A10,A2,1X,I2,1X,I2,1X,F4.1,1X,F10.6,3X,F3.1,A1,I2,1X,
     +  I2,1X,I2,1X,F9.6,1X,I2,1X,I5,1X,I2,1X,I3,1X,I2,1X,I3,1X,I2,1X,
     +  F5.1,1X,F3.1,1X,F6.3,1X,F5.3,2X,F5.2,F6.2,1X,F6.2,1X,F3.1,1X,
     +  A4,1X,I6,1X,A13)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,334
        read(1,'(A173)')ar__
        read(ar__,1)
     +  Jname,Name,n_Name,RAh,RAm,RAs,RAdeg,e_RAs,DE_,DEd,DEm,DEs,
     +  DEdeg,e_DEs,HV,e_HV,W50,e_W50,W20,e_W20,Fp,e_Fp,Ft,e_Ft,MHI,
     +  S_Np,S_Nt,rms,Opt,Vopt,OptName
        if(ar__(154:159) .EQ. '') Vopt = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Jname,Name,n_Name,RAh,RAm,RAs,RAdeg,e_RAs,DE_,DEd,DEm,DEs,
     +  DEdeg,e_DEs,HV,e_HV,W50,e_W50,W20,e_W20,Fp,e_Fp,Ft,e_Ft,MHI,
     +  S_Np,S_Nt,rms,Opt,Vopt,OptName
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Optical data of AGES HI detections in the
*                               NGC 7448 field

C  Format for file interpretation

    2 format(
     +  A10,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A1,1X,
     +  F4.2,1X,F5.2,1X,F5.2,1X,F6.2,1X,F6.2,1X,F5.2,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,209
        read(1,'(A85)')ar__1
        read(ar__1,2)
     +  Name_1,n_Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Mt,
     +  Sep,gmag,imag,gMAG_1,iMAG_1,g_i,MHI_Lg,Dopt
        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)
     +  Name_1,n_Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Mt,
     +  Sep,gmag,imag,gMAG_1,iMAG_1,g_i,MHI_Lg,Dopt
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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