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

Conversion of standardized ReadMe file for file /./ftp/cats/J/BaltA/11/417 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-May-15
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/417   Vilnius photometry in Serpens cauda. II.      (Straizys+, 2002)
*================================================================================
*Photometric investigation of the galaxy in the direction of Serpens cauda.
*A catalog of extinctions and distances.
*      Straizys V., Bartasiute S., Cernis K.
*     <Baltic Astron., 11, 417 (2002)>
*     =2002BaltA..11..417S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photometry and classification in the sub-areas

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm
      real*8        RAdeg      (nr__) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*10  v_SBC2002_ (nr__) ! Sequential number
      character*1   f__SBC2002_(nr__) ! [#] possible multiplicity (1)
      character*1   n__SBC2002_(nr__) ! [*] indicates a note detailed in notes.dat
      character*9   GSC        (nr__) ! Guide Star Catalog designation (Cat. II/254)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      integer*4     RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      real*4        DEm        (nr__) ! (arcmin) Declination (J2000)
      character*10  SpType     (nr__) ! MK spectral type, derived from photometry
      real*4        Vmag       (nr__) ! (mag) Vilnius V magnitude
      real*4        U_V        (nr__) ! (mag) Vilnius U-V colour index
      real*4        P_V        (nr__) ! (mag) Vilnius P-V colour index
      real*4        X_V        (nr__) ! (mag) Vilnius X-V colour index
      real*4        Y_V        (nr__) ! (mag) Vilnius Y-V colour index
      real*4        Z_V        (nr__) ! (mag) Vilnius Z-V colour index
      real*4        V_S        (nr__) ! (mag) Vilnius V-S colour index
      integer*4     Nobs       (nr__) ! Number of observations
*Note (1): Images of the stars, marked by a #, in the Internet's virtual
*     telescope SkyView (http://skyview.gsfc.nasa.gov) are more or less
*     non-symmetrical. These stars may be suspected in multiplicity.

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

C  Declarations for 'notes.dat'	! Individual notes

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

      character*10  v_SBC2002__1(nr__1) ! Star designation
      character*69  Note       (nr__1) ! Text of the note

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

C  Declarations for 'table3.dat'	! Photometric quantification, color excesses, 
                             extinctions and distances in the main area.

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

      integer*4     v_SBC2002__2(nr__2) ! Sequential number
      character*2   n__SBC2002__1(nr__2) ! [*bcde ] Notes (1)
      character*8   BD         (nr__2) ! BD number
      character*11  SpType_1   (nr__2) ! MK photometric spectral type
      real*4        Vmag_1     (nr__2) ! (mag) Vilnius V magnitude
      real*4        VMAG_2     (nr__2) ! (mag) ? Absolute V magnitude
      character*1   u_VMAG     (nr__2) ! Uncertainty flag on VMAG
      real*4        E_Y_V      (nr__2) ! (mag) ? (Y-V) colour excess
      character*1   u_E_Y_V    (nr__2) ! Uncertainty flag on E(Y-V)
      real*4        AV         (nr__2) ! (mag) ? Absorption in V band
      character*1   u_AV       (nr__2) ! Uncertainty flag on AV
      integer*4     Dist       (nr__2) ! (pc) ? Distance
      character*1   u_Dist     (nr__2) ! Uncertainty flag on Dist
*Note (1): Notes as follows:
*      * = Stars Nos. 24, 60, 61, 66, 77, 87, 94, 96, 111, 130, 135, 155,
*          158, 169, 171, 178, 204, 206, 211, 219, 225, 236, 247, 252, 253,
*          255, 258, 262, 277, 278, 280, 281, 289, 309, 311, 322, 323, 327,
*          343, 372, 374, 391, 408 visual binary or multiple stars,
*          see Paper II, Cat. <J/BaltA/11/321>.
*      b = Too large extinction for the 104 pc distance. If the star is a
*          binary with identical components, its distance is 147 pc.
*      c = Stars Nos. 36, 209, 242, 311 are spectral binaries, see
*          Paper II, Cat. <J/BaltA/11/321>.
*      d = Stars Nos. 56, 76, 227 and 311 are variables.
*      e = Star No. 404. A shell star, see Paper II,
*          Cat. <J/BaltA/11/321>.

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

C  Declarations for 'table4.dat'	! Photometric quantification, color excesses, 
                             extinctions and distances in the sub-areas.

      integer*4 nr__3
      parameter (nr__3=60)	! Number of records
      character*69 ar__3  	! Full-size record

      character*10  v_SBC2002__3(nr__3) ! Sequential number (1)
      character*1   n__SBC2002__2(nr__3) ! [*] indicates a note in notes.dat file
      character*9   GSC_1      (nr__3) ! GSC designation
      character*11  SpType_2   (nr__3) ! MK photometric spectral type
      real*4        Vmag_3     (nr__3) ! (mag) Vilnius V magnitude
      real*4        VMAG_4     (nr__3) ! (mag) ? Absolute V magnitude
      character*1   u_VMAG_1   (nr__3) ! Uncertainty flag on VMAG
      real*4        E_Y_V_1    (nr__3) ! (mag) ? (Y-V) colour excess
      real*4        AV_1       (nr__3) ! (mag) ? Absorption in V band
      integer*4     Dist_1     (nr__3) ! (pc) ? Distance
      character*1   u_Dist_1   (nr__3) ! Uncertainty flag on Dist
*Note (1): Ser I-NN: [CBS97] NGC 6535 NN

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

C  Declarations for 'table5.dat'	! Photometric quantification, color excesses, 
                             extinctions and distances in SA 110

      integer*4 nr__4
      parameter (nr__4=21)	! Number of records
      character*64 ar__4  	! Full-size record

      character*9   Name       (nr__4) ! Star Name (SA 110-NN)
      character*8   BD_1       (nr__4) ! BD designation
      character*11  SpType_3   (nr__4) ! MK spectral type
      real*4        Vmag_5     (nr__4) ! (mag) Vilnius V magnitude
      real*4        VMAG_6     (nr__4) ! (mag) ? Absolute V magnitude
      real*4        E_Y_V_1    (nr__4) ! (mag) ? (Y-V) colour excess
      real*4        AV_2       (nr__4) ! (mag) ? Absorption in V band
      integer*4     Dist_2     (nr__4) ! (pc) ? Distance

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

C  Loading file 'table2.dat'	! Photometry and classification in the sub-areas

C  Format for file interpretation

    1 format(
     +  A10,A1,A1,1X,A9,2X,I2,1X,I2,1X,I2,1X,A1,I2,1X,F4.1,2X,A10,2X,
     +  F6.3,2X,F5.3,2X,F5.3,2X,F5.3,2X,F5.3,2X,F5.3,2X,F5.3,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,53
        read(1,'(A105)')ar__
        read(ar__,1)
     +  v_SBC2002_(i__),f__SBC2002_(i__),n__SBC2002_(i__),GSC(i__),
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  SpType(i__),Vmag(i__),U_V(i__),P_V(i__),X_V(i__),Y_V(i__),
     +  Z_V(i__),V_S(i__),Nobs(i__)
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  v_SBC2002_(i__),f__SBC2002_(i__),n__SBC2002_(i__),GSC(i__),
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  SpType(i__),Vmag(i__),U_V(i__),P_V(i__),X_V(i__),Y_V(i__),
     +  Z_V(i__),V_S(i__),Nobs(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    2 format(A10,1X,A69)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,14
        read(1,'(A80)')ar__1
        read(ar__1,2)v_SBC2002__1(i__),Note(i__)
c    ..............Just test output...........
        write(6,2)v_SBC2002__1(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Photometric quantification, color excesses, 
*                             extinctions and distances in the main area.

C  Format for file interpretation

    3 format(
     +  I3,A2,1X,A8,1X,A11,1X,F6.3,3X,F5.2,A1,2X,F4.2,A1,3X,F4.2,A1,
     +  2X,I4,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,419
        read(1,'(A64)')ar__2
        read(ar__2,3)
     +  v_SBC2002__2(i__),n__SBC2002__1(i__),BD(i__),SpType_1(i__),
     +  Vmag_1(i__),VMAG_2(i__),u_VMAG(i__),E_Y_V(i__),u_E_Y_V(i__),
     +  AV(i__),u_AV(i__),Dist(i__),u_Dist(i__)
        if(ar__2(37:41) .EQ. '') VMAG_2(i__) = rNULL__
        if(ar__2(45:48) .EQ. '') E_Y_V(i__) = rNULL__
        if(ar__2(53:56) .EQ. '') AV(i__) = rNULL__
        if(ar__2(60:63) .EQ. '') Dist(i__) = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  v_SBC2002__2(i__),n__SBC2002__1(i__),BD(i__),SpType_1(i__),
     +  Vmag_1(i__),VMAG_2(i__),u_VMAG(i__),E_Y_V(i__),u_E_Y_V(i__),
     +  AV(i__),u_AV(i__),Dist(i__),u_Dist(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Photometric quantification, color excesses, 
*                             extinctions and distances in the sub-areas.

C  Format for file interpretation

    4 format(
     +  A10,A1,1X,A9,2X,A11,1X,F5.2,1X,F4.1,A1,3X,F4.2,4X,F4.2,3X,I4,
     +  A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,60
        read(1,'(A69)')ar__3
        read(ar__3,4)
     +  v_SBC2002__3(i__),n__SBC2002__2(i__),GSC_1(i__),SpType_2(i__),
     +  Vmag_3(i__),VMAG_4(i__),u_VMAG_1(i__),E_Y_V_1(i__),AV_1(i__),
     +  Dist_1(i__),u_Dist_1(i__)
        if(ar__3(42:45) .EQ. '') VMAG_4(i__) = rNULL__
        if(ar__3(50:53) .EQ. '') E_Y_V_1(i__) = rNULL__
        if(ar__3(58:61) .EQ. '') AV_1(i__) = rNULL__
        if(ar__3(65:68) .EQ. '') Dist_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,4)
     +  v_SBC2002__3(i__),n__SBC2002__2(i__),GSC_1(i__),SpType_2(i__),
     +  Vmag_3(i__),VMAG_4(i__),u_VMAG_1(i__),E_Y_V_1(i__),AV_1(i__),
     +  Dist_1(i__),u_Dist_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Photometric quantification, color excesses, 
*                             extinctions and distances in SA 110

C  Format for file interpretation

    5 format(A9,1X,A8,2X,A11,F5.2,1X,F4.1,4X,F4.2,4X,F4.2,3X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,21
        read(1,'(A64)')ar__4
        read(ar__4,5)
     +  Name(i__),BD_1(i__),SpType_3(i__),Vmag_5(i__),VMAG_6(i__),
     +  E_Y_V_1(i__),AV_2(i__),Dist_2(i__)
        if(ar__4(38:41) .EQ. '') VMAG_6(i__) = rNULL__
        if(ar__4(46:49) .EQ. '') E_Y_V_1(i__) = rNULL__
        if(ar__4(54:57) .EQ. '') AV_2(i__) = rNULL__
        if(ar__4(61:64) .EQ. '') Dist_2(i__) = iNULL__
c    ..............Just test output...........
        write(6,5)
     +  Name(i__),BD_1(i__),SpType_3(i__),Vmag_5(i__),VMAG_6(i__),
     +  E_Y_V_1(i__),AV_2(i__),Dist_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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