FORTRAN Generation
(/./ftp/cats/J/A_A/619/A155)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/619/A155 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-08
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/619/A155      Open cluster kinematics with Gaia DR2      (Soubiran+, 2018)
*================================================================================
*Open cluster kinematics with Gaia DR2.
*    Soubiran C., Cantat-Gaudin T., Romero-Gomez M., Casamiquela L., Jordi C.,
*    Vallenari A., Antoja T., Balaguer-Nunez L., Bossini D., Bragaglia A.,
*    Carrera R., Castro-Ginard A., Figueras F., Heiter U., Katz D.,
*    Krone-Martins A., Le Campion J.-F., Moitinho A., Sordo R.
*    <Astron. Astrophys. 619, A155 (2018)>
*    =2018A&A...619A.155S        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'oc.dat'	! Open cluster velocities

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

C  Position composed of: RAdeg DEdeg
      character*20  ID         (nr__) ! Name (1)
      character*20  ID2        (nr__) ! Alternate name resolved by Simbad
      real*8        RAdeg      (nr__) ! (deg) Right ascension (ICRS) (1)
      real*8        DEdeg      (nr__) ! (deg) Declination (ICRS) (1)
      real*8        dmode      (nr__) ! (pc) Most probable distance (1)
      integer*4     Nmemb      (nr__) ! Number of star members with a Gaia RV
      integer*4     Nsele      (nr__) ! Number of selected members in the mean RV
      real*8        RV         (nr__) ! (km/s) Mean RV
      real*8        s_RV       (nr__) ! (km/s) Standard deviation of RV
      real*8        e_RV       (nr__) ! (km/s) Uncertainty of RV
      real*8        X          (nr__) ! (pc) X Position in Cartesian Galactic coordinates
      real*8        Y          (nr__) ! (pc) Y Position in Cartesian Galactic coordinates
      real*8        Z          (nr__) ! (pc) Z Position in Cartesian Galactic coordinates
      real*8        e_X        (nr__) ! (pc) Uncertainty of X
      real*8        e_Y        (nr__) ! (pc) Uncertainty of Y
      real*8        e_Z        (nr__) ! (pc) Uncertainty of Z
      real*8        U          (nr__) ! (km/s) U Velocity in Cartesian Galactic coordinates
      real*8        V          (nr__) ! (km/s) V Velocity in Cartesian Galactic coordinates
      real*8        W          (nr__) ! (km/s) W Velocity in Cartesian Galactic coordinates
      real*8        e_U        (nr__) ! (km/s) Uncertainty of U
      real*8        e_V        (nr__) ! (km/s) Uncertainty of V
      real*8        e_W        (nr__) ! (km/s) Uncertainty of W
      real*8        Vr         (nr__) ! (km/s) Radial velocity in Spherical Galactic system
      real*8        Vphi       (nr__) ! (km/s) Azimutal velocity in Spherical Galactic system
      real*8        Vz         (nr__) ! (km/s) Vertical velocity in Spherical Galactic system
      real*8        e_Vr       (nr__) ! (km/s) Uncertainty of Vr
      real*8        e_Vphi     (nr__) ! (km/s) Uncertainty of Vphi
      real*8        e_Vz       (nr__) ! (km/s) Uncertainty of Vz
*Note (1): From Cantat-Gaudin et al. 2018, Cat. J/A+A/618/A93.

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

C  Loading file 'oc.dat'	! Open cluster velocities

C  Format for file interpretation

    1 format(
     +  1X,A20,1X,A20,1X,F7.3,1X,F7.3,2X,F7.1,1X,I3,1X,I3,2X,F7.2,2X,
     +  F7.2,2X,F7.2,1X,F8.1,1X,F8.1,1X,F8.1,1X,F8.1,1X,F8.1,1X,F8.1,
     +  2X,F7.2,2X,F7.2,2X,F7.2,2X,F7.2,2X,F7.2,2X,F7.2,2X,F7.2,2X,
     +  F7.2,2X,F7.2,2X,F7.2,2X,F7.2,2X,F7.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'oc.dat')
      write(6,*) '....Loading file: oc.dat'
      do i__=1,861
        read(1,'(A264)')ar__
        read(ar__,1)
     +  ID(i__),ID2(i__),RAdeg(i__),DEdeg(i__),dmode(i__),Nmemb(i__),
     +  Nsele(i__),RV(i__),s_RV(i__),e_RV(i__),X(i__),Y(i__),Z(i__),
     +  e_X(i__),e_Y(i__),e_Z(i__),U(i__),V(i__),W(i__),e_U(i__),
     +  e_V(i__),e_W(i__),Vr(i__),Vphi(i__),Vz(i__),e_Vr(i__),
     +  e_Vphi(i__),e_Vz(i__)
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),ID2(i__),RAdeg(i__),DEdeg(i__),dmode(i__),Nmemb(i__),
     +  Nsele(i__),RV(i__),s_RV(i__),e_RV(i__),X(i__),Y(i__),Z(i__),
     +  e_X(i__),e_Y(i__),e_Z(i__),U(i__),V(i__),W(i__),e_U(i__),
     +  e_V(i__),e_W(i__),Vr(i__),Vphi(i__),Vz(i__),e_Vr(i__),
     +  e_Vphi(i__),e_Vz(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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