FORTRAN Generation
(/./ftp/cats/J/AJ/127/2771)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/127/2771 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/AJ/127/2771      HST proper-motions of M4 main-sequence stars  (Richer+, 2004)
*================================================================================
*Hubble space telescope observations of the main sequence of M4.
*    Richer H.B., Fahlman G.G., Brewer J., Davis S., Kalirai J., Stetson P.B.,
*    Hansen B.M.S., Rich R.M., Ibata R.A., Gibson B.K., Shara M.
*   <Astron. J., 127, 2771-2792 (2004)>
*   =2004AJ....127.2771R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Exposure Record

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

      integer*4     Field       ! Field number in radius core
      integer*4     Date        ! (yr) Year of the observation
      integer*4     PID         ! Program identification number of the observation
      character*5   Filt        ! Filter
      integer*4     ExpTime     ! (s) Exposure time
      integer*4     Frames      ! Number of frames
      character*19  Com         ! Comments

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

C  Declarations for 'table4.dat'	! Annulus 1: Photometry and Astrometry

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg       ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        F555W       ! (mag) [19/34] The F555W-band magnitude
      real*4        F814W       ! (mag) [17/28] The F814W-band magnitude
      real*8        pmRA        ! (mas/yr) Right ascension proper motion times
*                                    the cosine of the declination (1)
      real*8        pmDE        ! (mas/yr) Declination proper motion (1)
*Note (1): Measured with respect to an extragalactic reference frame
*          (Kalirai et al., 2003AJ....126.1402K).

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

C  Declarations for 'table5.dat'	! Annulus 2: Photometry and Astrometry

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_1     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_1     ! (deg) Declination in decimal degrees (J2000)
      real*4        F555W_1     ! (mag) [19/34] The F555W-band magnitude
      real*4        F814W_1     ! (mag) [17/28] The F814W-band magnitude
      real*8        pmRA_1      ! (mas/yr) Right ascension proper motion times
*                                    the cosine of the declination (1)
      real*8        pmDE_1      ! (mas/yr) Declination proper motion (1)
*Note (1): Measured with respect to an extragalactic reference frame
*          (Kalirai et al., 2003AJ....126.1402K).

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

C  Declarations for 'table6.dat'	! Annulus 3: Photometry and Astrometry

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_2     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_2     ! (deg) Declination in decimal degrees (J2000)
      real*4        F555W_2     ! (mag) [19/34] The F555W-band magnitude
      real*4        F814W_2     ! (mag) [17/28] The F814W-band magnitude
      real*8        pmRA_2      ! (mas/yr) Right ascension proper motion times
*                                    the cosine of the declination (1)
      real*8        pmDE_2      ! (mas/yr) Declination proper motion (1)
*Note (1): Measured with respect to an extragalactic reference frame
*          (Kalirai et al., 2003AJ....126.1402K).

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

C  Declarations for 'table7.dat'	! Annulus 4: Photometry and Astrometry

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_3     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_3     ! (deg) Declination in decimal degrees (J2000)
      real*4        F555W_3     ! (mag) [19/34] The F555W-band magnitude
      real*4        F814W_3     ! (mag) [17/28] The F814W-band magnitude
      real*8        pmRA_3      ! (mas/yr) Right ascension proper motion times
*                                    the cosine of the declination (1)
      real*8        pmDE_3      ! (mas/yr) Declination proper motion (1)
*Note (1): Measured with respect to an extragalactic reference frame
*          (Kalirai et al., 2003AJ....126.1402K).

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

C  Loading file 'table3.dat'	! Exposure Record

C  Format for file interpretation

    1 format(I1,1X,I4,1X,I4,1X,A5,1X,I4,1X,I3,1X,A19)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,16
        read(1,'(A46)')ar__
        read(ar__,1)Field,Date,PID,Filt,ExpTime,Frames,Com
c    ..............Just test output...........
        write(6,1)Field,Date,PID,Filt,ExpTime,Frames,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Annulus 1: Photometry and Astrometry

C  Format for file interpretation

    2 format(F8.4,1X,F8.4,1X,F6.3,1X,F6.3,1X,F7.3,1X,F7.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,620
        read(1,'(A47)')ar__1
        read(ar__1,2)RAdeg,DEdeg,F555W,F814W,pmRA,pmDE
c    ..............Just test output...........
        write(6,2)RAdeg,DEdeg,F555W,F814W,pmRA,pmDE
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Annulus 2: Photometry and Astrometry

C  Format for file interpretation

    3 format(F8.4,1X,F8.4,1X,F6.3,1X,F6.3,1X,F7.3,1X,F7.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,1006
        read(1,'(A47)')ar__2
        read(ar__2,3)RAdeg_1,DEdeg_1,F555W_1,F814W_1,pmRA_1,pmDE_1
c    ..............Just test output...........
        write(6,3)RAdeg_1,DEdeg_1,F555W_1,F814W_1,pmRA_1,pmDE_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Annulus 3: Photometry and Astrometry

C  Format for file interpretation

    4 format(F8.4,1X,F8.4,1X,F6.3,1X,F6.3,1X,F7.3,1X,F7.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,623
        read(1,'(A47)')ar__3
        read(ar__3,4)RAdeg_2,DEdeg_2,F555W_2,F814W_2,pmRA_2,pmDE_2
c    ..............Just test output...........
        write(6,4)RAdeg_2,DEdeg_2,F555W_2,F814W_2,pmRA_2,pmDE_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Annulus 4: Photometry and Astrometry

C  Format for file interpretation

    5 format(F8.4,1X,F8.4,1X,F6.3,1X,F6.3,1X,F7.3,1X,F7.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,630
        read(1,'(A47)')ar__4
        read(ar__4,5)RAdeg_3,DEdeg_3,F555W_3,F814W_3,pmRA_3,pmDE_3
c    ..............Just test output...........
        write(6,5)RAdeg_3,DEdeg_3,F555W_3,F814W_3,pmRA_3,pmDE_3
c    .......End.of.Just test output...........
      end do
      close(1)

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