FORTRAN Generation
(/./ftp/cats/J/A_A/420/673)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/420/673 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-Mar-28
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/420/673       Elemental abundances of CP2 star HR 5049  (Nishimura+, 2004)
*================================================================================
*Chemical composition of the magnetic B star HR 5049.
*    Nishimura M., Sadakane K., Kato K., Takeda Y., Mathys G.
*   <Astron. Astrophys. 420, 673 (2004)>
*   =2004A&A...420..673N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Analyses of individual atomic lines

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

      character*6   Ion        (nr__) ! Ion designation
      real*8        lambda     (nr__) ! (0.1nm) Wavelength
      real*4        Chi        (nr__) ! (eV) ? Excitation potential
      real*4        loggf      (nr__) ! ? Oscillator strength
      character*2   r_loggf    (nr__) ! Reference for loggf (1)
      character*2   l_logN_H   (nr__) ! [<= ] Limit flag on logN/H
      real*4        logN_H     (nr__) ! ([---]) ? Elemental abundance logN/H
      character*3   Remark     (nr__) ! Remarks (2)
*Note (1): gf-value references:
*   B  = Biemont et al., 2002, http://www.umh.ac.be/~astro/dream.shtml
*   BF = Biemont et al., 1989A&A...209..391B
*   HH = Hirata, & Horaguchi, T. 1995, Cat. <VI/69>
*   KX = Kurucz, R.L.  2001, http://kurucz.harvard.edu/
*   LB = Lawler et al., 2001ApJ...556..452L
*   LW = Lawler et al., 2001ApJ...563.1075L
*   MR = Mashonkina et al., 2002, Cat. <J/PAZh/28/41>
*   NI = NIST, 2000, http://physics.nist.gov/PhysRefData/contents-atomic.html
*   RU = Raasen & Uylings, 2000, http://www.science.uva.nl/pub/orth/iron/FeII.E1
*Note (2): Remarks:
*   HFS = the abundances determined by adopting the HFS data taken from
*          Kurucz, 2001, http://kurucz.harvard.edu/
*    C* = the abundance determined using several lines of the same numbers (*)
*          in reference.

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

C  Loading file 'table2.dat'	! Analyses of individual atomic lines

C  Format for file interpretation

    1 format(A6,1X,F7.2,1X,F5.2,1X,F5.2,1X,A2,1X,A2,F4.2,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,172
        read(1,'(A40)')ar__
        read(ar__,1)
     +  Ion(i__),lambda(i__),Chi(i__),loggf(i__),r_loggf(i__),
     +  l_logN_H(i__),logN_H(i__),Remark(i__)
        if(ar__(16:20) .EQ. '') Chi(i__) = rNULL__
        if(ar__(22:26) .EQ. '') loggf(i__) = rNULL__
        if(ar__(33:36) .EQ. '') logN_H(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Ion(i__),lambda(i__),Chi(i__),loggf(i__),r_loggf(i__),
     +  l_logN_H(i__),logN_H(i__),Remark(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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