FORTRAN Generation
(/./ftp/cats/J/A_AS/136/95)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/136/95 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 2026-Jun-13
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+AS/136/95       V380 Ori emission line spectrum         (Rossi+ 1999)
*================================================================================
*On the nature of the Herbig Be star V380 Orionis
*       Rossi C., Errico L., Friedjung M., Giovannelli F., Muratorio G.,
*       Viotti R., Vittone A.
*      <Astron. Astrophys. Suppl. Ser. 136, 95 (1999)>
*      =1999A&AS..136...95R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! *The emission line spectrum of V380 Ori in
                                  January 1995 (OHP/AURELIE)

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

      character*2   LineID     (nr__) ! Identifier for successive lines (1)
      integer*4     n_LineID   (nr__) ! ? [1/6] Rank of the line (2)
      real*8        LambdaObs  (nr__) ! (0.1nm) Observed heliocentric wavelength
      real*4        Flux       (nr__) ! (10-13mW/m2/nm) ? Integrated emission line flux
      real*4        EW         (nr__) ! (0.1nm) ? Absorption line equivalent width
*                                             (Negative values)
      real*8        LambdaLab  (nr__) ! (0.1nm) ? Laboratory wavelength
      character*6   Ion        (nr__) ! Ion of the contributor
      character*3   n_Ion      (nr__) ! Moore's multiplet number or
*                                           Kurucz table (k)
      integer*4     HRV        (nr__) ! (km/s) ? Heliocentric radial velocity
      character*12  Rem        (nr__) ! Remarks (3)
*Note (1): When successive lines, they are preceded with the same identifier in
*           the first column (from a to bh).
*Note (2): For a set of lines, same n_LambdaObs, rank of the line.
*Note (3): p: principal component
*          b: blue shifted component
*        pcy: P Cygni absorption component
*         ca: narrow central/shell absorption
*         is: interstellar absorption line
*      contr: minor contributor to the line
*        id?: uncertain identification

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

C  Loading file 'table3.dat'	! *The emission line spectrum of V380 Ori in
*                                  January 1995 (OHP/AURELIE)

C  Format for file interpretation

    1 format(
     +  A2,I1,1X,F7.2,1X,F5.2,1X,F5.2,1X,F8.3,1X,A6,1X,A3,1X,I4,1X,A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,212
        read(1,'(A61)')ar__
        read(ar__,1)
     +  LineID(i__),n_LineID(i__),LambdaObs(i__),Flux(i__),EW(i__),
     +  LambdaLab(i__),Ion(i__),n_Ion(i__),HRV(i__),Rem(i__)
        if(ar__(3:3) .EQ. '') n_LineID(i__) = iNULL__
        if(ar__(13:17) .EQ. '') Flux(i__) = rNULL__
        if(ar__(19:23) .EQ. '') EW(i__) = rNULL__
        if(ar__(25:32) .EQ. '') LambdaLab(i__) = rNULL__
        if(ar__(45:48) .EQ. '') HRV(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  LineID(i__),n_LineID(i__),LambdaObs(i__),Flux(i__),EW(i__),
     +  LambdaLab(i__),Ion(i__),n_Ion(i__),HRV(i__),Rem(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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