FORTRAN Generation
(/./ftp/cats/J/ApJ/382/636)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/382/636 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 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/382/636              Rosseland mean free-free Gaunt factor (Itoh+ 1991)
*================================================================================
*The Rosseland mean free-free Gaunt factor of the dense
*high-Temperature stellar plasma
*     Itoh N., Kuwashima F., Ichihashi K., Mutoh H.
*    <Astrophys. J. 382, 636 (1991)>
*    =1991ApJ...382..636I
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! *Results of calculations of <<g^-1^>>

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

      real*4        Eta         ! Value of the degeneracy parameter, {eta}
      character*2   Elem        ! Element for Gaunt factor calculation (1)
      real*4        G_4_0       ! ? Gaunt factor, log({gamma}^2^) = -4.0
      real*4        G_3_5       ! ? Gaunt factor, log({gamma}^2^) = -3.5
      real*4        G_3_0       ! ? Gaunt factor, log({gamma}^2^) = -3.0
      real*4        G_2_5       ! ? Gaunt factor, log({gamma}^2^) = -2.5
      real*4        G_2_0       ! ? Gaunt factor, log({gamma}^2^) = -2.0
      real*4        G_1_5       ! ? Gaunt factor, log({gamma}^2^) = -1.5
      real*4        G_1_0       ! ? Gaunt factor, log({gamma}^2^) = -1.0
      real*4        G_0_5       ! ? Gaunt factor, log({gamma}^2^) = -0.5
      real*4        G_0_0       ! ? Gaunt factor, log({gamma}^2^) =  0.0
      real*4        G_0_5_1     ! ? Gaunt factor, log({gamma}^2^) =  0.5
      real*4        G_1_0_1     ! ? Gaunt factor, log({gamma}^2^) =  1.0
      real*4        G_2_0_1     ! ? Gaunt factor, log({gamma}^2^) =  2.0
*Note (1): The Rosseland mean inverse Gaunt factor was calculated for the
*           following:
*                     H  - relativistic hydrogen
*                     He - relativistic helium
*                     C  - relativistic carbon
*                     O  - relativistic oxygen
*                     G  - exact nonrelativistic inverse Gaunt factor

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

C  Loading file 'table1.dat'	! *Results of calculations of <<g^-1^>>

C  Format for file interpretation

    1 format(
     +  F4.1,1X,A2,2X,E9.3,2X,E9.3,2X,E9.3,2X,E9.3,2X,E9.3,2X,E9.3,2X,
     +  E9.3,2X,E9.3,2X,E9.3,2X,E9.3,2X,E9.3,2X,E9.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,50
        read(1,'(A139)')ar__
        read(ar__,1)
     +  Eta,Elem,G_4_0,G_3_5,G_3_0,G_2_5,G_2_0,G_1_5,G_1_0,G_0_5,
     +  G_0_0,G_0_5_1,G_1_0_1,G_2_0_1
        if(ar__(10:18) .EQ. '') G_4_0 = rNULL__
        if(ar__(21:29) .EQ. '') G_3_5 = rNULL__
        if(ar__(32:40) .EQ. '') G_3_0 = rNULL__
        if(ar__(43:51) .EQ. '') G_2_5 = rNULL__
        if(ar__(54:62) .EQ. '') G_2_0 = rNULL__
        if(ar__(65:73) .EQ. '') G_1_5 = rNULL__
        if(ar__(76:84) .EQ. '') G_1_0 = rNULL__
        if(ar__(87:95) .EQ. '') G_0_5 = rNULL__
        if(ar__(98:106) .EQ. '') G_0_0 = rNULL__
        if(ar__(109:117) .EQ. '') G_0_5_1 = rNULL__
        if(ar__(120:128) .EQ. '') G_1_0_1 = rNULL__
        if(ar__(131:139) .EQ. '') G_2_0_1 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Eta,Elem,G_4_0,G_3_5,G_3_0,G_2_5,G_2_0,G_1_5,G_1_0,G_0_5,
     +  G_0_0,G_0_5_1,G_1_0_1,G_2_0_1
c    .......End.of.Just test output...........
      end do
      close(1)

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