FORTRAN Generation
(/./ftp/cats/J/A_A/328/175)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/328/175 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-Mar-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/A+A/328/175       K & M giants equivalent widths (Aoki+ 1997)
*================================================================================
*High resolution infrared spectroscopy of CN and NH lines:
*nitrogen abundance in oxygen-rich giants through K to late M
*       Aoki W., Tsuji T.
*      <Astron. Astrophys. 328, 175 (1997)>
*      =1997A&A...328..175A      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tab10ab'	! CN lines in K- and H-windows region in K and
                                early M giants

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

      character*9   Name        ! Star name
      character*1   Window      ! [HK] Window
      character*10  Line        ! Line
      real*8        WN          ! (cm-1) Wavenumber
      real*4        log_gf      ! log of oscillation strength
      real*8        LEP         ! (cm-1) Lower excitation potential
      real*4        log_EW      ! ([0.1nm]) ? Equivalent width

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

C  Declarations for 'tab10cd'	! CN lines in K- and H-windows region in late M giants

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

      character*9   Name_1      ! Star name
      character*1   Window_1    ! [HK] Window
      character*10  Line_1      ! Line
      real*8        WN_1        ! (cm-1) Wavenumber
      real*4        log_gf_1    ! log of oscillation strength
      real*8        LEP_1       ! (cm-1) Lower excitation potential
      real*4        log_EW_1    ! ([0.1nm]) ? Equivalent width

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

C  Declarations for 'tab10e'	! NH lines in L-window region in late M type giants

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

      character*7   Name_2      ! Star name
      character*7   Line_2      ! Line
      real*8        WN_2        ! (cm-1) Wavenumber
      real*8        LEP_2       ! (cm-1) Lower excitation potential
      real*4        log_gf_1    ! log of oscillation strength (1)
      real*4        log_gf_2    ! log of oscillation strength (1)
      real*4        log_gf_3    ! log of oscillation strength (1)
      real*4        log_EW_1    ! ([0.1nm]) ? Equivalent width
*Note (1): The equivalent widths are measured for two or three components of
*           the triplet structure together with the 3 gf values given.

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

C  Loading file 'tab10ab'	! CN lines in K- and H-windows region in K and
*                                early M giants

C  Format for file interpretation

    1 format(A9,2X,A1,1X,A10,1X,F8.3,1X,F6.3,1X,F9.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tab10ab')
      write(6,*) '....Loading file: tab10ab'
      do i__=1,1463
        read(1,'(A56)')ar__
        read(ar__,1)Name,Window,Line,WN,log_gf,LEP,log_EW
        if(ar__(51:56) .EQ. '') log_EW = rNULL__
c    ..............Just test output...........
        write(6,1)Name,Window,Line,WN,log_gf,LEP,log_EW
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tab10cd'	! CN lines in K- and H-windows region in late M giants

C  Format for file interpretation

    2 format(A9,2X,A1,1X,A10,1X,F8.3,1X,F6.3,1X,F9.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tab10cd')
      write(6,*) '....Loading file: tab10cd'
      do i__=1,1300
        read(1,'(A56)')ar__1
        read(ar__1,2)
     +  Name_1,Window_1,Line_1,WN_1,log_gf_1,LEP_1,log_EW_1
        if(ar__1(51:56) .EQ. '') log_EW_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,Window_1,Line_1,WN_1,log_gf_1,LEP_1,log_EW_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tab10e'	! NH lines in L-window region in late M type giants

C  Format for file interpretation

    3 format(A7,1X,A7,1X,F8.3,1X,F9.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tab10e')
      write(6,*) '....Loading file: tab10e'
      do i__=1,115
        read(1,'(A62)')ar__2
        read(ar__2,3)
     +  Name_2,Line_2,WN_2,LEP_2,log_gf_1,log_gf_2,log_gf_3,log_EW_1
        if(ar__2(57:62) .EQ. '') log_EW_1 = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,Line_2,WN_2,LEP_2,log_gf_1,log_gf_2,log_gf_3,log_EW_1
c    .......End.of.Just test output...........
      end do
      close(1)

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