FORTRAN Generation
(/./ftp/cats/J/A_A/388/168)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/388/168 into FORTRAN code for reading data files line by line.

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-18
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/388/168       Absolute proper motions of 93 open clusters   (Dias+, 2002)
*================================================================================
*Proper motions of open clusters based on the TYCHO2 Catalogue.
*II. Clusters farther than 1 kpc.
*    Dias W.S., Lepine J.R.D., Alessi B.S.
*   <Astron. Astrophys. 388, 168 (2002)>
*   =2002A&A...388..168D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! List the parameters provided by the method
                               of Sanders for 93 open clusters

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

      character*8   Cluster     ! Name of the cluster
      character*1   f_Cluster   ! [*] Note detailed in notes.dat file
      integer*4     Nmemb       ! Estimated number of members in the cluster
      real*4        pmRACl      ! (mas/yr) Mean proper motion of the cluster in
*                                  mu_alpha.cos(Dec), ICRS
      real*4        pmDECl      ! (mas/yr) Mean proper motion of the cluster in
*                                  mu_delta, ICRS
      real*4        e_pmRACl    ! (mas/yr) Standard deviation in pmRA and pmDE
      integer*4     Nfield      ! Estimated number of field stars
      real*4        pmRAS       ! (mas/yr) Mean proper motion of the field stars in
*                                  mu_alpha.cos(Dec), ICRS
      real*4        e_pmRAS     ! (mas/yr) Standard deviation of the mean proper motion 
*                                  of the field stars in mu_alpha.cos(Dec), ICRS
      real*4        pmDES       ! (mas/yr) Mean proper motion of the field stars in
*                                  mu_delta, ICRS
      real*4        e_pmDES     ! (mas/yr) Standard deviation of the mean proper motion
*                                  of the field stars in mu_delta, ICRS
      real*8        theta       ! (deg) Rotation angle to the major axis
      character*11  FileName    ! Name of the file containing the complete data,
*                                  in "pm" subdirectory

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

C  Declarations for 'notes.dat'	! Individual notes

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

      character*8   Cluster_1   ! Cluster name
      character*71  Note        ! Text of the note

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

C  Declarations for 'pm/*'	! Proper motions and membership, by cluster

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

C  2000.0 position composed of: RAmas DEmas
      integer*8     RAmas       ! (mas) Right ascension (2000.0) from Tycho2, <I/259>
      integer*8     DEmas       ! (mas) Declination (2000.0) from Tycho2, <I/259>
      real*4        VTmag       ! (mag) Magnitude of the star from Tycho2, <I/259>
      integer*4     e_RAmas     ! (mas) Standard deviation in RA
      integer*4     e_DEmas     ! (mas) Standard deviation in DE
      real*8        EpRA_DE     ! (yr) Mean epoch of observation from Tycho2, <I/259>
      real*8        pmRA        ! (mas/yr) Proper motion in mu_alpha.cos(Dec), ICRS
      real*8        pmDE        ! (mas/yr) Proper motion in mu_delta, ICRS
      real*4        e_pmRA      ! (mas/yr) Standard deviation of the
*                                   mu_alpha.cos(Dec), ICRS
      real*4        e_pmDE      ! (mas/yr) Standard deviation of the mu_delta, ICRS
      integer*4     RAh         ! (h) Right Ascension J2000 (hours), at EpRA,DE
      integer*4     RAm         ! (min) Right Ascension J2000 (minutes)
      real*4        RAs         ! (s) Right Ascension J2000 (seconds)
      character*1   DE_         ! Declination J2000 (sign)
      integer*4     DEd         ! (deg) Declination J2000 (degrees), at EpDE,DE
      integer*4     DEm         ! (arcmin) Declination J2000 (minutes)
      real*4        DEs         ! (arcsec) Declination J2000 (seconds)
      character*12  TYC         ! Tycho2 identifier, <I/259>
      integer*4     HIP         ! Hipparcos identifier, <I/239>
      character*1   m_HIP       ! Multiplicity index on HIP
      integer*4     Memb        ! (%) Membership probability

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

C  Loading file 'table1.dat'	! List the parameters provided by the method
*                               of Sanders for 93 open clusters

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,93
        read(1,'(A80)')ar__
        read(ar__,1)
     +  Cluster,f_Cluster,Nmemb,pmRACl,pmDECl,e_pmRACl,Nfield,pmRAS,
     +  e_pmRAS,pmDES,e_pmDES,theta,FileName
c    ..............Just test output...........
        write(6,1)
     +  Cluster,f_Cluster,Nmemb,pmRACl,pmDECl,e_pmRACl,Nfield,pmRAS,
     +  e_pmRAS,pmDES,e_pmDES,theta,FileName
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(A8,1X,A71)

C  Effective file loading

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

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

C  Loading file 'pm/*'	! Proper motions and membership, by cluster

C  Format for file interpretation

    3 format(
     +  I10,1X,I10,3X,F5.2,3X,I3,3X,I3,1X,F8.3,3X,F7.2,2X,F7.2,1X,
     +  F6.2,2X,F6.2,5X,I2,1X,I2,1X,F6.3,2X,A1,I2,2X,I2,2X,F5.2,3X,
     +  A12,2X,I6,A1,2X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'pm/*')
      write(6,*) '....Loading file: pm/*'
      do i__=1,93
        read(1,'(A147)')ar__2
        read(ar__2,3)
     +  RAmas,DEmas,VTmag,e_RAmas,e_DEmas,EpRA_DE,pmRA,pmDE,e_pmRA,
     +  e_pmDE,RAh,RAm,RAs,DE_,DEd,DEm,DEs,TYC,HIP,m_HIP,Memb
c    ..............Just test output...........
        write(6,3)
     +  RAmas,DEmas,VTmag,e_RAmas,e_DEmas,EpRA_DE,pmRA,pmDE,e_pmRA,
     +  e_pmDE,RAh,RAm,RAs,DE_,DEd,DEm,DEs,TYC,HIP,m_HIP,Memb
c    .......End.of.Just test output...........
      end do
      close(1)

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