FORTRAN Generation
(/./ftp/cats/J/A_A/429/1125)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/429/1125 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 2024-Apr-20
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/A+A/429/1125   Catalog of Ultraluminous X-ray sources         (Liu+, 2005)
*================================================================================
*A catalogue of ultraluminous X-ray sources in external galaxies.
*    Liu Q.Z., Mirabel I.R.
*   <Astron. Astrophys. 429, 1125 (2005)>
*   =2005A&A...429.1125L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1a.dat'	! Host galaxies

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

      character*15  Galaxy     (nr__) ! Host galaxy
      character*8   OName      (nr__) ! Other name
      character*18  MType      (nr__) ! Hubble-type, from RC3 (Cat. <VII/155>)
      real*4        TType      (nr__) ! T-type, from RC3 (Cat. <VII/155>)
      real*4        TType2     (nr__) ! ? T type of the second galaxy when pair
      real*4        Dist       (nr__) ! (Mpc) Distance
      real*4        NH         (nr__) ! (10+20cm-2) ? Galactic hydrogen column density,
*                                     from Dickey & Lockman (1990ARA&A..28..215D)
      integer*4     NH2        (nr__) ! (10+20cm-2) ? Higher Galactic hydrogen column density
*                                     when interval
      real*4        Bmag       (nr__) ! (mag) ? B-band photographic magnitude, from RC3
      real*4        Bmag2      (nr__) ! (mag) ? B magnitude of the second galaxy when pair
      real*4        Ksmag      (nr__) ! (mag) ? Ks magnitude (1)
      real*4        Ksmag2     (nr__) ! (mag) ? Ksmag value of the second galaxy when pair
      real*4        FIRmag     (nr__) ! (mag) ? Far infrared magnitude (2)
*Note (1): The near-infrared K_s_-band magnitude is calculated from the
*    20mag/arcsec^2^ isophotal magnitude listed in the 2MASS Large Galaxy
*    Atlas (Jarrett et al., 2003AJ....125..525J)
*Note (2): The far-infrared magnitude is calculated from
*        FIRmag=-20.0 -2.5logFIR,
*    where FIR is the far infrared continuum flux measured at 60 and
*    100microns as listed in the IRAS Point Source Catalog (1987, Cat.
*    <II/125>).

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

C  Declarations for 'table1b.dat'	! Ultraluminous X-ray sources

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

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

      character*15  Galaxy_1   (nr__1) ! Host galaxy name
      character*5   ULX        (nr__1) ! Source Name
      character*13  OName_1    (nr__1) ! Other name of the ULX source
      integer*4     RAh        (nr__1) ! (h) Right ascension (J2000.0)
      integer*4     RAm        (nr__1) ! (min) Right ascension (J2000.0)
      real*4        RAs        (nr__1) ! (s) Right ascension (J2000.0)
      character*1   DE_        (nr__1) ! Declination sign (J2000.0)
      integer*4     DEd        (nr__1) ! (deg) Declination (J2000.0)
      integer*4     DEm        (nr__1) ! (arcmin) Declination (J2000.0)
      real*4        DEs        (nr__1) ! (arcsec) Declination (J2000.0)
      real*4        LX         (nr__1) ! (10+32W) X-ray luminosity (in 10+39erg/s)
      real*4        E1         (nr__1) ! (keV) Lower limit of energy range
      real*4        E2         (nr__1) ! (keV) Upper limit of energy range
      real*4        Offset     (nr__1) ! (arcsec) ? Nuclear offset (1)
      character*6   Best_fit   (nr__1) ! Best fit model of recent X-ray observation
*                                   of ULXs (2)
      real*4        Gamma1     (nr__1) ! ? Spectral index listed for a power-law fit
*                                     inner temperature in keV for a thermal
*                                     model fit
      real*4        Gamma2     (nr__1) ! ? Results for the two-component best fit (3)
*Note (1): Radius from nucleus, assuming that the galaxy center is at
*    the RC3 (Cat. <VII/155>) optical position. Only strong X-ray sources
*    with enough counts have X-ray spectral fits.
*Note (2): The following abbreviations have been used for the fit model:
*    PL: power-law model
*    BB: blackbody
*   MCD: multicolor disk (Mitsuda et al., 1984PASJ...36..741M)
*   MKL: MEKAL
*    BR: bremsstrahlung
*    RS: Raymond-Smith thermal model (Raymond & Smith 1977ApJS...35..419R)
*Note (3): If a two-component fit is needed, we use the symbol '+'
*    between the two fit models and fit results for the two-component best fit.

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

C  Declarations for 'notes.dat'	! Notes

      integer*4 nr__2
      parameter (nr__2=740)	! Number of records
      character*80 ar__2  	! Full-size record

      character*15  Galaxy_2   (nr__2) ! Galaxy name
      character*65  Note       (nr__2) ! Text of the note

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

C  Loading file 'table1a.dat'	! Host galaxies

C  Format for file interpretation

    1 format(
     +  A15,1X,A8,2X,A18,1X,F5.1,1X,F5.1,1X,F6.3,1X,F5.2,1X,I2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F3.1,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1a.dat')
      write(6,*) '....Loading file: table1a.dat'
      do i__=1,85
        read(1,'(A99)')ar__
        read(ar__,1)
     +  Galaxy(i__),OName(i__),MType(i__),TType(i__),TType2(i__),
     +  Dist(i__),NH(i__),NH2(i__),Bmag(i__),Bmag2(i__),Ksmag(i__),
     +  Ksmag2(i__),FIRmag(i__)
        if(ar__(52:56) .EQ. '') TType2(i__) = rNULL__
        if(ar__(65:69) .EQ. '') NH(i__) = rNULL__
        if(ar__(71:72) .EQ. '') NH2(i__) = iNULL__
        if(ar__(74:78) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(80:84) .EQ. '') Bmag2(i__) = rNULL__
        if(ar__(86:90) .EQ. '') Ksmag(i__) = rNULL__
        if(ar__(92:94) .EQ. '') Ksmag2(i__) = rNULL__
        if(ar__(95:99) .EQ. '') FIRmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Galaxy(i__),OName(i__),MType(i__),TType(i__),TType2(i__),
     +  Dist(i__),NH(i__),NH2(i__),Bmag(i__),Bmag2(i__),Ksmag(i__),
     +  Ksmag2(i__),FIRmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table1b.dat'	! Ultraluminous X-ray sources

C  Format for file interpretation

    2 format(
     +  A15,1X,A5,1X,A13,2X,I2,1X,I2,1X,F6.3,2X,A1,I2,1X,I2,1X,F5.2,
     +  1X,F5.2,2X,F3.1,1X,F4.1,1X,F6.2,1X,A6,1X,F5.3,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1b.dat')
      write(6,*) '....Loading file: table1b.dat'
      do i__=1,229
        read(1,'(A104)')ar__1
        read(ar__1,2)
     +  Galaxy_1(i__),ULX(i__),OName_1(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),LX(i__),E1(i__),
     +  E2(i__),Offset(i__),Best_fit(i__),Gamma1(i__),Gamma2(i__)
        if(ar__1(81:86) .EQ. '') Offset(i__) = rNULL__
        if(ar__1(95:99) .EQ. '') Gamma1(i__) = rNULL__
        if(ar__1(101:104) .EQ. '') Gamma2(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,2)
     +  Galaxy_1(i__),ULX(i__),OName_1(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),LX(i__),E1(i__),
     +  E2(i__),Offset(i__),Best_fit(i__),Gamma1(i__),Gamma2(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Notes

C  Format for file interpretation

    3 format(A15,A65)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,740
        read(1,'(A80)')ar__2
        read(ar__2,3)Galaxy_2(i__),Note(i__)
c    ..............Just test output...........
        write(6,3)Galaxy_2(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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