FORTRAN Generation
(/./ftp/cats/J/BaltA/11/1)

Conversion of standardized ReadMe file for file /./ftp/cats/J/BaltA/11/1 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-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/BaltA/11/1    Interstellar extinction curves of OB stars   (Wegner 2002)
*================================================================================
*Atlas of interstellar extinction curves of OB stars covering the whole available
*wavelength range.
*    Wegner W.
*   <Baltic Astronomy, 11, 1 (2002)>
*   =2002BaltA..11....1W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Primary data for target stars

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

      character*10  Name       (nr__) ! HD or BD name of the star
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        E_B_V      (nr__) ! (mag) B-V color excess
      character*8   SpType     (nr__) ! Standard spectral type
      character*12  SpType2    (nr__) ! Most recent spectral type
      character*14  SpType3    (nr__) ! Most often spectral type

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

C  Declarations for 'table2.dat'	! Ratios of consecutive color excesses,
                              E(lambda-V)/E(B-V) in UBV and UV-ANS photometry

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

      character*10  Name_1     (nr__1) ! HD or BD name
      real*4        kU         (nr__1) ! ? color excess ratio
      real*4        e_kU       (nr__1) ! ? rms uncertainty on kU
      real*4        k33        (nr__1) ! ? k33=E(3300{AA}-V)/E(B-V) color excess ratio
      real*4        e_k33      (nr__1) ! ? rms uncertainty on k33
      real*4        k25        (nr__1) ! k25=E(2500{AA}-V)/E(B-V) color excess ratio
      real*4        e_k25      (nr__1) ! ? rms uncertainty on k25
      real*4        k22        (nr__1) ! k22=E(2200{AA}-V)/E(B-V) color excess ratio
      real*4        e_k22      (nr__1) ! ? rms uncertainty on k22
      real*4        k18        (nr__1) ! k18=E(1800{AA}-V)/E(B-V) color excess ratio
      real*4        e_k18      (nr__1) ! rms uncertainty on k18
      real*4        k15        (nr__1) ! k15=E(1550{AA}-V)/E(B-V) color excess ratio
      real*4        e_k15      (nr__1) ! ? rms uncertainty on k15

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

C  Declarations for 'table3.dat'	! Ratios of consecutive color excesses,
                              E(lambda-V)/E(B-V) in BVRIJHKLM photometry

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

      character*10  Name_2     (nr__2) ! HD or BD name
      real*4        kR         (nr__2) ! ? KR=E(R-V)/E(B-V) colour excess ratio
      real*4        e_kR       (nr__2) ! ? rms uncertainty on kR
      real*4        kI         (nr__2) ! ? KI=E(I-V)/E(B-V) colour excess ratio
      real*4        e_kI       (nr__2) ! ? rms uncertainty on kI
      real*4        kJ         (nr__2) ! ? KJ=E(J-V)/E(B-V) colour excess ratio
      real*4        e_kJ       (nr__2) ! ? rms uncertainty on kJ
      real*4        kH         (nr__2) ! ? KH=E(H-V)/E(B-V) colour excess ratio
      real*4        e_kH       (nr__2) ! ? rms uncertainty on kH
      real*4        kK         (nr__2) ! ? KK=E(K-V)/E(B-V) colour excess ratio
      real*4        e_kK       (nr__2) ! ? rms uncertainty on kK
      real*4        kL         (nr__2) ! ? KL=E(L-V)/E(B-V) colour excess ratio
      real*4        e_kL       (nr__2) ! ? rms uncertainty on kL
      real*4        kM         (nr__2) ! ? KM=E(M-V)/E(B-V) colour excess ratio
      real*4        e_kM       (nr__2) ! ? rms uncertainty on kM

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

C  Loading file 'table1.dat'	! Primary data for target stars

C  Format for file interpretation

    1 format(A10,1X,F4.2,1X,F5.3,2X,A8,1X,A12,1X,A14)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,436
        read(1,'(A59)')ar__
        read(ar__,1)
     +  Name(i__),Vmag(i__),E_B_V(i__),SpType(i__),SpType2(i__),
     +  SpType3(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Vmag(i__),E_B_V(i__),SpType(i__),SpType2(i__),
     +  SpType3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Ratios of consecutive color excesses,
*                              E(lambda-V)/E(B-V) in UBV and UV-ANS photometry

C  Format for file interpretation

    2 format(
     +  A10,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,436
        read(1,'(A77)')ar__1
        read(ar__1,2)
     +  Name_1(i__),kU(i__),e_kU(i__),k33(i__),e_k33(i__),k25(i__),
     +  e_k25(i__),k22(i__),e_k22(i__),k18(i__),e_k18(i__),k15(i__),
     +  e_k15(i__)
        if(ar__1(12:15) .EQ. '') kU(i__) = rNULL__
        if(ar__1(17:20) .EQ. '') e_kU(i__) = rNULL__
        if(ar__1(22:25) .EQ. '') k33(i__) = rNULL__
        if(ar__1(27:30) .EQ. '') e_k33(i__) = rNULL__
        if(ar__1(38:42) .EQ. '') e_k25(i__) = rNULL__
        if(ar__1(50:54) .EQ. '') e_k22(i__) = rNULL__
        if(ar__1(74:77) .EQ. '') e_k15(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),kU(i__),e_kU(i__),k33(i__),e_k33(i__),k25(i__),
     +  e_k25(i__),k22(i__),e_k22(i__),k18(i__),e_k18(i__),k15(i__),
     +  e_k15(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Ratios of consecutive color excesses,
*                              E(lambda-V)/E(B-V) in BVRIJHKLM photometry

C  Format for file interpretation

    3 format(
     +  A10,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F4.2,1X,F6.2,1X,F4.2,1X,F6.2,1X,F5.2,1X,F6.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,436
        read(1,'(A91)')ar__2
        read(ar__2,3)
     +  Name_2(i__),kR(i__),e_kR(i__),kI(i__),e_kI(i__),kJ(i__),
     +  e_kJ(i__),kH(i__),e_kH(i__),kK(i__),e_kK(i__),kL(i__),
     +  e_kL(i__),kM(i__),e_kM(i__)
        if(ar__2(12:16) .EQ. '') kR(i__) = rNULL__
        if(ar__2(18:21) .EQ. '') e_kR(i__) = rNULL__
        if(ar__2(23:27) .EQ. '') kI(i__) = rNULL__
        if(ar__2(29:32) .EQ. '') e_kI(i__) = rNULL__
        if(ar__2(34:38) .EQ. '') kJ(i__) = rNULL__
        if(ar__2(40:43) .EQ. '') e_kJ(i__) = rNULL__
        if(ar__2(45:49) .EQ. '') kH(i__) = rNULL__
        if(ar__2(51:54) .EQ. '') e_kH(i__) = rNULL__
        if(ar__2(56:61) .EQ. '') kK(i__) = rNULL__
        if(ar__2(63:66) .EQ. '') e_kK(i__) = rNULL__
        if(ar__2(68:73) .EQ. '') kL(i__) = rNULL__
        if(ar__2(75:79) .EQ. '') e_kL(i__) = rNULL__
        if(ar__2(81:86) .EQ. '') kM(i__) = rNULL__
        if(ar__2(88:91) .EQ. '') e_kM(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),kR(i__),e_kR(i__),kI(i__),e_kI(i__),kJ(i__),
     +  e_kJ(i__),kH(i__),e_kH(i__),kK(i__),e_kK(i__),kL(i__),
     +  e_kL(i__),kM(i__),e_kM(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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