FORTRAN Generation
(/./ftp/cats/J/ApJS/119/141)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/119/141 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-Aug-11
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/ApJS/119/141  Oxygen-rich dust shells IR spectral classification (Sloan+ 1998)
*================================================================================
*The infrared spectral classification of oxygen-rich dust shells.
*       Sloan G.C., Price S.D.
*      <Astrophys. J. Suppl. Ser. 119, 141 (1998)>
*      =1998ApJS..119..141S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Infrared spectral classifications of the AGB sample

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

      character*10  IRAS        ! IRA-PSC (Cat. <II/125>) designation
      character*1   m_IRAS      ! Multilicity index on IRAS
      character*12  Name        ! Name
      character*9   Var         ! Variability type (1)
      real*4        Per         ! (d) ? Period
      character*17  SpType      ! Spectral Type
      real*4        v12um       ! (mag) 12{mu}m magnitude
      real*4        v_12___25_  ! (mag) Colour index [12]-[25]
      integer*4     LRS         ! ? LRS characterisations described in the LRS
*                                     Atlas
      real*4        DEC         ! Dust emission contrast (2)
      real*4        F11_F12     ! Corrected flux ratio F11{mu}m/F12{mu}m
      character*5   Dust        ! Infrared emission class (3)
*Note (1): M: Mira Ceti-type variables
*         Lb: Slow irregular variable of late spectral type
*        SRa: Semiregular late-type giants displaying persistent periodicity
*              and usually small light amplitudes
*        SRb: Semiregular late-type giants with poorly defined periodicity, or
*              with alternating intervals of periodic and slow irregular changes,
*              and even with light constancy intervals
*Note (2): Ratio of the summed emission from the dust to the summed emission from
*           the star over the interval 7.67-14.03{mu}m.
*Note (3): N: Naked (no dust)
*         SE: Silicate (and oxygen-rich dust) emission
*         SB: Silicate self-absorbed emission
*         SA: Silicate absorption
*         CE: Carbon-rich dust emission
*          H: Very red spectrum (possible H II region)
*          P: Peculiar (or noisy)

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

C  Declarations for 'table5.dat'	! Infrared spectral classifications of the supergiants

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

      character*10  IRAS_1      ! IRA-PSC (Cat. <II/125>) designation
      character*1   m_IRAS_1    ! Multilicity index on IRAS
      character*12  Name_1      ! Name
      character*9   Var_1       ! Variability type (1)
      real*4        Per_1       ! (d) ? Period
      character*17  SpType_1    ! Spectral Type
      real*4        v12um_1     ! (mag) 12{mu}m magnitude
      real*4        v_12___25__1 ! (mag) Colour index [12]-[25]
      integer*4     LRS_1       ! ? LRS characterisations described in the LRS
*                                     Atlas
      real*4        DEC_1       ! Dust emission contrast (2)
      real*4        F11_F12_1   ! Corrected flux ratio F11{mu}m/F12{mu}m
      character*5   Dust_1      ! Infrared emission class (3)
*Note (1): M: Mira Ceti-type variables
*         Lb: Slow irregular variable of late spectral type
*        SRa: Semiregular late-type giants displaying persistent periodicity
*              and usually small light amplitudes
*        SRb: Semiregular late-type giants with poorly defined periodicity, or
*              with alternating intervals of periodic and slow irregular changes,
*              and even with light constancy intervals
*Note (2): Ratio of the summed emission from the dust to the summed emission from
*           the star over the interval 7.67-14.03{mu}m.
*Note (3): N: Naked (no dust)
*         SE: Silicate (and oxygen-rich dust) emission
*         SB: Silicate self-absorbed emission
*         SA: Silicate absorption
*         CE: Carbon-rich dust emission
*          H: Very red spectrum (possible H II region)
*          P: Peculiar (or noisy)

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

C  Declarations for 'table6.dat'	! Infrared spectral classifications of the optical
                             S stars

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

      character*10  IRAS_2      ! IRA-PSC (Cat. <II/125>) designation
      character*1   m_IRAS_2    ! Multilicity index on IRAS
      character*12  Name_2      ! Name
      character*9   Var_2       ! Variability type (1)
      real*4        Per_2       ! (d) ? Period
      character*17  SpType_2    ! Spectral Type
      real*4        v12um_2     ! (mag) 12{mu}m magnitude
      real*4        v_12___25__2 ! (mag) Colour index [12]-[25]
      integer*4     LRS_2       ! ? LRS characterisations described in the LRS
*                                     Atlas
      real*4        DEC_2       ! Dust emission contrast (2)
      real*4        F11_F12_2   ! Corrected flux ratio F11{mu}m/F12{mu}m
      character*5   Dust_2      ! Infrared emission class (3)
*Note (1): M: Mira Ceti-type variables
*         Lb: Slow irregular variable of late spectral type
*        SRa: Semiregular late-type giants displaying persistent periodicity
*              and usually small light amplitudes
*        SRb: Semiregular late-type giants with poorly defined periodicity, or
*              with alternating intervals of periodic and slow irregular changes,
*              and even with light constancy intervals
*Note (2): Ratio of the summed emission from the dust to the summed emission from
*           the star over the interval 7.67-14.03{mu}m.
*Note (3): N: Naked (no dust)
*         SE: Silicate (and oxygen-rich dust) emission
*         SB: Silicate self-absorbed emission
*         SA: Silicate absorption
*         CE: Carbon-rich dust emission
*          H: Very red spectrum (possible H II region)
*          P: Peculiar (or noisy)

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

C  Declarations for 'table9.dat'	! MS (oxygen-rich AGB or supergiant) stars

      integer*4 nr__3
      parameter (nr__3=18)	! Number of records
      character*10 ar__3  	! Full-size record

      character*10  IRAS_3      ! IRAS-PSC designation

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

C  Loading file 'table4.dat'	! Infrared spectral classifications of the AGB sample

C  Format for file interpretation

    1 format(
     +  A10,A1,1X,A12,1X,A9,1X,F6.2,1X,A17,1X,F5.2,1X,F5.2,1X,I3,1X,
     +  F5.2,1X,F4.2,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,546
        read(1,'(A92)')ar__
        read(ar__,1)
     +  IRAS,m_IRAS,Name,Var,Per,SpType,v12um,v_12___25_,LRS,DEC,
     +  F11_F12,Dust
        if(ar__(36:41) .EQ. '') Per = rNULL__
        if(ar__(73:75) .EQ. '') LRS = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  IRAS,m_IRAS,Name,Var,Per,SpType,v12um,v_12___25_,LRS,DEC,
     +  F11_F12,Dust
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Infrared spectral classifications of the supergiants

C  Format for file interpretation

    2 format(
     +  A10,A1,1X,A12,1X,A9,1X,F6.2,1X,A17,1X,F5.2,1X,F5.2,1X,I3,1X,
     +  F5.2,1X,F4.2,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,65
        read(1,'(A92)')ar__1
        read(ar__1,2)
     +  IRAS_1,m_IRAS_1,Name_1,Var_1,Per_1,SpType_1,v12um_1,
     +  v_12___25__1,LRS_1,DEC_1,F11_F12_1,Dust_1
        if(ar__1(36:41) .EQ. '') Per_1 = rNULL__
        if(ar__1(73:75) .EQ. '') LRS_1 = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  IRAS_1,m_IRAS_1,Name_1,Var_1,Per_1,SpType_1,v12um_1,
     +  v_12___25__1,LRS_1,DEC_1,F11_F12_1,Dust_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Infrared spectral classifications of the optical
*                             S stars

C  Format for file interpretation

    3 format(
     +  A10,A1,1X,A12,1X,A9,1X,F6.2,1X,A17,1X,F5.2,1X,F5.2,1X,I3,1X,
     +  F5.2,1X,F4.2,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,24
        read(1,'(A92)')ar__2
        read(ar__2,3)
     +  IRAS_2,m_IRAS_2,Name_2,Var_2,Per_2,SpType_2,v12um_2,
     +  v_12___25__2,LRS_2,DEC_2,F11_F12_2,Dust_2
        if(ar__2(36:41) .EQ. '') Per_2 = rNULL__
        if(ar__2(73:75) .EQ. '') LRS_2 = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  IRAS_2,m_IRAS_2,Name_2,Var_2,Per_2,SpType_2,v12um_2,
     +  v_12___25__2,LRS_2,DEC_2,F11_F12_2,Dust_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! MS (oxygen-rich AGB or supergiant) stars

C  Format for file interpretation

    4 format(A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,18
        read(1,'(A10)')ar__3
        read(ar__3,4)IRAS_3
c    ..............Just test output...........
        write(6,4)IRAS_3
c    .......End.of.Just test output...........
      end do
      close(1)

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