FORTRAN Generation
(/./ftp/cats/J/A_A/592/A18)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/592/A18 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-Oct-07
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/592/A18       Molecule and grain abundances            (Marchand+, 2016)
*================================================================================
*Chemical solver to compute molecule and grain abundances and non-ideal MHD
*resistivities in prestellar core-collapse calculations.
*    Marchand P., Masson J., Chabrier G., Hennebelle P., Commercon B., Vaytet N.
*    <Astron. Astrophys. 592, A18 (2016)>
*    =2016A&A...592A..18M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'abund.dat'	! Table of chemical abundances

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

      real*4        rho         ! (cm-3) Density
      real*4        T           ! (K) Temperature
      real*4        xi          ! (s-1) Ionisation rate
      real*4        e           ! Abundance of electrons
      real*4        Mg          ! Abundance of ion metal (Mg, etc.)
      real*4        HCO_        ! Abundance of molecular ion HCO^+^
      real*4        H3_         ! Abundance of molecular ion H_3_^+^
      real*4        H_          ! Abundance of molecular ion H^+^
      real*4        C_          ! Abundance of molecular ion C^+^
      real*4        He_         ! Abundance of molecular ion He^+^
      real*4        K_          ! Abundance of molecular ion K^+^
      real*4        Na_         ! Abundance of molecular ion Na^+^
      real*4        grains_1    ! Abundances of grains+ for bin 1
      real*4        grains_1_1  ! Abundances of grains- for bin 1
      real*4        grains01    ! Abundances of grains0 for bin 1
      real*4        grains_2    ! Abundances of grains+ for bin 2
      real*4        grains_2_1  ! Abundances of grains- for bin 2
      real*4        grains02    ! Abundances of grains0 for bin 2
      real*4        grains_3    ! Abundances of grains+ for bin 3
      real*4        grains_3_1  ! Abundances of grains- for bin 3
      real*4        grains03    ! Abundances of grains0 for bin 3
      real*4        grains_4    ! Abundances of grains+ for bin 4
      real*4        grains_4_1  ! Abundances of grains- for bin 4
      real*4        grains04    ! Abundances of grains0 for bin 4
      real*4        grains_5    ! Abundances of grains+ for bin 5
      real*4        grains_5_1  ! Abundances of grains- for bin 5
      real*4        grains05    ! Abundances of grains0 for bin 5
      real*4        grains_t    ! Total abundance of grains+
      real*4        grains_t_1  ! Total abundance of grains-
      real*4        grains0t    ! Total abundance of grains0
      real*4        Tint        ! (s) Integration time

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

C  Loading file 'abund.dat'	! Table of chemical abundances

C  Format for file interpretation

    1 format(
     +  1X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,
     +  2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,
     +  2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,
     +  2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,
     +  2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,2X,E24.17,
     +  2X,E23.17)

C  Effective file loading

      open(unit=1,status='old',file=
     +'abund.dat')
      write(6,*) '....Loading file: abund.dat'
      do i__=1,120000
        read(1,'(A804)')ar__
        read(ar__,1)
     +  rho,T,xi,e,Mg,HCO_,H3_,H_,C_,He_,K_,Na_,grains_1,grains_1_1,
     +  grains01,grains_2,grains_2_1,grains02,grains_3,grains_3_1,
     +  grains03,grains_4,grains_4_1,grains04,grains_5,grains_5_1,
     +  grains05,grains_t,grains_t_1,grains0t,Tint
c    ..............Just test output...........
        write(6,1)
     +  rho,T,xi,e,Mg,HCO_,H3_,H_,C_,He_,K_,Na_,grains_1,grains_1_1,
     +  grains01,grains_2,grains_2_1,grains02,grains_3,grains_3_1,
     +  grains03,grains_4,grains_4_1,grains04,grains_5,grains_5_1,
     +  grains05,grains_t,grains_t_1,grains0t,Tint
c    .......End.of.Just test output...........
      end do
      close(1)

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