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 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 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      (nr__) ! Source designation, JHHMMSS+DDMMSS
      character*10  Name       (nr__) ! Our catalogue ID,
*                                    AF7448_NNN or AK7448_NNN (G1)
      character*2   n_Name     (nr__) ! [* X] Problematic or extended source (G1)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000)
      real*4        e_RAs      (nr__) ! (s) Error in RA
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      integer*4     e_DEs      (nr__) ! (arcsec) Error in DE (J2000)
      integer*4     HV         (nr__) ! (km/s) [363/19015] Heliocentric velocity,
*                                    optical reference frame
      integer*4     e_HV       (nr__) ! (km/s) [0/17] Error in HV
      integer*4     W50        (nr__) ! (km/s) [25/526] Width at 50% of the peak peak
      integer*4     e_W50      (nr__) ! (km/s) [0/34] Error in W50
      integer*4     W20        (nr__) ! (km/s) [37/594] Width at 20% of the peak
      integer*4     e_W20      (nr__) ! (km/s) [0/50] Error in W20
      real*4        Fp         (nr__) ! (Jy) [2/121] Peak flux
      real*4        e_Fp       (nr__) ! (Jy) [0.4/6.1] Error on Fp
      real*4        Ft         (nr__) ! (Jy.km/s) [0.1/24] Total flux, assuming a point source
      real*4        e_Ft       (nr__) ! (Jy.km/s) [0.03/1.1] Error in Ft
      real*4        MHI        (nr__) ! ([Msun]) [6.5/10.6] Estimated MHI (log scale),
*                                   assuming d=v/H_0_ with H_0_=71km/s/Mpc
      real*4        S_Np       (nr__) ! [3.6/242] Peak S/N
      real*4        S_Nt       (nr__) ! [1.4/131] Total S/N
      real*4        rms        (nr__) ! (mJy) [0.4/5.9] rms noise
      character*4   Opt        (nr__) ! Status of optical counterpart (2)
      integer*4     Vopt       (nr__) ! (km/s) ? Optical velocity measurement from NED or
*                                     the SDSS (3)
      character*13  OptName    (nr__) ! 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    (nr__1) ! (deg) Right Ascension J2000
      real*8        DEdeg_1    (nr__1) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*10  Name_1     (nr__1) ! ID in our catalogue (G1)
      character*1   n_Name_1   (nr__1) ! [*] Problematic source (G1)
      integer*4     RAh_1      (nr__1) ! (h) SDSS optical counterpart Right ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) SDSS optical counterpart Right ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) SDSS optical counterpart Right ascension (J2000)
      character*1   DE__1      (nr__1) ! SDSS optical counterpart Declination sign (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) SDSS optical counterpart Declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) SDSS optical counterpart Declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) SDSS optical counterpart Declination (J2000)
      character*1   Mt         (nr__1) ! [SIEMPU] Morphological type (1)
      real*4        Sep        (nr__1) ! (arcmin) [0/2.6] Separation of HI center and
*                                       optical counterpart
      real*4        gmag       (nr__1) ! (mag) Apparent g magnitude, corrected for extinction
      real*4        imag       (nr__1) ! (mag) Apparent i magnitude, corrected for extinction
      real*4        gMAG_1     (nr__1) ! (mag) Absolute g magnitude, corrected for extinction
      real*4        iMAG_1     (nr__1) ! (mag) Absolute i magnitude, corrected for extinction
      real*4        g_i        (nr__1) ! (mag) g-i colour index corrected for extinction
      real*4        MHI_Lg     (nr__1) ! (Sun) [0.03/4.2] HI mass-to-light ratio (g band)
      real*4        Dopt       (nr__1) ! (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(i__),Name(i__),n_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  RAdeg(i__),e_RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
     +  DEdeg(i__),e_DEs(i__),HV(i__),e_HV(i__),W50(i__),e_W50(i__),
     +  W20(i__),e_W20(i__),Fp(i__),e_Fp(i__),Ft(i__),e_Ft(i__),
     +  MHI(i__),S_Np(i__),S_Nt(i__),rms(i__),Opt(i__),Vopt(i__),
     +  OptName(i__)
        if(ar__(154:159) .EQ. '') Vopt(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Jname(i__),Name(i__),n_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  RAdeg(i__),e_RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
     +  DEdeg(i__),e_DEs(i__),HV(i__),e_HV(i__),W50(i__),e_W50(i__),
     +  W20(i__),e_W20(i__),Fp(i__),e_Fp(i__),Ft(i__),e_Ft(i__),
     +  MHI(i__),S_Np(i__),S_Nt(i__),rms(i__),Opt(i__),Vopt(i__),
     +  OptName(i__)
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(i__),n_Name_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Mt(i__),Sep(i__),
     +  gmag(i__),imag(i__),gMAG_1(i__),iMAG_1(i__),g_i(i__),
     +  MHI_Lg(i__),Dopt(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),n_Name_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Mt(i__),Sep(i__),
     +  gmag(i__),imag(i__),gMAG_1(i__),iMAG_1(i__),g_i(i__),
     +  MHI_Lg(i__),Dopt(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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