FORTRAN Generation
(/./ftp/cats/J/A_A/535/A107)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/535/A107 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-20
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/535/A107  Spectroscopic survey of 479 thick disc stars (Kordopatis+, 2011)
*================================================================================
*A spectroscopic survey of thick disc stars outside the solar neighbourhood.
*    Kordopatis G., Recio-Blanco A., de Laverny P., Gilmore G., Hill V.,
*    Wyse R.F.G., Helmi A., Bijaoui A., Ordenovic C., Zoccali M., Bienayme O.
*   <Astron. Astrophys. 535, A107 (2011)>
*   =2011A&A...535A.107K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Kinematic parameters of the targets

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

      integer*4     Seq        (nr__) ! Sequential  number of the star
      real*8        pmGlon     (nr__) ! (10mas/yr) ?=-999.990 Proper motion along galactic longitude
      real*8        pmGlat     (nr__) ! (10mas/yr) ?=-999.990 Proper motion along galactic latitude
      real*4        HRV        (nr__) ! (km/s) Heliocentric radial velocity
      real*4        e_HRV      (nr__) ! (km/s) Error on radial velocity
      integer*4     Uvel       (nr__) ! (km/s) ?=-999 U cartesian velocity coordinate
*                                       w.r.t. the LSR
      integer*4     e_Uvel     (nr__) ! (km/s) ?=-999 Error on Uvel
      integer*4     Vvel       (nr__) ! (km/s) ?=-999 V cartesian velocity coordinate
*                                       w.r.t. the LSR
      integer*4     e_Vvel     (nr__) ! (km/s) ?=-999 Error on Vvel
      integer*4     Wvel       (nr__) ! (km/s) ?=-999 W cartesian velocity coordinate
*                                       w.r.t. the LSR
      integer*4     e_Wvel     (nr__) ! (km/s) ?=-999 Error on Wvel
      integer*4     Vg_r       (nr__) ! (km/s) ?=-999 Radial component V_R_ of 
*                                      galactocentric cylindrical velocity
      integer*4     e_Vg_r     (nr__) ! (km/s) ?=-999 Error on Vg.r
      integer*4     Vphi       (nr__) ! (km/s) ?=-999 Orthoradial component V_{phi} of 
*                                      galactocentric cylindrical velocity
      integer*4     e_Vphi     (nr__) ! (km/s) ?=-999 Error on Vphi
      real*8        ecc        (nr__) ! ?=-999.99 Eccentricity of the galactic orbit
      real*8        e_ecc      (nr__) ! ?=-999.99 Error on eccentricity

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

C  Declarations for 'table2.dat'	! Atmospheric parameters of the targets

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

      integer*4     Seq_1      (nr__1) ! Sequential number of the star
      integer*4     Teff       (nr__1) ! (K) Effective temperature
      integer*4     e_Teff     (nr__1) ! (K) Error on effective temperature
      real*4        logg       (nr__1) ! ([cm/s2]) Surface gravity
      real*4        e_logg     (nr__1) ! ([cm/s2]) Error on surface gravity
      real*4        v_M_H_     (nr__1) ! ([Sun]) Overall metallicity
      real*4        e__M_H_    (nr__1) ! ([Sun]) Error on overall metallicity
      real*4        Vmag       (nr__1) ! (mag) Relative V magnitude
      real*4        B_V        (nr__1) ! (mag) ?=-9.99 B-V colour index
      real*4        VMAG_1     (nr__1) ! (mag) Absolute V magnitude
      real*4        e_VMAG     (nr__1) ! (mag) Error on the absolute V magnitude
      integer*4     SNR        (nr__1) ! Measured  signal-to-noise ratio

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

C  Declarations for 'table4.dat'	! Positions and coordinates of the targets

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

C  Position composed of: Glon Glat
      integer*4     Seq_2      (nr__2) ! Sequential number of the star
      real*8        Glon       (nr__2) ! (deg) Galactic longitude
      real*8        Glat       (nr__2) ! (deg) Galactic latitude
      integer*4     Dist       (nr__2) ! (pc) Line-of-sight distance
      integer*4     e_Dist     (nr__2) ! (pc) Error on line-of-sight distance
      integer*4     X          (nr__2) ! (pc) Heliocentric X position (toward galactic center)
      integer*4     e_X        (nr__2) ! (pc) Error on the X position
      integer*4     Y          (nr__2) ! (pc) Heliocentric Y position
      integer*4     e_Y        (nr__2) ! (pc) Error on the Y position
      integer*4     Z          (nr__2) ! (pc) Heliocentric Z position (toward galactic North)
      integer*4     e_Z        (nr__2) ! (pc) Error on the Z position
      integer*4     R          (nr__2) ! (pc) Galactocentric cylindrical R coordinate
      integer*4     e_R        (nr__2) ! (pc) Error galactocentric cylindrical R coordinate

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

C  Loading file 'table1.dat'	! Kinematic parameters of the targets

C  Format for file interpretation

    1 format(
     +  I3,1X,F8.3,1X,F8.3,1X,F5.1,1X,F3.1,1X,I5,1X,I4,1X,I5,1X,I4,1X,
     +  I4,1X,I4,1X,I4,1X,I4,1X,I5,1X,I4,1X,F7.2,1X,F7.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,479
        read(1,'(A100)')ar__
        read(ar__,1)
     +  Seq(i__),pmGlon(i__),pmGlat(i__),HRV(i__),e_HRV(i__),
     +  Uvel(i__),e_Uvel(i__),Vvel(i__),e_Vvel(i__),Wvel(i__),
     +  e_Wvel(i__),Vg_r(i__),e_Vg_r(i__),Vphi(i__),e_Vphi(i__),
     +  ecc(i__),e_ecc(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),pmGlon(i__),pmGlat(i__),HRV(i__),e_HRV(i__),
     +  Uvel(i__),e_Uvel(i__),Vvel(i__),e_Vvel(i__),Wvel(i__),
     +  e_Wvel(i__),Vg_r(i__),e_Vg_r(i__),Vphi(i__),e_Vphi(i__),
     +  ecc(i__),e_ecc(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Atmospheric parameters of the targets

C  Format for file interpretation

    2 format(
     +  I3,1X,I4,1X,I3,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F4.2,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,479
        read(1,'(A61)')ar__1
        read(ar__1,2)
     +  Seq_1(i__),Teff(i__),e_Teff(i__),logg(i__),e_logg(i__),
     +  v_M_H_(i__),e__M_H_(i__),Vmag(i__),B_V(i__),VMAG_1(i__),
     +  e_VMAG(i__),SNR(i__)
c    ..............Just test output...........
        write(6,2)
     +  Seq_1(i__),Teff(i__),e_Teff(i__),logg(i__),e_logg(i__),
     +  v_M_H_(i__),e__M_H_(i__),Vmag(i__),B_V(i__),VMAG_1(i__),
     +  e_VMAG(i__),SNR(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Positions and coordinates of the targets

C  Format for file interpretation

    3 format(
     +  I3,1X,F7.3,F7.3,1X,I5,1X,I4,1X,I4,1X,I4,1X,I6,1X,I4,1X,I5,1X,
     +  I4,1X,I5,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,479
        read(1,'(A73)')ar__2
        read(ar__2,3)
     +  Seq_2(i__),Glon(i__),Glat(i__),Dist(i__),e_Dist(i__),X(i__),
     +  e_X(i__),Y(i__),e_Y(i__),Z(i__),e_Z(i__),R(i__),e_R(i__)
c    ..............Just test output...........
        write(6,3)
     +  Seq_2(i__),Glon(i__),Glat(i__),Dist(i__),e_Dist(i__),X(i__),
     +  e_X(i__),Y(i__),e_Y(i__),Z(i__),e_Z(i__),R(i__),e_R(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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