FORTRAN Generation
(/./ftp/cats/J/ApJ/786/130)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/786/130 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-19
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/ApJ/786/130            Catalog of M31 SNR candidates              (Lee+, 2014)
*================================================================================
*A new optical survey of supernova remnant candidates in M31.
*    Lee J.H., Lee M.G.
*   <Astrophys. J., 786, 130 (2014)>
*   =2014ApJ...786..130L    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! A Catalog of Previous M31 SNR Candidates
                                Rejected in This Study

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

C  J2000 position composed of: RAdeg DEdeg
      character*9   Name       (nr__) ! Source identifier (G1)
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000) (G2)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000) (G2)
      real*4        logLHa     (nr__) ! ([10-7W]) Log of H{alpha} luminosity; erg/s (G3)
      real*4        logLSII    (nr__) ! ([10-7W]) Log of [S II] luminosity; erg/s (G3)
      real*4        Dia        (nr__) ! (pc) Diameter calculated using 1"=3.63 pc
      real*4        Ratio      (nr__) ! Ratio of [S II] to H{alpha}
      character*2   Class      (nr__) ! Classification (1)
*Note (1): Classification as follows:
*   H = H II regions with [S II]:H{alpha}<0.4;
*  HO = H II regions with 0.4<[S II]:H{alpha}<0.6 and blue stars inside;
*   S = Superbubbles (Larger than D=100 pc and a number of blue stars inside);
*   D = Diffuse ionized gas ([S II]:H{alpha}>0.8, but very low surface
*       brightnesses).

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

C  Declarations for 'table3.dat'	! A Catalog of M31 SNR Candidates

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     ID         (nr__1) ! [1/156] Index number
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension in decimal degrees (J2000) (G2)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000) (G2)
      real*4        logLHa_1   (nr__1) ! ([10-7W]) Log of H{alpha} luminosity; erg/s (G3)
      real*4        logLSII_1  (nr__1) ! ([10-7W]) Log of [S II] luminosity; erg/s (G3)
      real*4        Dia_1      (nr__1) ! (pc) Diameter calculated using 1"=3.63 pc (1)
      real*4        Ratio_1    (nr__1) ! Ratio of [S II] to H{alpha}
      character*2   Morph      (nr__1) ! Morphology type; see text
      integer*4     N_OB       (nr__1) ! Number of OB stars (2)
      integer*4     N_HII      (nr__1) ! Number of H II regions (3)
      character*2   PType      (nr__1) ! Progenitor type (4)
      character*12  Com        (nr__1) ! Comments (G1)
*Note (1): For d=750 kpc.
*Note (2): Located between the boundary of each SNR candidate and 100 pc
*          from the center of each SNR.
*Note (3): With L>10^36^ erg/s located between the boundary of each SNR
*          candidate and 100 pc from the center of each SNR.
*Note (4): Progenitor type as follows:
*  CC = Core collapse;
*  Ia = Type Ia.

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

C  Loading file 'table1.dat'	! A Catalog of Previous M31 SNR Candidates
*                                Rejected in This Study

C  Format for file interpretation

    1 format(
     +  A9,1X,F10.7,1X,F9.6,1X,F5.2,1X,F5.2,1X,F5.1,1X,F4.2,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,154
        read(1,'(A56)')ar__
        read(ar__,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),logLHa(i__),logLSII(i__),
     +  Dia(i__),Ratio(i__),Class(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),logLHa(i__),logLSII(i__),
     +  Dia(i__),Ratio(i__),Class(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! A Catalog of M31 SNR Candidates

C  Format for file interpretation

    2 format(
     +  I3,1X,F10.7,1X,F9.6,1X,F5.2,1X,F5.2,1X,F5.1,1X,F4.2,1X,A2,1X,
     +  I2,1X,I1,1X,A2,1X,A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,156
        read(1,'(A71)')ar__1
        read(ar__1,2)
     +  ID(i__),RAdeg_1(i__),DEdeg_1(i__),logLHa_1(i__),
     +  logLSII_1(i__),Dia_1(i__),Ratio_1(i__),Morph(i__),N_OB(i__),
     +  N_HII(i__),PType(i__),Com(i__)
c    ..............Just test output...........
        write(6,2)
     +  ID(i__),RAdeg_1(i__),DEdeg_1(i__),logLHa_1(i__),
     +  logLSII_1(i__),Dia_1(i__),Ratio_1(i__),Morph(i__),N_OB(i__),
     +  N_HII(i__),PType(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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