FORTRAN Generation
(/./ftp/cats/J/ApJ/789/115)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/789/115 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-19
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/ApJ/789/115  The Quintuplet cluster astrometry and photometry  (Stolte+, 2014)
*================================================================================
*The orbital motion of the Quintuplet cluster - A common origin for the Arches
*and Quintuplet clusters?
*    Stolte A., Hussmann B., Morris M.R., Ghez A.M., Brandner W., Lu J.R.,
*    Clarkson W.I., Habibi M., Matthews K.
*   <Astrophys. J., 789, 115 (2014)>
*   =2014ApJ...789..115S    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Astrometry & photometry of NACO 2003
                                & NIRC2 2008 & 2009 sources

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

      integer*4     Seq         ! Sequential number
      real*4        dRA         ! (arcsec) Right Ascension offset (J2000) (G1)
      real*4        dDE         ! (arcsec) Declination offset (J2000) (G1)
      real*8        pmRA        ! (mas/yr) Proper motion in RA; milliarcsec/yr
      real*4        e_pmRA      ! (mas/yr) Uncertainty in pmRA
      real*8        pmDE        ! (mas/yr) Proper motion in Declination; milliarcsec/yr
      real*4        e_pmDE      ! (mas/yr) Uncertainty in pmDE
      real*4        Kmag09      ! (mag) The 2009 Keck/NIRC2 K' band magnitude (G2)
      real*4        e_Kmag09    ! (mag) Uncertainty in Kmag09
      real*8        Kmag08      ! (mag) ?=-99.99 The 2008 Keck/NIRC2 K' band
*                                    magnitude (G2)
      real*8        e_Kmag08    ! (mag) ?=-99.99 Uncertainty in Kmag08
      real*4        Kmag03      ! (mag) The 2003 VLT/NAOS-CONICA K_s_ band
*                                    magnitude (G2)
      real*4        e_Kmag03    ! (mag) Uncertainty in Kmag03
      real*8        pclus       ! ?=-99.99 Membership probability indicator (3)
*Note (3): For stars deviating significantly from the cluster and field
*          distributions, the membership probability could not be determined.
*          pclus has a value of -99.99 in these cases. Monte Carlo simulations
*          of the proper motion plane for one of the outer cluster fields (the
*          Pistol field, Field 2 in Hussmann 2014, PhD thesis, Univ. Bonn,
*          http://www.astro.uni-bonn.de/~hussmann/thesis/) suggest that cluster
*          and field stars are most efficiently separated with a formal
*          probability threshold of pclus > 0.4 (see Sections 4.2.2.1 to
*          4.2.2.3 in Hussmann (2014) for details).

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

C  Declarations for 'table4.dat'	! Astrometry & photometry of NACO 2003
                                & NACO 2008 sources

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

      integer*4     Seq_1       ! Sequential number
      real*8        dRA_1       ! (arcsec) Right Ascension offset (J2000) (G1)
      real*8        dDE_1       ! (arcsec) Declination offset (J2000) (G1)
      real*8        pmRA_1      ! (mas/yr) Proper motion in RA; milliarcsec/yr
      real*4        e_pmRA_1    ! (mas/yr) Uncertainty in pmRA
      real*8        pmDE_1      ! (mas/yr) Proper motion in Declination; milliarcsec/yr
      real*4        e_pmDE_1    ! (mas/yr) Uncertainty in pmDE
      real*4        Kmag03_1    ! (mag) The 2003 VLT/NACO K_s_ band magnitude (G2)
      real*4        e_Kmag03_1  ! (mag) Uncertainty in Kmag03
      real*4        Kmag08_1    ! (mag) The 2008 VLT/NACO K_S_ band magnitude (G2)
      real*4        e_Kmag08_1  ! (mag) Uncertainty in Kmag08
      real*8        pclus_1     ! ?=-99.99 Membership probability indicator (3)
*Note (3): For stars deviating significantly from the cluster and field
*          distributions, the membership probability could not be determined.
*          pclus has a value of -99.99 in these cases.

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

C  Loading file 'table3.dat'	! Astrometry & photometry of NACO 2003
*                                & NIRC2 2008 & 2009 sources

C  Format for file interpretation

    1 format(
     +  I3,1X,F6.3,1X,F6.3,1X,F7.4,1X,F6.4,1X,F7.4,1X,F6.4,1X,F6.3,1X,
     +  F5.3,1X,F7.3,1X,F7.3,1X,F6.3,1X,F5.3,1X,F7.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,226
        read(1,'(A97)')ar__
        read(ar__,1)
     +  Seq,dRA,dDE,pmRA,e_pmRA,pmDE,e_pmDE,Kmag09,e_Kmag09,Kmag08,
     +  e_Kmag08,Kmag03,e_Kmag03,pclus
c    ..............Just test output...........
        write(6,1)
     +  Seq,dRA,dDE,pmRA,e_pmRA,pmDE,e_pmDE,Kmag09,e_Kmag09,Kmag08,
     +  e_Kmag08,Kmag03,e_Kmag03,pclus
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Astrometry & photometry of NACO 2003
*                                & NACO 2008 sources

C  Format for file interpretation

    2 format(
     +  I4,1X,F7.3,1X,F7.3,1X,F7.3,1X,F5.3,1X,F7.3,1X,F5.3,1X,F6.3,1X,
     +  F5.3,1X,F6.3,1X,F5.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,2137
        read(1,'(A82)')ar__1
        read(ar__1,2)
     +  Seq_1,dRA_1,dDE_1,pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_1,Kmag03_1,
     +  e_Kmag03_1,Kmag08_1,e_Kmag08_1,pclus_1
c    ..............Just test output...........
        write(6,2)
     +  Seq_1,dRA_1,dDE_1,pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_1,Kmag03_1,
     +  e_Kmag03_1,Kmag08_1,e_Kmag08_1,pclus_1
c    .......End.of.Just test output...........
      end do
      close(1)

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